/* Color Palette Based on Logo */
:root {
    --dark-blue: #134B7F;
    --light-blue: #4C8BCA;
    --green: #8CC63F;
    --bg-light: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: var(--text-main);
    line-height: 1.6;
    padding: 40px 20px;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); 
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.text-green { color: var(--green); }
.text-darkblue { color: var(--dark-blue); }

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Search & Filter Section */
.search-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

@media (min-width: 768px) {
    .search-section {
        flex-direction: row;
        align-items: center;
    }
}

.search-filters {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

@media (min-width: 768px) {
    .search-filters {
        flex-direction: row;
    }
}

#searchInput { flex: 2; }
#yearInput { flex: 1; }
#typeInput { flex: 1; }

.search-filters input, .search-filters select {
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
}

.search-filters input:focus, .search-filters select:focus {
    border-color: var(--light-blue);
}

#searchBtn {
    padding: 12px 30px;
    height: 100%;
}
/* Movie Layout (Left: Poster, Right: Details) */
.movie-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .movie-layout {
        flex-direction: row; 
        align-items: flex-start;
    }
}

/* Left: Poster Area */
.poster-container {
    flex-shrink: 0;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.poster {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(19, 75, 127, 0.15); 
    display: block;
}

.poster-placeholder {
    width: 100%;
    height: 450px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: 8px;
}

/* Right: Info Area */
.movie-info {
    flex: 1;
}

.movie-info h2 {
    color: var(--dark-blue);
    font-size: 2.2rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.movie-info h2 span {
    color: var(--text-muted);
    font-size: 1.5rem;
    font-weight: 400;
}

/* Badges */
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.badge.imdb {
    background-color: var(--green);
    color: white;
}

.badge.time {
    background-color: #f1f3f5;
    color: var(--text-main);
    border: 1px solid #ddd;
}

/* Details Text */
.movie-info p {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.movie-info strong {
    color: var(--dark-blue);
    margin-right: 5px;
}

/* Plot Section */
.plot {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.plot h3 {
    color: var(--dark-blue);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.plot p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Messages */
.error-text {
    color: #d9534f;
    padding: 15px;
    border-left: 4px solid #d9534f;
    background-color: #fdf7f7;
    margin-bottom: 20px;
}

.welcome-text {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 40px;
}