/* Custom styles for Movie Reviews website */

body {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Movie cards */
.movie-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.movie-card .card-img-top {
    height: 300px;
    object-fit: cover;
}

.movie-card .card-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.75rem;
}

.movie-card .card-text {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Review detail page */
.review-detail header {
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 1.5rem;
}

.review-detail .display-4 {
    color: #212529;
    font-weight: 700;
}

.review-body {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.review-body #reviewText {
    line-height: 1.8;
    color: #495057;
}

.review-body #reviewText p {
    margin-bottom: 1.5rem;
}

/* Search and sort controls */
#searchInput {
    font-size: 1rem;
}

#sortSelect {
    font-size: 1rem;
}

/* Badges */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* Loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

.breadcrumb-item a {
    text-decoration: none;
    color: #0d6efd;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .movie-card .card-img-top {
        height: 200px;
    }

    .review-detail .display-4 {
        font-size: 2rem;
    }

    .review-body {
        padding: 1rem;
    }
}

/* No results message */
#noResults {
    margin-top: 3rem;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand:hover {
    opacity: 0.8;
}

/* Buttons */
.btn {
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Error message */
.alert {
    border-radius: 0.5rem;
}
/* Movie poster styling */
#moviePoster {
    max-height: 500px;
    object-fit: cover;
    width: 100%;
}

#noPoster {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Review text styling */
#reviewText {
    font-size: 1.05rem;
    color: #2c3e50;
}

#reviewText p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

#reviewText br {
    display: block;
    margin-bottom: 0.5rem;
    content: "";
}

/* Actor text */
#movieActors {
    font-size: 0.95rem;
    border-left: 3px solid #0d6efd;
    padding-left: 1rem;
}

/* Responsive poster */
@media (max-width: 768px) {
    #moviePoster {
        max-height: 400px;
    }
    
    #noPoster {
        height: 400px !important;
    }
}