/* ==========================================================================
   SUDOKU MASTER - EXTRACTED AAB APP THEME STYLES
   Color Palette extracted directly from c:\Users\bhung\Downloads\sudoku\sudoku\app-release.aab:
   - Base Cream: #FDF9EE (Zen Stones Base)
   - Sand Warm: #F7EAD9 (Zen Sand Warm Accent)
   - Slate Dark Text: #2D3748
   - Primary Zen Blue: #4A90E2
   - Purple Pencil Accent: #8B5CF6
   - Gold Trophy Accent: #F5A623 / #D4AF37
   ========================================================================== */

:root {
    --bg-base: #FDF9EE;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-darker: #F7EAD9;
    --bg-glass: rgba(253, 249, 238, 0.85);
    --border-glass: rgba(255, 255, 255, 0.9);
    --border-subtle: rgba(45, 55, 72, 0.08);
    
    --text-dark: #2D3748;
    --text-light: #4A5568;
    --text-muted: #718096;
    
    --accent-blue: #4A90E2;
    --accent-purple: #8B5CF6;
    --accent-purple-gradient: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    --accent-gold: #F5A623;
    --accent-gold-gradient: linear-gradient(135deg, #F5A623 0%, #D4AF37 100%);
    --accent-green: #10B981;
    --accent-danger: #EF4444;

    --shadow-soft: 0 10px 35px rgba(45, 55, 72, 0.08);
    --shadow-glow: 0 0 30px rgba(74, 144, 226, 0.25);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

[data-theme="dark"] {
    --bg-base: #0F172A;
    --bg-card: rgba(30, 41, 59, 0.78);
    --bg-glass: rgba(15, 23, 42, 0.88);
    --border-glass: rgba(255, 255, 255, 0.12);
    --border-subtle: rgba(255, 255, 255, 0.08);
    
    --text-dark: #F8FAFC;
    --text-light: #CBD5E1;
    --text-muted: #94A3B8;

    --accent-blue: #60A5FA;
    --accent-purple: #A78BFA;
    --accent-purple-gradient: linear-gradient(135deg, #A78BFA 0%, #7C3AED 100%);
    --accent-gold: #F59E0B;
    --shadow-soft: 0 10px 35px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 30px rgba(96, 165, 250, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Background Canvas & Blob */
#bg-canvas, #confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

#bg-canvas { z-index: -1; }
#confetti-canvas { z-index: 999; }

.background-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(95px);
    opacity: 0.4;
    border-radius: 50%;
    animation: drift 22s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    right: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
}

.blob-2 {
    bottom: -20%;
    left: -10%;
    width: 750px;
    height: 750px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    animation-delay: -11s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(110px, 60px) scale(1.12); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 100;
    padding: 14px 0;
    transition: background 0.4s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(45, 55, 72, 0.12);
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    display: block;
    line-height: 1.1;
}

.logo-subtitle {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.72rem;
    color: var(--accent-purple);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-dark);
}

.theme-toggle-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-dark);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.3s;
}

.theme-toggle-btn:hover {
    transform: scale(1.08);
}

/* Glassmorphism General */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 36px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.glass:hover {
    box-shadow: var(--shadow-glow);
}

/* Buttons */
.btn-primary, .btn-primary-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a202c 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
}

[data-theme="dark"] .btn-primary, [data-theme="dark"] .btn-primary-small {
    background: var(--accent-purple-gradient);
    color: white !important;
}

.btn-primary {
    padding: 16px 36px;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(45, 55, 72, 0.2);
}

.btn-primary-small {
    padding: 10px 22px;
    font-size: 0.95rem;
}

.btn-primary:hover, .btn-primary-small:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(45, 55, 72, 0.28);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: var(--bg-card);
    color: var(--text-dark) !important;
    text-decoration: none;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    border: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: white;
    transform: translateY(-2px);
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: var(--accent-purple);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-purple);
    box-shadow: 0 0 10px var(--accent-purple);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

/* Hero Section */
.hero-section {
    padding: 170px 0 90px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    line-height: 1.12;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.highlight {
    background: var(--accent-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-container {
    display: flex;
    justify-content: center;
}

.hero-image {
    max-width: 100%;
    width: 440px;
    border-radius: 40px;
    box-shadow: 0 20px 45px rgba(45, 55, 72, 0.15);
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
}

/* Section Common */
.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.6rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* Interactive Sudoku Demo Section */
.experience-section {
    padding: 90px 0;
}

.game-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.diff-tabs {
    display: flex;
    gap: 8px;
    background: var(--border-subtle);
    padding: 4px;
    border-radius: 14px;
}

.diff-tab {
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.diff-tab.active {
    background: var(--text-dark);
    color: white;
    box-shadow: 0 4px 12px rgba(45, 55, 72, 0.2);
}

.game-stats-pills {
    display: flex;
    gap: 14px;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--border-subtle);
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.board-container-wrapper {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 40px;
    align-items: center;
}

.sudoku-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-soft);
}

.sudoku-grid-interactive {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 2px;
    background: #E2E8F0;
    border: 3px solid var(--text-dark);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

[data-theme="dark"] .sudoku-grid-interactive {
    background: #334155;
}

.sudoku-cell {
    aspect-ratio: 1;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-blue);
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, transform 0.1s;
    position: relative;
}

.sudoku-cell.given {
    color: var(--text-dark);
    font-weight: 800;
}

.sudoku-cell.highlighted {
    background: rgba(74, 144, 226, 0.08);
}

.sudoku-cell.same-number {
    background: rgba(139, 92, 246, 0.2);
}

.sudoku-cell.selected {
    background: var(--accent-blue) !important;
    color: white !important;
    box-shadow: inset 0 0 0 2px var(--text-dark);
}

.sudoku-cell.error {
    color: var(--accent-danger);
    background: rgba(239, 68, 68, 0.18);
}

.sudoku-cell.hint-glow {
    animation: hintGlow 1s ease;
}

@keyframes hintGlow {
    0% { background: var(--accent-gold); color: white; }
    100% { background: var(--bg-card); }
}

/* 3x3 Thick Borders */
.sudoku-cell:nth-child(3n) { border-right: 2px solid var(--text-dark); }
.sudoku-cell:nth-child(9n) { border-right: none; }
.sudoku-cell:nth-child(n+19):nth-child(-n+27),
.sudoku-cell:nth-child(n+46):nth-child(-n+54) {
    border-bottom: 2px solid var(--text-dark);
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    width: 100%;
    height: 100%;
    padding: 2px;
}

.note-num {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Controls Bar & Numpad */
.game-action-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--border-subtle);
    border: none;
    padding: 8px 14px;
    border-radius: 12px;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.control-btn.active {
    background: var(--accent-blue);
    color: white;
}

.control-btn:hover {
    transform: translateY(-2px);
    background: var(--border-glass);
}

.numpad-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 6px;
}

.numpad-btn {
    aspect-ratio: 1;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.15s;
}

.numpad-btn:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
}

/* Features Grid */
.features-section {
    padding: 90px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-icon-wrapper {
    width: 72px;
    height: 72px;
    background: white;
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.feature-icon {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.98rem;
}

/* Interactive Brain Calculator */
.calculator-section {
    padding: 90px 0;
}

.calculator-card {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.08) 0%, rgba(245, 166, 35, 0.08) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 28px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.calc-slider-wrapper {
    margin-top: 30px;
}

.calc-slider-wrapper label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.custom-range {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: var(--border-subtle);
    outline: none;
    accent-color: var(--accent-blue);
    cursor: pointer;
}

.boost-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.boost-card {
    background: var(--bg-card);
    padding: 24px 16px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-glass);
}

.boost-card h4 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--accent-blue);
    font-weight: 800;
}

.boost-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 4px;
}

/* Stats Counter Section */
.stats-counter-section {
    padding: 70px 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item h3 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 600;
}

/* Download Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 40px;
    border-radius: 28px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.qr-wrapper {
    margin: 24px 0;
    display: flex;
    justify-content: center;
}

.qr-wrapper canvas {
    border-radius: 16px;
    padding: 12px;
    background: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-glass);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Responsive Layout */
@media (max-width: 992px) {
    .hero-content, .board-container-wrapper, .calculator-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 { font-size: 3rem; }
    .hero-buttons { justify-content: center; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .numpad-grid { gap: 4px; }
    .numpad-btn { font-size: 1.1rem; }
}

/* ==========================================================================
   PRIVACY POLICY PAGE STYLES
   ========================================================================== */
.privacy-page-wrapper {
    padding: 120px 0 80px;
    min-height: 85vh;
}

.privacy-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.privacy-card h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.privacy-card h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-top: 36px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-subtle);
    padding-bottom: 8px;
}

.privacy-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-top: 24px;
    margin-bottom: 10px;
}

.privacy-card p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.7;
}

.privacy-card .meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
    background: var(--bg-darker);
    padding: 12px 20px;
    border-radius: 12px;
}

.privacy-card ul {
    padding-left: 24px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.privacy-card li {
    margin-bottom: 8px;
}

.privacy-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    overflow-x: auto;
    display: block;
}

.privacy-card th, .privacy-card td {
    border: 1px solid var(--border-subtle);
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    font-size: 0.95rem;
}

.privacy-card th {
    background: var(--bg-darker);
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 600;
}

.privacy-card td {
    color: var(--text-light);
}

.privacy-card a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

.privacy-card a:hover {
    text-decoration: underline;
}

.privacy-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 24px;
    transition: transform 0.2s ease;
}

.privacy-back-btn:hover {
    transform: translateX(-4px);
}

@media (max-width: 768px) {
    .privacy-card {
        padding: 24px 18px;
    }
    .privacy-card h1 {
        font-size: 2rem;
    }
}

