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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* NAVIGATION & HEADER */
header {
    border-bottom: 1px solid #eeeeee;
    padding: 40px 20px;
}

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 150px;
    margin-bottom: 15px;
}

.site-title h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.1;
}

.site-title h2 {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    margin-bottom: 0; /* overrides global h2 margin */
    border: none;
    padding: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* LAYOUT & SECTIONS */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    border-bottom: 1px solid #eeeeee;
}

/* SECTION HEADERS */
h2 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 40px;
}

.text-content {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.text-content p {
    margin-bottom: 20px;
}

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

/* FILMARCHIVE GRID */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
}

.movie-item {
    text-align: center;
}

.poster {
    width: 100%;
    aspect-ratio: 2 / 3; /* Forces standard movie poster dimensions */
    object-fit: cover;   /* Crops the image to fit the ratio perfectly */
    margin-bottom: 15px;
    background-color: #f5f5f5; /* Light grey placeholder while loading */
}

.movie-item h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
}

/* SORTING CONTROLS */
.controls {
    text-align: center;
    margin-bottom: 40px;
}

.controls label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 10px;
    font-weight: 500;
}

.controls select {
    padding: 8px 12px;
    font-family: inherit;
    font-size: 0.85rem;
    border: 1px solid #000000;
    background-color: #ffffff;
    color: #000000;
    cursor: pointer;
    text-transform: uppercase;
    outline: none;
}

/* RATING BADGE */
.rating {
    display: inline-block;
    background-color: #000000; /* Solid black background */
    color: #ffffff; /* White text */
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 20px; /* Makes it look like a sleek pill/badge */
    margin: 10px 0;
    letter-spacing: 1px;
}

.movie-date {
    font-size: 0.85rem;
    color: #666666;
    margin-top: 2px;
    font-style: italic;
}

.event-title {
    font-weight: 600; /* Makes the special event text bolder */
    color: #333333; /* Slightly darker to emphasize the bold text */
}

/* CONTACT LINKS */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.contact-links a {
    text-decoration: none;
    color: #000000;
    border: 1px solid #000000;
    padding: 10px 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.contact-links a:hover {
    background-color: #000000;
    color: #ffffff;
}

.disabled-link {
    color: #999999 !important;
    border-color: #999999 !important;
    cursor: default;
}

.disabled-link:hover {
    background-color: transparent !important;
    color: #999999 !important;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 0.85rem;
    color: #666666;
}
