:root {
    /* Netflix Theme - Default */
    --primary-color: #e50914; /* Netflix red */
    --secondary-color: #222222;
    --background-color: #000000;
    --card-color: #141414;
    --text-color: #ffffff;
    --text-light: #b3b3b3;
    
    /* Upload Theme - Dusty Rose */
    --upload-primary: #974747;
    --upload-secondary: #6D5656;
    --upload-background: #B19F9E;
    --upload-card: #D8CFCF;
    --upload-text: #333333;
    --upload-text-light: #555555;
    
    /* Assets Theme - Green - partially implemented already */
    --assets-primary: #2A5738;
    --assets-secondary: #1D3B27;
    --assets-background: #479761;
    --assets-card: #FFFFFF;
    --assets-text: #333333;
    --assets-text-light: #555555;
    
    /* Ask Theme - Purple */
    --ask-primary: #732F4D;
    --ask-secondary: #9D4C76;
    --ask-background: #a16e83;
    --ask-card: rgba(255, 255, 255, 0.9);
    --ask-text: #333333;
    --ask-text-light: #666666;
    
    /* Common elements */
    --success-color: #4caf50;
    --error-color: #f44336;
    --border-radius: 4px;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Container */
.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    padding: 1.5rem 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}

.logo {
    color: var(--primary-color) !important; /* Using !important to override theme-specific styles */
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 400;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hamburger Menu */
.hamburger-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.login-button {
    display: none; /* Hidden by default, shown via JS when not logged in */
}

.menu-toggle {
    background: none;
    color: var(--text-color);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: var(--border-radius);
    min-width: 200px;
    box-shadow: var(--box-shadow);
    padding: 0.5rem 0;
    display: none;
    z-index: 101;
    margin-top: 0.5rem;
}

.menu-dropdown.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-item {
    padding: 0.8rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.menu-item:hover:not(.disabled) {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.menu-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* Theme-specific menu styles */
body.upload-theme .menu-toggle {
    color: var(--upload-text);
}

body.upload-theme .menu-dropdown {
    background-color: var(--upload-secondary);
}

body.assets-theme .menu-toggle {
    color: white;
}

body.assets-theme .menu-dropdown {
    background-color: var(--assets-secondary);
}

body.ask-theme .menu-toggle {
    color: white;
}

body.ask-theme .menu-dropdown {
    background-color: var(--ask-primary);
}

/* Hero section */
.hero-container {
    position: relative;
    height: 85vh; /* Adjust as needed */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.8) 100%), url('/api/placeholder/1920/1080');
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* Get Started form */
.start-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.start-form-row {
    display: flex;
    width: 100%;
    max-width: 600px;
    gap: 0.5rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .start-form-row {
        flex-direction: column;
    }
}

/* Feature Section */
.features-section {
    padding: 4rem 4%;
    background-color: var(--card-color);
    border-top: 8px solid #222;
    border-bottom: 8px solid #222;
}

.feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 0;
}

.feature:not(:last-child) {
    border-bottom: 1px solid #333;
}

.feature-content {
    width: 50%;
    padding-right: 2rem;
}

/* Update the feature-image class to better contain the images */
.feature-image {
    width: 50%;
    height: 300px;
    background-color: transparent;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-light);
    overflow: hidden; /* Prevent image overflow */
}

/* Add styling for the image inside feature-image */
.feature-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Show the entire image while maintaining aspect ratio */
    object-position: center; /* Center the image */
    transition: var(--transition); /* Add smooth transition for hover effects */
}

/* Optional: Add a hover effect for images */
.feature-image:hover img {
    transform: scale(1.05); /* Slightly zoom image on hover */
}


.feature-image + .feature-content {
    width: 50%;
    padding-right: 2rem;
    margin-left: 10pt;
}

/* Make sure images scale properly on mobile */
@media (max-width: 768px) {
    .feature-image {
        width: 100%;
        height: 250px; /* Slightly smaller on mobile */
    }
}

.feature h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature p {
    font-size: 1.25rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .feature {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-content, .feature-image {
        width: 100%;
        padding-right: 0;
        margin-bottom: 2rem;
    }
}

/* Footer */
footer {
    padding: 2rem 4%;
    color: var(--text-light);
    text-align: center;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 400;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.btn.secondary {
    background-color: var(--secondary-color);
    color: white;
    border: 1px solid #333;
}

.btn.tertiary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn.large {
    font-size: 1.5rem;
    padding: 1rem 2rem;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Input fields */
input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #333;
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: rgba(22, 22, 22, 0.7);
    color: var(--text-color);
    transition: var(--transition);
}

input:focus {
    outline: none;
    background-color: #333;
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

input::placeholder {
    color: #8c8c8c;
}

/* Card styles for logged-in state */
.card {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
}

.card h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Dashboard Tiles */
.dashboard-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.tile {
    background-color: rgba(255,255,255,0.05);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.tile:hover {
    transform: translateY(-5px);
    background-color: rgba(229, 9, 20, 0.1);
    border-color: var(--primary-color);
}

.tile-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tile-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.tile-description {
    color: var(--text-light);
    font-size: 0.9rem;
}

#login-state {
    max-width: 900px;
    margin: 0 auto;
}

/* Button container for logged-in state */
.button-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Upload page themed styles */
body.upload-theme {
    background-color: var(--upload-background);
    color: var(--upload-text);
}

body.upload-theme header {
    background: linear-gradient(to bottom, rgba(109, 86, 86, 0.8) 0%, rgba(177, 159, 158, 0) 100%);
}

/* Removed the logo color override for upload theme */

body.upload-theme .card {
    background-color: var(--upload-card);
    color: var(--upload-text);
}

body.upload-theme .card h2,
body.upload-theme .card h3 {
    color: var(--upload-primary);
}

body.upload-theme .btn.primary {
    background-color: var(--upload-primary);
    color: white;
}

body.upload-theme .btn.secondary {
    background-color: var(--upload-secondary);
    color: white;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

body.upload-theme .btn.tertiary {
    color: var(--upload-text);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

body.upload-theme input {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--upload-text);
    border: 1px solid var(--upload-secondary);
}

body.upload-theme input:focus {
    background-color: white;
    box-shadow: 0 0 0 2px rgba(151, 71, 71, 0.2);
}

body.upload-theme input::placeholder {
    color: #777;
}

body.upload-theme footer {
    color: var(--upload-text);
}

/* Assets page themed styles */
body.assets-theme {
    background-color: var(--assets-background);
    color: var(--assets-text);
}

body.assets-theme header {
    background: linear-gradient(to bottom, rgba(42, 87, 56, 0.8) 0%, rgba(71, 151, 97, 0) 100%);
}

/* Removed the logo color override for assets theme */

body.assets-theme .card {
    background-color: var(--assets-card);
    color: var(--assets-text);
}

body.assets-theme .card h2,
body.assets-theme .card h3 {
    color: var(--assets-primary);
}

body.assets-theme .btn.primary {
    background-color: var(--assets-primary);
    color: white;
}

body.assets-theme .btn.secondary {
    background-color: var(--assets-secondary);
    color: white;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

body.assets-theme .btn.tertiary {
    color: var(--assets-text);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

body.assets-theme input {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--assets-text);
    border: 1px solid var(--assets-secondary);
}

body.assets-theme input:focus {
    background-color: white;
    box-shadow: 0 0 0 2px rgba(42, 87, 56, 0.2);
}

body.assets-theme input::placeholder {
    color: #777;
}

body.assets-theme footer {
    color: var(--assets-text);
}

/* Ask page themed styles */
body.ask-theme {
    background-color: var(--ask-background);
    color: white;
}

body.ask-theme header {
    background: linear-gradient(to bottom, rgba(115, 47, 77, 0.8) 0%, rgba(161, 110, 131, 0) 100%);
}

/* Removed the logo color override for ask theme */

body.ask-theme .card {
    background-color: var(--ask-card);
    color: var(--ask-text);
}

body.ask-theme .card h2,
body.ask-theme .card h3 {
    color: var(--ask-primary);
}

body.ask-theme .btn.primary {
    background-color: var(--ask-primary);
    color: white;
}

body.ask-theme .btn.secondary {
    background-color: var(--ask-secondary);
    color: white;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

body.ask-theme .btn.tertiary {
    color: var(--ask-text);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

body.ask-theme input,
body.ask-theme textarea {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--ask-text);
    border: 1px solid var(--ask-secondary);
}

body.ask-theme input:focus,
body.ask-theme textarea:focus {
    background-color: white;
    box-shadow: 0 0 0 2px rgba(115, 47, 77, 0.2);
}

body.ask-theme input::placeholder,
body.ask-theme textarea::placeholder {
    color: #777;
}

body.ask-theme footer {
    color: white;
}

/* Ask page specific styles */
.ask-card {
    max-width: 800px;
}

.ask-header {
    margin-bottom: 2rem;
    text-align: center;
}

.ask-header h2 {
    margin-bottom: 1rem;
}

.ask-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.ask-input {
    display: flex;
    margin-bottom: 1.5rem;
}

.ask-input textarea {
    flex-grow: 1;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
    min-height: 60px;
    resize: vertical;
}

.ask-input button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.response-area {
    background-color: #f5f5f5;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    min-height: 200px;
    margin-bottom: 1.5rem;
}

.response-area h3 {
    margin-bottom: 1rem;
}

.response-placeholder {
    color: var(--ask-text-light);
    font-style: italic;
}

/* Make logged-in state responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .dashboard-tiles {
        grid-template-columns: 1fr;
    }

    .btn.large {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
    }
}