/* style.css - Main stylesheet with Light/Dark themes */
/* UPDATED - Right sidebar buttons design like 1_minutes page */

:root {
    /* Light Theme (Sky Blue) */
    --bg-primary: #f0f7ff;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-main: #ffffff;
    --bg-right: #ffffff;
    
    --text-primary: #1a2b4c;
    --text-secondary: #2c3e66;
    --text-muted: #4a5b7a;
    --text-inverse: #ffffff;
    
    --border-color: #c8e0ff;
    --border-strong: #7fb2ff;
    --border-focus: #3498ff;
    
    --accent-primary: #3498ff;
    --accent-secondary: #2c3e66;
    --accent-light: #e3f0ff;
    --accent-hover: #5aa8ff;
    --accent-transparent: rgba(52, 152, 255, 0.1);
    
    --accent-success: #28a745;
    --accent-warning: #ffc107;
    --accent-danger: #dc3545;
    --accent-info: #17a2b8;
    
    --shadow-color: rgba(52, 152, 255, 0.1);
    --shadow-hover: rgba(52, 152, 255, 0.2);
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    
    --nav-hover: #f5faff;
    --footer-bg: #e3f0ff;
    
    /* Transition */
    --transition-speed: 0.3s;
}

[data-theme="dark"] {
    /* Dark Theme (Dark Blue) */
    --bg-primary: #0a1120;
    --bg-secondary: #121c2f;
    --bg-card: #14233c;
    --bg-sidebar: #14233c;
    --bg-main: #14233c;
    --bg-right: #14233c;
    
    --text-primary: #ffffff;
    --text-secondary: #e0e9ff;
    --text-muted: #a0b5e0;
    --text-inverse: #0a1120;
    
    --border-color: #2a3f66;
    --border-strong: #3a5a8c;
    --border-focus: #4080ff;
    
    --accent-primary: #4080ff;
    --accent-secondary: #60a5fa;
    --accent-light: #1e2f4a;
    --accent-hover: #5f9aff;
    --accent-transparent: rgba(64, 128, 255, 0.15);
    
    --accent-success: #4ade80;
    --accent-warning: #fbbf24;
    --accent-danger: #f87171;
    --accent-info: #38bdf8;
    
    --shadow-color: rgba(0, 40, 80, 0.3);
    --shadow-hover: rgba(64, 128, 255, 0.2);
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    
    --nav-hover: #1e2f45;
    --footer-bg: #0f1a2c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background-color var(--transition-speed) ease, 
                color var(--transition-speed) ease;
    overflow-x: hidden;
    width: 100%;
}

/* ================= DARK MODE TOGGLE ================= */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-strong);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
}

.theme-btn:hover {
    transform: scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--shadow-color);
}

.light-icon, .dark-icon {
    font-size: 1.2rem;
}

[data-theme="dark"] .light-icon {
    display: none;
}

[data-theme="dark"] .dark-icon {
    display: inline;
}

:not([data-theme="dark"]) .light-icon {
    display: inline;
}

:not([data-theme="dark"]) .dark-icon {
    display: none;
}

/* ================= MAIN CONTAINER ================= */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    background: var(--bg-primary);
}

.site-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    cursor: pointer;
    transition: color var(--transition-speed) ease;
}

.site-title:hover {
    color: var(--accent-primary);
}

.login-btn {
    background: transparent;
    border: 2px solid var(--border-strong);
    color: var(--text-primary);
    padding: 8px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.login-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.05);
    border-color: var(--accent-primary);
}

/* Mobile me hide */
@media (max-width: 768px) {
    .login-btn {
        display: none;
    }
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: var(--accent-primary);
    color: white;
    border: none;
    margin-left: 10px;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
}

/* ================= 3-COLUMN LAYOUT ================= */
.content-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr 280px;
    gap: 30px;
    margin-bottom: 40px;
}

/* ================= LEFT SIDEBAR ================= */
.sidebar {
    background: var(--bg-sidebar);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 20px 15px;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--card-shadow);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar:hover {
    border-color: var(--accent-primary);
    transform: scale(1.02);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.nav-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Home Link */
.home-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
    background: transparent;
}

.home-link:hover {
    background: var(--accent-light);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.home-link.active {
    background: var(--accent-transparent);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    font-weight: 600;
}

.home-icon {
    font-size: 1rem;
}

.home-text {
    font-size: 0.9rem;
}

/* Navigation */
.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: block;
    padding: 12px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.sidebar-nav a:hover {
    background: var(--accent-light);
    color: var(--accent-primary);
    transform: translateX(5px);
}

/* Sidebar Theme Toggle */
.sidebar-theme {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.sidebar-theme button {
    width: 100%;
    padding: 12px;
    background: var(--accent-light);
    border: 2px solid var(--border-strong);
    color: var(--text-primary);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-speed) ease;
}

.sidebar-theme button:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.05);
}

/* ================= MAIN CONTENT ================= */
.main-content {
    background: var(--bg-main);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--card-shadow);
    width: 100%;
}

.main-content:hover {
    border-color: var(--accent-primary);
    transform: scale(1.01);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.hero-section h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Test Selection */
.test-selection h3 {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.test-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.test-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.test-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: 0 0 25px var(--shadow-hover);
}

.test-time {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.test-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.feature-block {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    transition: all var(--transition-speed) ease;
}

.feature-block:hover {
    transform: scale(1.03);
    border-color: var(--accent-primary);
    box-shadow: 0 0 25px var(--shadow-hover);
}

.feature-block h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-block p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.feature-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.feature-link:hover {
    color: var(--accent-hover);
    padding-left: 5px;
}

/* Home Intro Section */
.home-intro {
    margin: 50px 0;
    padding: 30px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    width: 100%;
}

.home-intro h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.home-intro p {
    margin-bottom: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

.why-choose {
    margin-top: 25px;
}

.why-choose h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 1.4rem;
}

.why-choose ul {
    padding-left: 20px;
    list-style: none;
}

.why-choose li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.why-choose li:before {
    content: "✔";
    color: var(--accent-success);
    font-weight: bold;
}

/* Latest Blog Section */
.latest-blog {
    margin: 50px 0;
    width: 100%;
}

.latest-blog h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 25px;
}

.blog-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.blog-card {
    padding: 25px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 25px var(--shadow-hover);
}

.blog-card h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.blog-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.blog-card a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.blog-card a:hover {
    color: var(--accent-hover);
    padding-left: 5px;
}

.more-articles {
    text-align: center;
    margin-top: 20px;
}

.more-articles a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--accent-primary);
    border-radius: 40px;
}

.more-articles a:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.05);
}

/* What's New Section */
.whats-new {
    margin-bottom: 40px;
    width: 100%;
}

.whats-new h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 25px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.news-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    transition: all var(--transition-speed) ease;
}

.news-card:hover {
    transform: scale(1.03);
    border-color: var(--accent-primary);
    box-shadow: 0 0 25px var(--shadow-hover);
}

.news-card h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.news-card p {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
}

.read-more {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.read-more:hover {
    color: var(--accent-hover);
    padding-left: 5px;
}

/* ================= RIGHT SIDEBAR ================= */
.right-sidebar {
    background: var(--bg-right);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 20px;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--card-shadow);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.right-sidebar:hover {
    border-color: var(--accent-primary);
    transform: scale(1.02);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

/* Daily Game Section */
.daily-game {
    text-align: center;
    margin-bottom: 30px;
}

.daily-game h3 {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.daily-game h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.game-preview {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.game-preview p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.play-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
}

.play-btn:hover {
    transform: scale(1.05);
    background: var(--accent-hover);
    box-shadow: 0 0 20px var(--shadow-hover);
}

/* Quick Stats Section */
.quick-stats {
    margin-top: 30px;
}

.quick-stats h4 {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 1rem;
    letter-spacing: 1px;
}

.quick-stats a {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--transition-speed) ease;
    border-radius: 8px;
}

.quick-stats a:hover {
    background: var(--accent-light);
    color: var(--accent-primary);
    transform: translateX(5px);
}

/* Social Links Section */
.social-links {
    margin-top: 30px;
}

.social-links h4 {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 1rem;
    letter-spacing: 1px;
}

.social-link {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--transition-speed) ease;
    border-radius: 8px;
}

.social-link:hover {
    background: var(--accent-light);
    color: var(--accent-primary);
    transform: translateX(5px);
}

/* ================= FOOTER ================= */
.test-footer {
    margin-top: 40px;
    padding: 0 0 20px 0;
    border-top: 2px solid var(--border-color);
    width: 100%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 0;
    width: 100%;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-primary);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-center {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 15px 25px;
    justify-content: center;
}

.footer-links-grid a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-links-grid a:hover {
    color: var(--accent-primary);
}

.footer-right {
    flex: 1;
    text-align: right;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.footer-right p {
    margin-bottom: 5px;
}

.footer-right a {
    color: var(--accent-primary);
    text-decoration: none;
}

.footer-right a:hover {
    text-decoration: underline;
}

/* ================= ANIMATIONS ================= */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ================= HOVER EFFECTS ================= */
.hover-card {
    transition: all var(--transition-speed) ease;
    border: 2px solid var(--border-color);
}

.hover-card:hover {
    transform: scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 0 25px var(--shadow-hover);
}

.hover-btn {
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

.hover-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--shadow-hover);
}

.hover-link {
    transition: all var(--transition-speed) ease;
}

.hover-link:hover {
    color: var(--accent-primary);
    transform: translateX(5px);
}

/* ================= RESPONSIVE DESIGN ================= */
@media screen and (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 220px 1fr 240px;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar, .right-sidebar {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .main-header {
        padding: 15px 0;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .test-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .theme-toggle {
        position: static;
        margin: 20px 0;
        text-align: center;
    }
    
    .theme-btn {
        display: inline-flex;
    }
}

@media screen and (max-width: 768px) {
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .test-options {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-left, .footer-right {
        width: 100%;
        text-align: center;
        align-items: center;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(2, auto);
        gap: 10px 15px;
    }
    
    .footer-right {
        text-align: center;
    }
    
    .blog-preview {
        grid-template-columns: 1fr;
    }
    
    .home-intro {
        padding: 20px;
    }
    
    .home-intro h2 {
        font-size: 1.5rem;
    }
}


@media screen and (max-width: 480px) {
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .test-options {
        grid-template-columns: 1fr;
    }
    
    .test-card {
        padding: 15px;
    }
    
    .test-time {
        font-size: 1rem;
    }
    
    .feature-block {
        padding: 20px;
    }
    
    .why-choose li {
        font-size: 0.9rem;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .footer-links-grid a {
        font-size: 12px;
    }
    
    .footer-copyright {
        font-size: 11px;
    }
    
    .footer-right p {
        font-size: 11px;
    }
}

@media screen and (max-width: 360px) {
    .site-title {
        font-size: 1.2rem;
    }
    
    .mobile-menu-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .hero-section h2 {
        font-size: 1.3rem;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links-grid a {
        font-size: 11px;
    }
}