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

body {
    background-color: var(--background-color);
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
}

/* Container */
.container-custom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Container fluid styles */
.container-fluid {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.banner-container {
    width: 100%;
    margin: 0 auto;
}

/* Navbar styles */
.navbar {
    position: relative;
    height: 60px;
    background-color: #111111;
    border-bottom: 1px solid #2a2a2a;
}

.navbar-brand {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
    margin: 0;
}

.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-item {
    height: 100%;
    display: flex;
    align-items: center;
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.9);
    padding: 0 20px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
    background-color: var(--primary-color);
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .navbar-toggler {
        display: block;
        margin-left: auto;
    }

    .navbar-collapse {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #111111;
    }

    .navbar-collapse.show {
        display: block;
    }

    .navbar-nav {
        flex-direction: column;
        height: auto;
    }

    .nav-item {
        width: 100%;
        height: auto;
    }

    .nav-link {
        padding: 15px 20px;
        width: 100%;
        justify-content: center;
    }
}

/* Movie Cards */
.movie-listings .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.col-custom {
    flex: 0 0 180px;
}

.card {
    position: relative;
    width: 180px;
    height: auto;
    border: 2px solid #414141;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.3s;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.5),
                0 0 20px rgba(255, 255, 255, 0.3);
    border: 2px solid var(--primary-color);
    font-weight: bold;
}

.card a {
    position: relative;
    display: block;
    width: 100%;
    text-decoration: none;
}

.card a.poster-link {
    height: 270px;
    overflow: hidden;
}

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

.year {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.movie-title-container {
    background-color: var(--primary-color);
    padding: 5px 5px;
    text-align: center;
}

.movie-title {
    color: white;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    margin: 0;
}

.card-content {
    background-color: white;
    min-height: 120px;
    border-radius: 0 0 8px 8px;
    padding: 10px;
}

/* Filter Form */
.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    color: white;
    margin-bottom: 0.5rem;
}

select, input[type="text"] {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.pagination a {
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #333;
    font-size: 0.9rem;
    line-height: 1.2;
}

.pagination a.active {
    background-color: var(--primary-color);
    border-color: white;
}

.pagination a:hover:not(.active) {
    background-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-form {
        grid-template-columns: 1fr;
    }

    .navbar-nav {
        display: none;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Add focus styles for accessibility */
.nav-link:focus {
    outline: 2px solid #ffffff;
    outline-offset: -2px;
    color: #ffffff;
}

/* Form Controls */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 14px;
    line-height: 1.2;
}

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

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

.form-control {
    display: block;
    width: 100%;
    padding: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: white;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 5px;
    transition: border-color 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: 0;
}

/* Utility Classes */
.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1.5rem; }
.g-3 { gap: 1rem; }

/* Container */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Navbar Updates */
.navbar-toggler {
    padding: 0.5rem;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    display: none;
    margin-left: auto;
    order: 2;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center;
    background-size: 100%;
}

.navbar-collapse {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .navbar-toggler {
        display: block;
    }

    .navbar-collapse {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #111111;
        padding: 1rem;
    }

    .navbar-collapse.show {
        display: block;
    }

    .navbar-nav {
        flex-direction: column;
        margin: 0;
        width: 100%;
    }

    .nav-link {
        padding: 10px 20px;
    }
}


.pagination-ellipsis {
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Welcome Message Styling */
.welcome-message {
    text-align: center;
    padding: 20px 15px;
    margin-bottom: 30px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    border-right: 4px solid var(--primary-color);
}

.welcome-message h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.welcome-message p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .welcome-message h1 {
        font-size: 1.5rem;
    }
    
    .welcome-message p {
        font-size: 0.9rem;
    }
}

/* About Section Styling */
.about-section {
    padding: 15px 15px;
    margin-bottom: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-top: 4px solid var(--primary-color);
}

.about-section h1 {
    text-align: center;
    margin-bottom: 30px;
    color: white;
    font-size: 1.6rem;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.feature-item {
    flex: 1 1 300px;
    max-width: 400px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.feature-item h3 {
    color: whitesmoke;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .about-section {
        padding: 20px 10px;
    }
    
    .about-section h2 {
        font-size: 1.4rem;
    }
    
    .feature-item h3 {
        font-size: 1.2rem;
    }
    
    .feature-item p {
        font-size: 0.9rem;
    }
} 