/**
 * Movie Night Planner - Main Stylesheet
 * Responsive design for desktop and mobile
 */

/* CSS Variables (overridden by themes) */
:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --secondary: #0a0a0a;
    --accent: #ef4444;
    --bg-dark: #000000;
    --bg-light: #0f0f0f;
    --text: #e5e5e5;
    --text-light: #a3a3a3;
    --white: #ffffff;
    --shadow: rgba(0,0,0,0.3);
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Navigation */
.main-header {
    background: var(--secondary);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: background 0.3s, color 0.3s;
}

.nav-menu a:hover {
    background: var(--primary);
    color: var(--white);
}

/* Dropdown menu */
.nav-dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary);
    list-style: none;
    min-width: 160px;
    box-shadow: 0 4px 12px var(--shadow);
    border-radius: 8px;
    padding: 0.5rem 0;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li { margin: 0; }
.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 50%, var(--bg-dark) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

.card-body, .card-title {
    color: var(--text);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 1rem;
    background: #1a1a1a;
    color: var(--text);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
}

select.form-control {
    background: #1a1a1a;
    color: var(--text);
}

select {
    background: #1a1a1a;
    color: var(--text);
    border: 1px solid #333;
    padding: 0.5rem;
    border-radius: 6px;
}

/* Footer */
.main-footer {
    background: var(--secondary);
    color: var(--white);
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

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

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

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.alert-error {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
}

.alert-info {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

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

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    background: var(--secondary);
    color: var(--white);
}

tr:hover {
    background: #1a1a1a;
}

/* Content sections */
section h1, section h2, section h3 {
    color: var(--text);
}

section p, section li {
    color: var(--text-light);
}

section a {
    color: var(--accent);
}

/* Content boxes - dark theme */
.faq-item, .guide-step, .content-card {
    background: #1a1a1a !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

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

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

@media (min-width: 769px) {
    .nav-menu {
        display: flex !important;
    }
}
