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

:root {
    --primary-blue: #4a90e2;
    --light-blue: #cfdbe5;
    --dark-blue: #2c5282;
    --accent-orange: #ff6b35;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --text-dark: #2d3748;
    --text-gray: #718096;
    --border-color: #e2e8f0;
    --success-green: #48bb78;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

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

/* Featured Section */
.featured-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #5a9fe8 100%);
    color: white;
    padding: 32px 0;
    box-shadow: var(--shadow);
}

.featured-section .section-title {
    color: white;
    text-align: center;
    margin-bottom: 24px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

/* Header */
.site-header {
    background-color: var(--bg-white);
    padding: 24px 0;
    border-bottom: 2px solid var(--light-blue);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo h1 {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.tagline {
    color: var(--text-gray);
    font-size: 14px;
}

.main-nav {
    display: flex;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--light-blue);
    color: var(--dark-blue);
}

/* Search Section */
.search-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 48px 0;
    color: white;
}

.search-wrapper {
    text-align: center;
}

.search-wrapper h2 {
    font-size: 36px;
    margin-bottom: 24px;
}

.search-bar {
    display: flex;
    max-width: 600px;
    margin: 0 auto 24px;
    gap: 12px;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

.search-button {
    padding: 14px 32px;
    background-color: var(--accent-orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.search-button:hover {
    transform: scale(1.05);
}

.search-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* Section Styles */
.deals-section,
.movies-section,
.collection-section {
    padding: 48px 0;
}

.section-title {
    font-size: 28px;
    margin-bottom: 32px;
    color: var(--text-dark);
}

/* Movie/Deal Cards */
.deals-grid,
.movies-grid,
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.movie-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.movie-poster {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, var(--light-blue) 0%, #e6eef5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    overflow: hidden;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.movie-info {
    padding: 16px;
}

.movie-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: var(--text-gray);
    font-size: 14px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-orange);
}

.price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.price {
    font-size: 24px;
    font-weight: 700;
    color: var(--success-green);
}

.price.deal {
    color: var(--accent-orange);
}

.format-tag {
    background-color: var(--light-blue);
    color: var(--dark-blue);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.movie-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

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

.btn-collection.added {
    background-color: var(--success-green);
}

.btn-wishlist {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-wishlist:hover {
    background-color: var(--light-blue);
}

.btn-wishlist.added {
    background-color: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
}

.amazon-link {
    display: block;
    background-color: var(--accent-orange);
    color: white;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 8px;
    transition: background-color 0.2s;
}

.amazon-link:hover {
    background-color: #ff5722;
}

/* Collection Stats */
.collection-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background-color: var(--bg-white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    color: var(--text-gray);
    padding: 48px 24px;
    background-color: var(--bg-white);
    border-radius: 12px;
    grid-column: 1 / -1;
}

/* Footer */
.site-footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 48px 0 24px;
    margin-top: 48px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 16px;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--light-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.disclosure {
    font-size: 12px;
    color: var(--light-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 24px;
    text-align: center;
    color: var(--light-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner-content {
        justify-content: center;
        text-align: center;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo h1 {
        font-size: 24px;
    }

    .search-wrapper h2 {
        font-size: 28px;
    }

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

    .deals-grid,
    .movies-grid,
    .collection-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .main-nav {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .deals-grid,
    .movies-grid,
    .collection-grid {
        grid-template-columns: 1fr;
    }
}
