/* Reset & Base */
:root {
    --primary-color: #0d253f;
    --secondary-color: #01b4e4;
    --tertiary-color: #90cea1;
    --text-color: #ffffff;
    --dark-bg: #032541;
}

body {
    font-family: 'Source Sans Pro', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #000;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo h1 {
    font-size: 1.5rem;
    background: linear-gradient(to right, var(--tertiary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    font-weight: 600;
}

/* Hero Section */
.hero {
    height: 300px; /* TMDB standard height roughly */
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 40px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(3, 37, 65, 0.8); /* Dark blue overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 0px;
}

.hero p {
    font-size: 1.5rem;
    margin-top: 5px;
}

.search-container {
    margin-top: 30px;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 30px;
    border: none;
    font-size: 1rem;
}

.search-container button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 30px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(to right, var(--tertiary-color), var(--secondary-color));
    color: white;
    font-weight: bold;
    cursor: pointer;
}

/* Movie Lists */
.section-title {
    margin: 30px 40px 10px 40px;
    font-size: 1.5rem;
    font-weight: 600;
}

.movie-scroller {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 40px;
    scrollbar-width: thin; /* Firefox */
}

.movie-card {
    min-width: 150px;
    width: 150px;
    position: relative;
}

.movie-card img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.movie-info {
    padding-top: 10px;
    position: relative;
}

.rating-circle {
    position: absolute;
    top: -20px;
    left: 10px;
    background: #081c22;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    border: 2px solid var(--tertiary-color);
}

.movie-title {
    font-weight: 700;
    margin-top: 15px;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-date {
    font-size: 0.9rem;
    color: #666;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 40px;
    margin-top: 50px;
    text-align: center;
}
