/*
Theme Name: Rummy Bonus App
Theme URI: https://rummybonus.app
Author: Rummy Guides
Author URI: https://rummybonus.app
Description: A modern dark-themed WordPress blog theme for Rummy Guide. Dark purple gradient design with glassmorphism effects, mobile-first responsive layout, and SEO-optimized structure.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:Rummy Guides
Tags: dark, blog, responsive, custom-colors, custom-menu, featured-images, two-columns, right-sidebar, seo-friendly
*/

/* ===========================
   ROOT VARIABLES
=========================== */
:root {
    --red-gradient: linear-gradient(135deg, #FF3B30, #FF9500, #FF2D55);
    --green-gradient: linear-gradient(135deg, #00C853, #69F0AE);
    --primary: #FF2D55;
    --primary-dark: #FF3B30;
    --bg-dark: #0f0c29;
    --bg-mid: #1a1040;
    --bg-end: #24243e;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-muted: #9ca3af;
    --font: 'Outfit', sans-serif;
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font), sans-serif;
    background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-mid) 40%, var(--bg-end) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
}

body::before {
    content: '';
    position: fixed;
    top: -20%; left: -20%;
    width: 70vw; height: 70vw;
    background: radial-gradient(circle, rgba(123, 31, 162, 0.22) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: floatBg 20s infinite ease-in-out;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%; right: -20%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: floatBg 15s infinite reverse ease-in-out;
}

@keyframes floatBg {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 50px); }
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===========================
   GOOGLE FONTS IMPORT
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ===========================
   NAVIGATION
=========================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(10, 8, 30, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-branding a {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

.site-branding .brand-icon { color: var(--primary); font-size: 1.2rem; }

.main-navigation { display: flex; align-items: center; gap: 4px; }

.main-navigation a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 50px;
    transition: all 0.2s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-cta-btn {
    background: var(--red-gradient) !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 14px rgba(255, 45, 85, 0.3);
    padding: 8px 18px !important;
}

.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font);
}

/* ===========================
   SITE WRAPPER & LAYOUT
=========================== */
.site-content-wrap {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

/* ===========================
   PAGE TITLE / ARCHIVE HEADER
=========================== */
.page-header {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3.5rem 1.5rem 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 3px;
    background: var(--red-gradient);
    border-radius: 3px;
}

.archive-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 45, 85, 0.1);
    border: 1px solid rgba(255, 45, 85, 0.25);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.page-header .page-title {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 0.7rem;
    background: var(--red-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header .archive-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ===========================
   POST CARD — WP STYLE
=========================== */
article.post-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 1.8rem;
    transition: all 0.3s ease;
}

article.post-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 45, 85, 0.25);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.5);
}

/* Post Thumbnail */
.post-thumbnail {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

article.post-card:hover .post-thumbnail img { transform: scale(1.05); }

.post-thumbnail .thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    opacity: 0.4;
    color: #fff;
}

.post-thumbnail.bg-1 { background: linear-gradient(135deg, #1a0a2e 0%, #3d0c5e 50%, #FF2D55 100%); }
.post-thumbnail.bg-2 { background: linear-gradient(135deg, #0a1a2e 0%, #0c3d7a 50%, #3897f0 100%); }
.post-thumbnail.bg-3 { background: linear-gradient(135deg, #0a2e12 0%, #0c5e2a 50%, #00C853 100%); }
.post-thumbnail.bg-4 { background: linear-gradient(135deg, #2e1a0a 0%, #7a400c 50%, #FF9500 100%); }
.post-thumbnail.bg-5 { background: linear-gradient(135deg, #2e0a1a 0%, #5e0c3d 50%, #FF3B30 100%); }

/* Category Overlay Badge */
.cat-overlay {
    position: absolute;
    top: 14px; left: 14px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

/* Post Inner */
.entry-inner { padding: 1.4rem 1.5rem 1.5rem; }

.entry-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.author-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--red-gradient);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.meta-sep { opacity: 0.3; }

.entry-title {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 0.7rem;
    color: #fff;
    transition: color 0.2s;
}

.entry-title a { color: inherit; }
.entry-title a:hover { color: var(--primary); }

.entry-excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.2rem;
}

.entry-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.entry-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.tag-chip {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 3px 9px;
    border-radius: 50px;
    transition: all 0.2s;
}

.tag-chip:hover {
    background: rgba(255, 45, 85, 0.1);
    border-color: rgba(255, 45, 85, 0.25);
    color: var(--primary);
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--red-gradient);
    color: #fff;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 45, 85, 0.35);
    color: #fff;
}

/* ===========================
   SINGLE POST
=========================== */
.single-post-header {
    position: relative;
    z-index: 1;
    padding: 3rem 1.5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.single-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    position: relative;
    z-index: 1;
}

.single-featured-image {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.single-featured-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--card-border);
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
    font-weight: 800;
    margin: 2rem 0 0.8rem;
    line-height: 1.3;
}

.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.2rem; color: var(--text-muted); }

.entry-content p {
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.entry-content ul, .entry-content ol {
    margin: 1rem 0 1.2rem 1.5rem;
    color: rgba(255, 255, 255, 0.75);
}

.entry-content li { margin-bottom: 0.4rem; line-height: 1.7; }

.entry-content a { color: var(--primary); }
.entry-content a:hover { text-decoration: underline; }

.entry-content blockquote {
    border-left: 4px solid var(--primary);
    background: rgba(255, 45, 85, 0.06);
    border-radius: 0 12px 12px 0;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-muted);
}

.entry-content code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.88em;
    font-family: 'Courier New', monospace;
}

.entry-content pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.2rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

/* ===========================
   PAGINATION
=========================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.page-numbers {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--red-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 45, 85, 0.3);
}

/* ===========================
   SIDEBAR
=========================== */
.widget-area {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    position: sticky;
    top: 80px;
}

.widget {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.3rem;
}

.widget-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 7px;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.widget-title i { color: var(--primary); }

/* Search Widget */
.search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.search-form input[type="search"] {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 14px;
    color: #fff;
    font-family: var(--font);
    font-size: 0.88rem;
    outline: none;
}

.search-form input::placeholder { color: rgba(255, 255, 255, 0.3); }

.search-form button {
    background: var(--red-gradient);
    border: none;
    padding: 0 16px;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.search-form button:hover { opacity: 0.85; }

/* Categories Widget */
.cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 7px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cat-item:last-child { margin-bottom: 0; }

.cat-item:hover {
    background: rgba(255, 45, 85, 0.08);
    border-color: rgba(255, 45, 85, 0.2);
    color: var(--primary);
}

.cat-count {
    font-size: 0.7rem;
    background: rgba(255, 45, 85, 0.15);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 700;
}

/* Recent Posts Widget */
.recent-post-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: flex-start;
}

.recent-post-item:last-child { border-bottom: none; padding-bottom: 0; }

.rp-thumb {
    width: 54px; height: 54px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
}

.rp-info { flex: 1; }

.rp-title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    margin-bottom: 3px;
    display: block;
    transition: color 0.2s;
}

.rp-title:hover { color: var(--primary); }
.rp-date { font-size: 0.72rem; color: var(--text-muted); }

/* Tags Widget */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tagcloud a {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 5px 12px;
    border-radius: 50px;
    transition: all 0.2s;
}

.tagcloud a:hover {
    background: rgba(255, 45, 85, 0.1);
    border-color: rgba(255, 45, 85, 0.25);
    color: var(--primary);
}

/* CTA Widget */
.widget-cta {
    background: rgba(255, 45, 85, 0.07);
    border-color: rgba(255, 45, 85, 0.18);
    text-align: center;
}

.widget-cta-emoji { font-size: 2.5rem; margin-bottom: 0.6rem; }
.widget-cta h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.4rem; }
.widget-cta p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 1rem; }

.widget-cta-btn {
    display: block;
    background: var(--red-gradient);
    color: #fff;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 12px;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(255, 45, 85, 0.3);
    transition: all 0.25s;
}

.widget-cta-btn:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 10px 25px rgba(255, 45, 85, 0.4);
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-brand i { color: var(--primary); }

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.25);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 860px) {
    .site-content-wrap {
        grid-template-columns: 1fr;
        padding: 1.5rem 1rem 3rem;
    }
    .widget-area { position: static; order: 2; }
    .main-navigation { display: none; flex-direction: column; width: 100%; }
    .main-navigation.open { display: flex; position: absolute; top: 62px; left: 0; right: 0; background: rgba(10,8,30,0.98); padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.07); z-index: 998; }
    .main-navigation.open a { padding: 10px 16px; border-radius: 10px; }
    .menu-toggle { display: block; }
    .single-featured-image img { height: 220px; }
}

@media (max-width: 480px) {
    .entry-inner { padding: 1rem; }
    .entry-footer { flex-direction: column; align-items: flex-start; }
    .read-more-btn { width: 100%; justify-content: center; }
}
