/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #e8e8e8;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #2d9f5f 0%, #1e7a47 100%);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}

.logo-highlight {
    color: #ff8c42;
}

.search-bar {
    display: flex;
    gap: 10px;
}

.search-bar input {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    width: 300px;
    font-size: 14px;
}

.search-bar input:focus {
    outline: 2px solid #ff8c42;
}

.search-bar button {
    padding: 10px 25px;
    background-color: #ff8c42;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: #ff7028;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #2d9f5f 0%, #1e7a47 100%);
    padding: 25px 0;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.welcome-banner h1 {
    color: white;
    text-align: center;
    font-size: 24px;
    font-weight: normal;
}

/* Category Navigation */
.category-nav {
    margin-top: 20px;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: center;
}

.category-btn {
    padding: 10px 20px;
    background-color: #ff8c42;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.category-btn:hover {
    background-color: #ff7028;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.category-btn.active {
    background-color: #1e7a47;
}

/* Homepage Section */
.homepage-section {
    margin-top: 20px;
}

.section-header {
    background-color: #ff8c42;
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.section-header h2 {
    color: white;
    font-size: 20px;
    font-weight: bold;
}

/* Movies Grid */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.movie-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.movie-poster {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.movie-info {
    padding: 15px;
    background-color: #1a1a1a;
    color: white;
    text-align: center;
}

.movie-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 40px;
}

.movie-meta {
    font-size: 12px;
    color: #aaa;
    line-height: 1.5;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
}

.page-btn {
    padding: 8px 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.page-btn:hover {
    background-color: #ff8c42;
    color: white;
    border-color: #ff8c42;
}

.page-btn.active {
    background-color: #ff8c42;
    color: white;
    border-color: #ff8c42;
}

.page-dots {
    color: #666;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2d9f5f 0%, #1e7a47 100%);
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ff8c42;
}

.disclaimer {
    font-size: 12px;
    text-align: center;
    margin-top: 15px;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .search-bar input {
        width: 250px;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .movie-poster {
        height: 220px;
    }

    .category-buttons {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 22px;
    }

    .search-bar {
        flex-direction: column;
        width: 100%;
    }

    .search-bar input {
        width: 100%;
    }

    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-btn {
        font-size: 12px;
        padding: 8px 15px;
    }
}
