/* ============================================
   COSMIC THEME - Shared Styles for All Pages
   ============================================ */

/* Fonts loaded via HTML preconnect for better performance */

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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --accent-glow: #22d3ee;
    --dark: #0f0f23;
    --dark-2: #1a1a2e;
    --dark-3: #16213e;
    --card-bg: rgba(26, 26, 46, 0.8);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-5: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 60%),
        var(--dark);
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ============================================
   HEADER STYLES - Transparent to Colorful
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    /* Fully Transparent Initially */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Beautiful Gradient on Scroll */
header.sticky {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.85) 0%,
        rgba(118, 75, 162, 0.85) 50%,
        rgba(139, 92, 246, 0.85) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    padding: 12px 50px;
}

/* Animated shine effect */
header.sticky::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    animation: headerShine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes headerShine {
    0% { left: -50%; }
    50%, 100% { left: 100%; }
}

/* Navigation adapts to sticky header */
header.sticky .navigation a {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

header.sticky .navigation a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

header.sticky .brand {
    -webkit-text-fill-color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

header.sticky .navigation .dropdown .dropdown-btn {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

header.sticky .navigation .dropdown .dropdown-btn:hover {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
}

header .brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.navigation a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.navigation a:hover {
    color: var(--accent);
}

.navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-3);
    transition: width 0.3s ease;
}

.navigation a:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-btn {
    cursor: pointer;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    font-size: 0.95rem;
}

/* Underline effect same as other nav links */
.dropdown-btn::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-3);
    transition: width 0.3s ease;
}

.dropdown-btn:hover::after {
    width: 100%;
}

.dropdown-btn:hover {
    color: var(--accent);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--dark-2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 220px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background: var(--glass);
    color: var(--accent);
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a i {
    width: 20px;
    text-align: center;
}

#caret-icon {
    transition: transform 0.3s ease;
}

.rotate-icon {
    transform: rotate(90deg);
}

.menu-btn {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    position: relative;
    z-index: 1001;
}

.menu-btn::before,
.menu-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.3s ease;
    left: 0;
}

.menu-btn::before {
    top: -8px;
}

.menu-btn::after {
    top: 8px;
}

.menu-btn.active {
    background: transparent;
}

.menu-btn.active::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-btn.active::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 20px 60px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.hero-section h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-section h1 .gradient-text {
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    max-width: 700px;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SEARCH SECTION
   ============================================ */
.search-section {
    width: 100%;
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.6s both;
    margin-bottom: 30px;
}

.search-container {
    display: flex;
    gap: 12px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 8px;
    backdrop-filter: blur(20px);
}

.search-container input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    color: var(--text);
    outline: none;
    font-family: 'Inter', sans-serif;
}

.search-container input::placeholder {
    color: var(--text-muted);
}

.search-container button {
    padding: 15px 30px;
    background: var(--gradient-1);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.search-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* ============================================
   CATEGORY PILLS / FILTERS
   ============================================ */
.category-pills,
.filter-pills {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.category-pill,
.filter-pill {
    padding: 10px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.category-pill:hover, .category-pill.active,
.filter-pill:hover, .filter-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.category-pill i,
.filter-pill i {
    margin-right: 8px;
}

/* ============================================
   CONTENT SECTION
   ============================================ */
.content-section {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title i {
    color: var(--accent);
}

/* ============================================
   CARD GRID
   ============================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.content-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: all 0.4s ease;
}

.content-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.2);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark-3) 100%);
}

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

.content-card:hover .card-image img {
    transform: scale(1.1);
}

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    pointer-events: none;
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    background: var(--gradient-1);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-meta i {
    color: var(--accent);
}

.card-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Book specific */
.book-cover {
    height: 320px;
}

.book-cover img {
    max-width: 70%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.star-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 15px;
}

.star-rating i {
    color: #fbbf24;
    font-size: 0.9rem;
}

.star-rating i.empty {
    color: var(--text-muted);
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-progress {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-completed {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

.status-pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

/* Card actions */
.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.action-btn.primary {
    background: var(--gradient-1);
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.action-btn.secondary {
    background: var(--glass);
    color: var(--text);
    border: 1px solid var(--glass-border);
}

.action-btn.secondary:hover {
    background: var(--glass-border);
}

/* Read more link */
.read-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-link:hover {
    color: var(--accent-glow);
    gap: 12px;
}

/* ============================================
   FEATURED CARD
   ============================================ */
.featured-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    transition: all 0.4s ease;
    margin-bottom: 40px;
}

.featured-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.2);
}

.featured-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--gradient-2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.featured-card h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.featured-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--gradient-1);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.featured-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.featured-btn i {
    transition: transform 0.3s ease;
}

.featured-btn:hover i {
    transform: translateX(5px);
}

/* ============================================
   COMING SOON CARD
   ============================================ */
.coming-soon-card {
    text-align: center;
    padding: 60px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    margin-top: 40px;
}

.coming-soon-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.coming-soon-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.coming-soon-card p {
    color: var(--text-muted);
}

/* ============================================
   SIDEBAR
   ============================================ */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(20px);
    margin-bottom: 25px;
}

.sidebar-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-card h3 i {
    color: var(--accent);
}

/* ============================================
   IFRAME CONTAINERS
   ============================================ */
.iframe-container {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
}

.iframe-container iframe {
    width: 100%;
    border: none;
    display: block;
}

.iframe-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.iframe-header i {
    color: var(--accent);
    font-size: 1.2rem;
}

.iframe-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
}

.iframe-body {
    padding: 0;
}

.iframe-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   GAME CARDS
   ============================================ */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.game-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.4s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.game-card i.game-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.game-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.game-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.play-btn {
    padding: 12px 25px;
    background: var(--gradient-1);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

/* ============================================
   VIDEO GRID
   ============================================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.video-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.video-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.video-embed {
    aspect-ratio: 16/9;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.video-tag {
    padding: 4px 12px;
    background: var(--glass);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   NOTE CARDS
   ============================================ */
.note-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.4s ease;
}

.note-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.note-card .note-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.note-card .note-icon i {
    font-size: 1.5rem;
    color: white;
}

.note-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.note-card h3 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.note-card h3 a:hover {
    color: var(--accent);
}

.note-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.note-type-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--glass);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* ============================================
   AI SELECT
   ============================================ */
.ai-selector {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.ai-option {
    padding: 15px 25px;
    background: var(--glass);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.ai-option:hover, .ai-option.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.ai-option.active {
    background: var(--primary);
    color: white;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark-2);
    border-top: 1px solid var(--glass-border);
    padding: 40px 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left .footer-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scrollToTop-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.scrollToTop-btn.active {
    opacity: 1;
    visibility: visible;
}

.scrollToTop-btn:hover {
    transform: translateY(-5px);
}

.scrollToTop-btn i {
    color: white;
    font-size: 1.2rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    header {
        padding: 15px 30px;
    }
    
    .navigation {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    .navigation {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(15, 15, 35, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px 20px;
        gap: 0;
        transition: left 0.3s ease;
        overflow-y: auto;
        align-items: stretch;
    }

    .navigation.active {
        left: 0;
    }
    
    .navigation a {
        width: 100%;
        padding: 15px 20px;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
    }
    
    .navigation a::after {
        display: none;
    }

    .menu-btn {
        display: block;
    }
    
    /* Dropdown in mobile */
    .dropdown {
        width: 100%;
    }
    
    .dropdown-btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: space-between;
    }
    
    .dropdown-content {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        background: rgba(30, 30, 60, 0.5);
        border: none;
        border-radius: 0;
        margin: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown-content.show {
        display: block;
        max-height: 500px;
    }
    
    .dropdown-content a {
        padding: 12px 40px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .hero-section {
        padding: 100px 20px 40px;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .subtitle {
        font-size: 1rem;
    }

    .search-container {
        flex-direction: column;
    }

    .search-container input {
        width: 100%;
    }

    .search-container button {
        width: 100%;
        justify-content: center;
    }

    .category-pills,
    .filter-pills {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 0 10px;
    }

    .category-pill,
    .filter-pill {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .featured-card {
        padding: 25px;
    }
    
    .featured-card h2 {
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .iframe-container iframe {
        height: 400px;
    }
    
    /* Content sections */
    .content-section {
        padding: 20px;
    }
    
    section {
        padding: 80px 15px 40px;
    }
    
    /* Cards */
    .card {
        padding: 20px;
    }
    
    .card h3 {
        font-size: 1.2rem;
    }
    
    /* Notes page */
    .notes-grid {
        grid-template-columns: 1fr;
    }
    
    /* Books page */
    .book-grid {
        grid-template-columns: 1fr;
    }
    
    /* Facts page */
    .facts-grid {
        grid-template-columns: 1fr;
    }
}

/* Very Small Phones (max-width: 480px) */
@media (max-width: 480px) {
    header {
        padding: 12px 15px;
    }
    
    header .brand {
        font-size: 1.4rem;
    }
    
    .navigation {
        top: 60px;
        height: calc(100vh - 60px);
        padding: 20px 15px;
    }
    
    .navigation a {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 80px 15px 30px;
    }
    
    .hero-section h1 {
        font-size: 1.6rem;
    }
    
    .hero-section .subtitle {
        font-size: 0.9rem;
    }
    
    .search-container input {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .search-container button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .category-pills,
    .filter-pills {
        gap: 6px;
        padding: 0 5px;
    }
    
    .category-pill,
    .filter-pill {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .card {
        padding: 15px;
    }
    
    .card h3 {
        font-size: 1.1rem;
    }
    
    .featured-card {
        padding: 20px;
    }
    
    .featured-card h2 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .dropdown-content a {
        padding: 10px 30px;
        font-size: 0.9rem;
    }
    
    /* Game cards */
    .game-card {
        padding: 15px;
    }
    
    /* Video cards */
    .video-card {
        padding: 15px;
    }
    
    /* Footer */
    footer {
        padding: 30px 15px;
    }
    
    footer p {
        font-size: 0.85rem;
    }
}

/* Landscape orientation fix */
@media (max-height: 500px) and (orientation: landscape) {
    .navigation {
        padding: 15px 20px;
    }
    
    .navigation a {
        padding: 8px 15px;
        font-size: 0.95rem;
    }
    
    .dropdown-btn {
        padding: 8px 15px;
    }
    
    .dropdown-content a {
        padding: 8px 30px;
    }
}

