/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 30px 0;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 25px 0;
}

#searchInput {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#searchButton {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 1.2rem;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: none;
    z-index: 1000;
}

nav {
    display: flex;
    gap: 25px;
    margin-top: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.3s;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Main content */
.hero {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 50px;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #2d3436;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #636e72;
}

.example {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    max-width: 800px;
    margin: 0 auto;
}

.example h3 {
    color: #007bff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.example-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #007bff;
}

.highlight {
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
}

.highlight:hover {
    text-decoration: underline;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e3f2fd;
    color: #1565c0;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.tag:hover {
    background: #bbdefb;
    transform: translateY(-2px);
}

.tag .count {
    background: #1565c0;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Movie grid */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.movie-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.movie-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.no-poster {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    font-weight: bold;
}

.movie-info {
    padding: 20px;
}

.movie-info h4 {
    margin-bottom: 10px;
    color: #2d3436;
}

.overview {
    color: #636e72;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Sections */
section {
    margin: 60px 0;
}

section h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #2d3436;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Footer */
footer {
    background: #2d3436;
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 80px;
}

footer p {
    margin: 10px 0;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    nav {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* Movie page specific */
.movie-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.taste-profile {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.why-like {
    background: #e8f5e9;
    border-left: 5px solid #4caf50;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
}

.similar-movies {
    margin-top: 40px;
}

/* Utility classes */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }