/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #87CEEB;
    --secondary-color: #DDA0DD;
    --accent-color: #87CEEB;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --error-color: #F44336;
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --background-primary: #FFFFFF;
    --background-secondary: #F8F9FA;
    --background-tertiary: #ECEFF1;
    --border-color: #E0E0E0;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --text-primary: #FFFFFF;
    --text-secondary: #B0BEC5;
    --background-primary: #1A1A1A;
    --background-secondary: #2D2D2D;
    --background-tertiary: #3A3A3A;
    --border-color: #404040;
    --shadow-light: 0 2px 10px rgba(255, 255, 255, 0.1);
    --shadow-medium: 0 4px 20px rgba(255, 255, 255, 0.15);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
}

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

/* Header Styles */
.header {
    background-color: var(--background-primary);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 1.8rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.nav-link span { display: none; }

@media (max-width: 700px) {
  .nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-nav .nav-link span { display: inline; margin-left: 8px; }
}

@media (min-width: 701px) {
  .mobile-menu { display: none; }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: var(--background-secondary);
    color: var(--primary-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--background-primary);
    box-shadow: var(--shadow-medium);
    z-index: 1001;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.mobile-nav .nav-link {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1002;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.menu-toggle:hover {
    transform: scale(1.1);
}

/* Usage Timer */
.usage-timer {
    position: fixed;
    top: 120px;
    right: 20px;
    background-color: var(--background-secondary);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 999;
    font-weight: 500;
    color: var(--text-primary);
}

.usage-timer i {
    color: var(--primary-color);
}

/* Points and Streak Bars */
.points-streak-container {
    position: fixed;
    top: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
}

.points-bar, .streak-bar {
    background-color: var(--background-secondary);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-primary);
    min-width: 120px;
}

.points-bar i {
    color: var(--warning-color);
}

.streak-bar i {
    color: var(--error-color);
}

.points-number, .streak-number {
    font-weight: 700;
    color: var(--primary-color);
}

/* Main Content */
.main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
    background: var(--background-primary);
    color: var(--text-primary);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: var(--text-primary);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-primary);
}

.search-bar {
    max-width: 700px;
    margin: 0 auto 3rem;
    display: flex;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    position: relative;
}

.search-bar input {
    flex: 1;
    padding: 1.2rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.search-bar input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.search-btn:hover {
    background-color: var(--success-color);
    transform: translateX(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.stat i {
    font-size: 2rem;
    color: var(--accent-color);
}

.stat div {
    text-align: left;
}

.stat span {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

.stat small {
    opacity: 0.8;
}

/* Categories Section */
.categories {
    padding: 4rem 0;
    background-color: var(--background-secondary);
}

.categories h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background-color: var(--background-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.category-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Featured Section */
.featured {
    padding: 4rem 0;
}

.featured h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.featured-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background-color: var(--background-secondary);
    color: var(--text-secondary);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.content-card {
    background-color: var(--background-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.content-card-image {
    width: 100%;
    height: 200px;
    background-color: var(--background-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
}

.content-card-body {
    padding: 1.5rem;
}

.content-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.content-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.content-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.content-card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: var(--background-secondary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Footer */
.footer {
    background-color: var(--background-tertiary);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Chatbot */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.chatbot-toggle:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    background-color: var(--background-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-window.active {
    display: flex;
}

.chatbot-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-chatbot {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message i {
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.user-message i {
    background-color: var(--secondary-color);
}

.message p {
    background-color: var(--background-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    max-width: 80%;
    font-size: 0.9rem;
}

.user-message p {
    background-color: var(--primary-color);
    color: white;
}

.chatbot-input {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.chatbot-input input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    outline: none;
    font-size: 0.9rem;
}

.chatbot-input button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.chatbot-input button:hover {
    background-color: var(--secondary-color);
}

/* Responsive Design */
    /* Authentication Styles */
    .auth-main {
        min-height: 70vh;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1;
    }

    .auth-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
        background: var(--background-primary);
        border-radius: var(--border-radius);
        box-shadow: 0 20px 60px rgba(0,0,0,0.1);
        overflow: hidden;
        min-height: 600px;
    }

    .auth-card {
        padding: 3rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .auth-header {
        text-align: center;
        margin-bottom: 2rem;
    }

    .auth-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 1rem;
    }

    .auth-logo i {
        font-size: 2rem;
        color: var(--primary-color);
    }

    .auth-logo h1 {
        font-size: 1.8rem;
        color: var(--primary-color);
        margin: 0;
    }

    .auth-header h2 {
        color: var(--text-primary);
        margin-bottom: 0.5rem;
        font-size: 1.8rem;
    }

    .auth-header p {
        color: var(--text-secondary);
        font-size: 1rem;
    }

    .auth-form {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .input-group {
        position: relative;
        display: flex;
        align-items: center;
    }

    .input-group i {
        position: absolute;
        left: 1rem;
        color: var(--text-secondary);
        z-index: 2;
    }

    .input-group input {
        width: 100%;
        padding: 1rem 1rem 1rem 3rem;
        border: 2px solid var(--border-color);
        border-radius: var(--border-radius);
        outline: none;
        font-size: 1rem;
        transition: var(--transition);
        background: var(--background-primary);
    }

    .input-group input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
    }

    .password-toggle {
        position: absolute;
        right: 1rem;
        background: none;
        border: none;
        color: var(--text-secondary);
        cursor: pointer;
        z-index: 2;
    }

    .form-options {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.9rem;
    }

    .checkbox-label {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        color: var(--text-secondary);
    }

    .checkbox-label input[type="checkbox"] {
        width: auto;
        margin: 0;
    }

    .forgot-link {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
    }

    .forgot-link:hover {
        text-decoration: underline;
    }

    .auth-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
        font-weight: 600;
        margin-top: 1rem;
    }

    .auth-divider {
        text-align: center;
        margin: 1.5rem 0;
        position: relative;
        color: var(--text-secondary);
    }

    .auth-divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: var(--border-color);
        z-index: 1;
    }

    .auth-divider span {
        background: var(--background-primary);
        padding: 0 1rem;
        position: relative;
        z-index: 2;
    }

    .social-login {
        display: flex;
        gap: 1rem;
    }

    .social-btn {
        flex: 1;
        padding: 0.75rem;
        border: 2px solid var(--border-color);
        border-radius: var(--border-radius);
        background: var(--background-primary);
        color: var(--text-primary);
        cursor: pointer;
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-weight: 500;
    }

    .google-btn:hover {
        border-color: #db4437;
        color: #db4437;
    }

    .facebook-btn:hover {
        border-color: #4267B2;
        color: #4267B2;
    }

    .auth-footer {
        text-align: center;
        margin-top: 2rem;
        color: var(--text-secondary);
    }

    .auth-footer a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
    }

    .auth-footer a:hover {
        text-decoration: underline;
    }

    .auth-illustration {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
        padding: 3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    .auth-illustration::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    }

    .illustration-content {
        position: relative;
        z-index: 2;
        text-align: center;
    }

    .illustration-content h3 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .illustration-content p {
        font-size: 1.1rem;
        opacity: 0.9;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .stats-preview {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .stats-preview .stat-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        background: rgba(255, 255, 255, 0.1);
        padding: 1rem;
        border-radius: var(--border-radius);
        backdrop-filter: blur(10px);
    }

    .stats-preview .stat-item i {
        font-size: 1.5rem;
        color: var(--accent-color);
    }

    .features-list {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        text-align: left;
    }

    .feature-item {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        background: rgba(255, 255, 255, 0.1);
        padding: 1.5rem;
        border-radius: var(--border-radius);
        backdrop-filter: blur(10px);
    }

    .feature-item i {
        font-size: 1.5rem;
        color: var(--accent-color);
        margin-top: 0.25rem;
    }

    .feature-item h4 {
        margin-bottom: 0.5rem;
        font-size: 1.1rem;
    }

    .feature-item p {
        opacity: 0.9;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Search Results */
    .search-results {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background-primary);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        box-shadow: var(--shadow-medium);
        max-height: 400px;
        overflow-y: auto;
        z-index: 1000;
        display: none;
    }

    .search-results.active {
        display: block;
    }

    .search-result-item {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        cursor: pointer;
        transition: var(--transition);
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .search-result-item:hover {
        background: var(--background-secondary);
    }

    .search-result-item:last-child {
        border-bottom: none;
    }

    .search-result-icon {
        width: 40px;
        height: 40px;
        background: var(--background-secondary);
        border-radius: var(--border-radius);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        color: var(--primary-color);
    }

    .search-result-content {
        flex: 1;
    }

    .search-result-title {
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 0.25rem;
    }

    .search-result-meta {
        font-size: 0.85rem;
        color: var(--text-secondary);
    }

    .search-result-type {
        background: var(--primary-color);
        color: white;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 500;
    }

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat {
        justify-content: center;
    }

    .categories h2,
    .featured h2 {
        font-size: 2rem;
    }

    .featured-tabs {
        flex-wrap: wrap;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .chatbot-window {
        width: 300px;
    }

    .points-streak-container {
        position: relative;
        top: auto;
        right: auto;
        flex-direction: row;
        justify-content: center;
        margin: 1rem 0;
    }

    .auth-container {
        grid-template-columns: 1fr;
        margin: 1rem;
    }

    .auth-card {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .social-login {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

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

    .search-btn {
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }

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

    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .chatbot-window {
        width: 280px;
        height: 400px;
    }

    .points-streak-container {
        flex-direction: column;
        align-items: center;
    }

    .auth-card {
        padding: 1.5rem;
    }
}

/* Additional Page Styles */
.page-header {
    background-color: var(--background-secondary);
    padding: 2rem 0;
    margin-top: 80px;
}

.page-header h1 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.page-content {
    padding: 2rem 0;
}

.filters {
    background-color: var(--background-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-primary);
}

.filter-group select,
.filter-group input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    outline: none;
    font-size: 0.9rem;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--primary-color);
}

.leaderboard-table {
    background-color: var(--background-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.leaderboard-table table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table th {
    background-color: var(--background-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.leaderboard-table tr:hover {
    background-color: var(--background-secondary);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: 700;
    color: white;
}

.rank-1 {
    background-color: #FFD700;
}

.rank-2 {
    background-color: #C0C0C0;
}

.rank-3 {
    background-color: #CD7F32;
}

.rank-other {
    background-color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    outline: none;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(135, 206, 235, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: none;
}

.alert.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.alert.error {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background-color: var(--background-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
}

.team-member-avatar {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1rem;
}

.team-member h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.team-member p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.detail-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-image {
    width: 300px;
    height: 400px;
    background-color: var(--background-secondary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
}

.detail-info {
    flex: 1;
}

.detail-info h1 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-meta span {
    background-color: var(--background-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.detail-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.detail-actions {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .detail-header {
        flex-direction: column;
    }

    .detail-image {
        width: 100%;
        height: 300px;
    }

    .detail-actions {
        flex-direction: column;
    }
}

.hero-timer {
    position: absolute;
    top: 24px;
    right: 32px;
    background: rgba(0,0,0,0.08);
    color: var(--text-primary);
    padding: 0.7rem 1.3rem;
    border-radius: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 3;
}

[data-theme="dark"] .hero-timer {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .hero-timer {
        top: 12px;
        right: 12px;
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
}

.floating-user-stats {
    position: fixed;
    bottom: 24px;
    left: 32px;
    right: auto;
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.08);
    color: var(--text-primary);
    padding: 0.7rem 1.3rem;
    border-radius: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-weight: 600;
    z-index: 2000;
    transition: background 0.3s;
}

.user-stats-group {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

[data-theme="dark"] .floating-user-stats {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
}

.floating-user-stats .usage-timer,
.floating-user-stats .points-bar,
.floating-user-stats .streak-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.05rem;
}

.floating-user-stats .points-bar i {
    color: var(--primary-color);
}
.floating-user-stats .streak-bar i {
    color: var(--accent-color);
}

@media (max-width: 600px) {
    .floating-user-stats {
        bottom: 12px;
        left: 8px;
        right: auto;
        padding: 0.5rem 0.7rem;
        font-size: 0.95rem;
    }
    .user-stats-group {
        gap: 0.6rem;
    }
}

.downloads-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
.download-card {
  display: flex;
  align-items: center;
  background: var(--background-secondary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  padding: 1.2rem 1.5rem;
  gap: 1.5rem;
  transition: box-shadow 0.2s;
}
.download-card:hover {
  box-shadow: var(--shadow-medium);
}
.download-card-image {
  font-size: 2.5rem;
  flex-shrink: 0;
}
.download-card-body {
  flex: 1;
}
.download-card-body h3 {
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
}
.download-card-body p {
  color: var(--text-secondary);
  font-size: 0.98rem;
}
.download-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (max-width: 600px) {
  .downloads-list {
    gap: 1rem;
  }
  .download-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.8rem;
  }
  .download-card-image {
    font-size: 2rem;
  }
  .download-card-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

.profile-main-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}
.profile-card-large {
    background: var(--background-secondary, #fff);
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgba(60,60,130,0.10), 0 1.5px 4px rgba(60,60,130,0.06);
    padding: 3rem 2.5rem 2.5rem 2.5rem;
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 2rem;
}
.profile-avatar {
    font-size: 5rem;
    color: var(--primary-color, #4f8cff);
    margin-bottom: 1.5rem;
}
.profile-name-edit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
}
#profileNameInput, #profileEmailInput {
    font-size: 1.4rem;
    width: 100%;
    max-width: 320px;
    text-align: center;
}
.btn-icon {
    margin-top: 0.5rem;
    font-size: 1.6rem;
}
.profile-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 2rem 0 2.5rem 0;
    width: 100%;
}
.profile-stat {
    font-size: 1.2rem;
    color: var(--text-secondary, #555);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-logout {
    background: var(--danger, #ff4d4f);
    color: #fff;
    font-size: 1.2rem;
    padding: 0.9rem 2.2rem;
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    margin-top: 1.5rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255,77,79,0.10);
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.btn-logout:hover, .btn-logout:focus {
    background: #d9363e;
    color: #fff;
}
@media (max-width: 600px) {
    .profile-card-large {
        padding: 1.5rem 0.5rem;
        border-radius: 1.2rem;
    }
    .profile-avatar {
        font-size: 3.2rem;
    }
    #profileNameInput, #profileEmailInput {
        font-size: 1.1rem;
        max-width: 98vw;
    }
}

.profile-name-edit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

#profileNameInput {
    font-size: 1.5rem;
    font-family: inherit;
    border: 1px solid var(--border-color, #ccc);
    border-radius: 6px;
    padding: 4px 10px;
    background: var(--background-secondary, #f9f9f9);
    color: var(--text-primary, #222);
    width: 180px;
    transition: border-color 0.2s;
}
#profileNameInput:focus {
    outline: none;
    border-color: var(--primary-color, #4f8cff);
}

#profileEmailInput {
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--border-color, #ccc);
    border-radius: 6px;
    padding: 4px 10px;
    background: var(--background-secondary, #f9f9f9);
    color: var(--text-primary, #222);
    width: 220px;
    transition: border-color 0.2s;
}
#profileEmailInput:focus {
    outline: none;
    border-color: var(--primary-color, #4f8cff);
}

.btn-icon {
    background: none;
    border: none;
    color: var(--primary-color, #4f8cff);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.btn-icon:hover, .btn-icon:focus {
    background: var(--background-secondary, #f0f4ff);
    color: var(--primary-color, #2563eb);
}

.btn-icon#profileNavBtn.nav-link.active::after {
    display: none !important;
}

/* Auth (login/signup) page styles */
.auth-main {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.auth-card {
    background: var(--background-secondary, #fff);
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgba(60,60,130,0.10), 0 1.5px 4px rgba(60,60,130,0.06);
    padding: 2.5rem 2.2rem 2.2rem 2.2rem;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}
.auth-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}
.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 2.2rem;
    color: var(--primary-color, #4f8cff);
    margin-bottom: 0.5rem;
}
.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color, #4f8cff);
}
.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0.5rem 0 0.2rem 0;
}
.auth-header p {
    color: var(--text-secondary, #666);
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
}
.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.form-row {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
}
.input-group {
    display: flex;
    align-items: center;
    background: var(--background-primary, #f7f9fb);
    border-radius: 1.2rem;
    padding: 0.7rem 1.1rem;
    gap: 0.7rem;
    border: 1px solid var(--border-color, #e0e6ed);
    font-size: 1.1rem;
}
.input-group i {
    color: var(--primary-color, #4f8cff);
    font-size: 1.1rem;
}
.input-group input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 1.18rem;
    width: 100%;
    color: var(--text-primary, #222);
    padding: 0.5rem 0.2rem 0.5rem 0.2rem;
    min-width: 0;
    max-width: 500px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.input-group:focus-within {
    border-color: var(--primary-color, #4f8cff);
    box-shadow: 0 0 0 2px rgba(79,140,255,0.10);
}
.input-group {
    min-width: 0;
    max-width: 340px;
    width: 100%;
    margin: 0 auto;
}
@media (max-width: 600px) {
    .input-group {
        min-width: 0;
        max-width: 98vw;
    }
    .input-group input {
        font-size: 1rem;
        padding: 0.5rem 0.1rem;
    }
}
.auth-btn {
    width: 100%;
    max-width: 340px;
    margin: 0.5rem auto 0 auto;
    padding: 0.9rem 0;
    font-size: 1.2rem;
    border-radius: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}
.auth-footer {
    margin-top: 1.2rem;
    text-align: center;
    font-size: 1rem;
}
.auth-footer a {
    color: var(--primary-color, #4f8cff);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.auth-footer a:hover {
    color: #2563eb;
}
@media (max-width: 600px) {
    .auth-card {
        padding: 1.2rem 0.3rem;
        border-radius: 1.1rem;
    }
    .auth-header h1 {
        font-size: 1.3rem;
    }
    .auth-header h2 {
        font-size: 1.1rem;
    }
    .auth-btn {
        font-size: 1rem;
    }
}