/* =====================================
   MOVIE4K DOCUMENTATION WEBSITE
   Clean, Modern, Consistent Design
   ===================================== */

/* VARIABLES & RESET */
:root {
    --primary: #FF6B6B;
    --primary-dark: #ff5252;
    --primary-light: #ff8787;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-secondary);
    line-height: 1.8;
}

a {
    color: var(--primary);
    text-decoration: none;
}

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

/* ===== NAVIGATION ===== */
.navbar {
    background: var(--text-primary);
    color: white;
    padding: 1.25rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    color: #e5e7eb;
}

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

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

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

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: white;
}

.hero .subtitle {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 600;
    color: white;
}

.hero .description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
}

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

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

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: #667eea;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 80px 0;
    background: var(--bg-primary);
}

.features h2 {
    text-align: center;
    color: var(--text-primary);
}

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

.feature-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

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

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

/* ===== ABOUT SECTION ===== */
.about {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.about h2 {
    text-align: center;
    color: var(--text-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-text p {
    margin-bottom: 1.2rem;
    line-height: 1.9;
}

.about-text h3 {
    margin: 2rem 0 1.5rem;
    color: var(--text-primary);
}

.about-list {
    list-style: none;
}

.about-list li {
    padding: 0.8rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.about-list li:last-child {
    border-bottom: none;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
}

.stat:hover {
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ===== DOWNLOAD SECTION ===== */
.download-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--text-primary) 0%, #2d3748 100%);
    color: white;
}

.download-section {
    text-align: center;
}

.download-section h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.download-section > p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.store-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 2px solid white;
    background: transparent;
    text-decoration: none;
    color: white;
    font-weight: 600;
    min-width: 220px;
    justify-content: center;
}

.store-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.app-store-btn {
    border-color: white;
}

.play-icon,
.apple-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.btn-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.store-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    opacity: 0.8;
}

.store-name {
    font-size: 1.2rem;
    font-weight: 700;
}

/* ===== STATUS SECTION ===== */
.status {
    padding: 80px 0;
    background: var(--bg-primary);
}

.status h2 {
    text-align: center;
}

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

.status-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
}

.status-card:hover {
    box-shadow: var(--shadow-md);
}

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

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 100%;
}

.status-text {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.status-list {
    list-style: none;
}

.status-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.contact h2 {
    text-align: center;
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h3 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.contact-method {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    gap: 1.5rem;
}

.contact-method:hover {
    box-shadow: var(--shadow-md);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-method h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-method p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

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

/* ===== TERMS SECTION ===== */
.terms {
    padding: 80px 0;
    background: var(--bg-primary);
}

.terms h2 {
    text-align: center;
}

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

.terms-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
}

.terms-card:hover {
    box-shadow: var(--shadow-md);
}

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

.terms-card > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.terms-list {
    list-style: none;
}

.terms-list li {
    padding: 0.6rem 0;
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.terms-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer p {
    color: #d1d5db;
    margin: 0;
}

.tmdb-logo {
    color: var(--primary);
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 80px 0 60px;
    }

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

    .hero .subtitle {
        font-size: 1.3rem;
    }

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

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

    .about-stats {
        grid-template-columns: 1fr;
    }

    .download-section h2 {
        font-size: 1.8rem;
    }

    .store-buttons {
        gap: 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .store-btn {
        width: 100%;
        min-width: unset;
        max-width: 300px;
        margin: 0 auto;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .nav-menu a {
        font-size: 0.9rem;
    }

    .features-grid,
    .status-grid,
    .terms-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 200px;
    }
}