/* WinRupees Game - Ultra Responsive Mobile-First Stylesheet */
:root {
    --bg-dark: #0f051d;
    --bg-card: #1c0a36;
    --bg-card-alt: #260f4a;
    --border-color: #3d1b6e;
    --border-glow: #6b26ba;
    --primary: #8a2be2;
    --primary-glow: rgba(138, 43, 226, 0.4);
    --gold: #ffb800;
    --green: #00d084;
    --cyan: #00e5ff;
    --text-white: #ffffff;
    --text-main: #f5f0ff;
    --text-dim: #b7a8d0;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --max-w: 1140px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Header */
.site-header {
    background-color: rgba(22, 8, 44, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    width: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.brand-name {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.brand-name span {
    color: var(--gold);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.nav-link {
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold);
    background: rgba(255, 184, 0, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Language Selector */
.lang-selector {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dim);
}

.lang-flag {
    width: 20px !important;
    height: 14px !important;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
    border-radius: 2px;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 26px;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    font-size: 15px;
    text-align: center;
    box-sizing: border-box;
}

.btn-header {
    padding: 8px 16px;
    font-size: 14px;
    background: linear-gradient(135deg, var(--green), #00a86b);
    color: #032112;
}

.btn-header:hover {
    background: linear-gradient(135deg, #00eb95, var(--green));
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 208, 132, 0.4);
}

.btn-download {
    background: linear-gradient(135deg, #00d084, #009e60);
    color: #032112;
    box-shadow: 0 4px 16px rgba(0, 208, 132, 0.35);
    font-size: 16px;
    padding: 13px 26px;
    border-radius: 8px;
}

.btn-download:hover {
    background: linear-gradient(135deg, #05ff9f, #00d084);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 208, 132, 0.5);
}

.btn-login {
    background: linear-gradient(135deg, #ffb800, #ff8c00);
    color: #331600;
    box-shadow: 0 4px 16px rgba(255, 184, 0, 0.35);
    font-size: 16px;
    padding: 13px 26px;
    border-radius: 8px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #ffd34d, #ffa000);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 184, 0, 0.5);
}

/* Hero Section */
.hero-section {
    padding: 34px 0 24px;
    background: radial-gradient(circle at 50% 18%, rgba(138, 43, 226, 0.28) 0%, transparent 70%);
    width: 100%;
}

.hero-content {
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

.badge-tag {
    display: inline-block;
    background: rgba(138, 43, 226, 0.25);
    color: #e0b0ff;
    border: 1px solid var(--border-glow);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-white);
    margin-bottom: 12px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-dim);
    margin-bottom: 22px;
    line-height: 1.6;
}

.hero-meta-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    width: 100%;
}

.meta-chip {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-dim);
    box-sizing: border-box;
}

.meta-chip strong {
    color: var(--gold);
    margin-left: 4px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
    width: 100%;
}

.hero-banner-wrap {
    margin-top: 14px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    width: 100%;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Info Table Box */
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    margin: 28px 0;
    width: 100%;
    box-sizing: border-box;
}

.info-card h2 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-white);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
    word-break: break-word;
}

/* Table Responsive wrapper */
.table-responsive {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 18px 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-sizing: border-box;
}

table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
    box-sizing: border-box;
}

th, td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    word-break: break-word;
}

th {
    background-color: var(--bg-card-alt);
    color: var(--text-white);
    font-weight: 700;
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) td {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Main Layout & Content Card */
.main-layout {
    padding: 16px 0 40px;
    width: 100%;
}

.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.content-card h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-white);
    margin: 32px 0 14px;
    border-left: 4px solid var(--gold);
    padding-left: 12px;
    line-height: 1.35;
    word-break: break-word;
}

.content-card h2:first-child {
    margin-top: 0;
}

.content-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #e0b0ff;
    margin: 20px 0 10px;
    word-break: break-word;
}

.content-card p {
    font-size: 15.5px;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.7;
}

.content-card ul, .content-card ol {
    margin: 12px 0 20px 20px;
}

.content-card li {
    margin-bottom: 8px;
    color: var(--text-main);
}

/* Table of Contents */
.toc-box {
    background: var(--bg-card-alt);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px 20px;
    margin: 18px 0 28px;
    width: 100%;
    box-sizing: border-box;
}

.toc-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-list li {
    margin-bottom: 7px;
    padding-left: 14px;
    position: relative;
    word-break: break-word;
}

.toc-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--gold);
}

.toc-list a {
    color: var(--text-dim);
    font-size: 14.5px;
}

.toc-list a:hover {
    color: var(--gold);
}

/* Steps Box */
.step-item {
    background: var(--bg-card-alt);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
}

.step-num {
    background: var(--primary);
    color: var(--text-white);
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    margin-top: 2px;
}

.step-text {
    font-size: 14.5px;
    color: var(--text-main);
    word-break: break-word;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin: 22px 0;
    width: 100%;
}

.feature-box {
    background: var(--bg-card-alt);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px;
    box-sizing: border-box;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-box:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.feature-title {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 6px;
    word-break: break-word;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Visual Showcases */
.visual-showcase {
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    width: 100%;
}

.visual-showcase img {
    width: 100%;
    height: auto;
    display: block;
}

/* Pros and Cons */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 22px 0;
    width: 100%;
}

.pros-box, .cons-box {
    background: var(--bg-card-alt);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
}

.pros-box {
    border-top: 4px solid var(--green);
}

.cons-box {
    border-top: 4px solid #ff5252;
}

.pros-box h3 {
    color: var(--green);
    margin-top: 0;
}

.cons-box h3 {
    color: #ff5252;
    margin-top: 0;
}

.pros-list, .cons-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pros-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 9px;
    font-size: 14.5px;
    word-break: break-word;
}

.pros-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: bold;
}

.cons-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 9px;
    font-size: 14.5px;
    word-break: break-word;
}

.cons-list li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: #ff5252;
    font-weight: bold;
}

/* Alternatives Grid */
.alternatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 18px 0;
    width: 100%;
}

.alt-card {
    background: var(--bg-card-alt);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px;
    box-sizing: border-box;
}

.alt-card h3 {
    color: var(--gold);
    margin-top: 0;
    margin-bottom: 8px;
    word-break: break-word;
}

.alt-card p {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 0;
}

/* FAQ Accordion */
.faq-wrap {
    margin: 22px 0;
    width: 100%;
}

.faq-item {
    background: var(--bg-card-alt);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.faq-question {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 15.5px;
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    word-break: break-word;
}

.faq-answer {
    padding: 0 18px 14px;
    font-size: 14.5px;
    color: var(--text-dim);
    line-height: 1.6;
    word-break: break-word;
}

/* E-E-A-T Box */
.eeat-box {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15), rgba(0, 208, 132, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px;
    margin: 28px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

.eeat-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--green);
    color: #032112;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.eeat-text h4 {
    color: var(--text-white);
    font-size: 15px;
    margin-bottom: 4px;
    word-break: break-word;
}

.eeat-text p {
    color: var(--text-dim);
    font-size: 13px;
    margin: 0;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #280b4e, #140529);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 30px 18px;
    text-align: center;
    margin: 32px 0 14px;
    width: 100%;
    box-sizing: border-box;
}

.cta-banner h3 {
    font-size: 24px;
    color: var(--text-white);
    margin-bottom: 8px;
    word-break: break-word;
}

.cta-banner p {
    color: var(--text-dim);
    max-width: 620px;
    margin: 0 auto 20px;
    font-size: 14.5px;
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
    margin: 24px 0;
    width: 100%;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
}

.blog-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-tag {
    align-self: flex-start;
    background: rgba(138, 43, 226, 0.2);
    color: #c084fc;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 17.5px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
    line-height: 1.4;
    word-break: break-word;
}

.blog-desc {
    font-size: 13.5px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
}

.blog-read-more {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Breadcrumbs */
.breadcrumb-nav {
    padding: 12px 0;
    font-size: 13.5px;
    color: var(--text-dim);
    width: 100%;
    word-break: break-word;
}

.breadcrumb-nav a {
    color: var(--text-dim);
}

.breadcrumb-nav span {
    margin: 0 6px;
    color: var(--border-color);
}

.breadcrumb-nav .current {
    color: var(--gold);
}

/* Footer */
.site-footer {
    background: #080210;
    border-top: 1px solid var(--border-color);
    padding: 42px 0 20px;
    margin-top: 40px;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 30px;
    width: 100%;
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 15.5px;
    margin-bottom: 12px;
    font-weight: 700;
}

.footer-col p {
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 13.5px;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
    text-align: center;
    color: #8b7d9f;
    font-size: 12.5px;
}

.footer-disclaimer-text {
    font-size: 11.5px;
    color: #7b6d8f;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 900px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background-color: #140727;
        border-bottom: 2px solid var(--border-glow);
        padding: 18px;
        flex-direction: column;
        gap: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    }
    .nav-menu.open {
        display: flex;
    }
    .mobile-toggle {
        display: block;
    }
    .desktop-only {
        display: none !important;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    .content-card, .info-card {
        padding: 20px 14px;
        border-radius: 12px;
    }
    .features-grid, .pros-cons-grid, .alternatives-grid, .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }
    .hero-title {
        font-size: 24px;
    }
    .hero-subtitle {
        font-size: 14.5px;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .btn-download, .btn-login {
        width: 100%;
        font-size: 15.5px;
        padding: 12px 18px;
    }
    .content-card h2 {
        font-size: 21px;
    }
    .content-card p {
        font-size: 15px;
    }
    .step-item {
        padding: 10px 12px;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        height: 58px;
    }
    .brand-name {
        font-size: 17px;
    }
    .brand-icon {
        width: 32px;
        height: 32px;
    }
    .hero-title {
        font-size: 21px;
    }
    .hero-subtitle {
        font-size: 13.5px;
    }
    .meta-chip {
        font-size: 11.5px;
        padding: 5px 8px;
    }
    .content-card h2 {
        font-size: 19px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
