/* Telugu Movies Database - Main Stylesheet */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

.telugu-text {
    font-family: 'Noto Sans Telugu', sans-serif;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

/* Jumbotron */
.jumbotron {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Movie Cards */
.movie-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    overflow: hidden;
}

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

.movie-card img {
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s;
}

.movie-card:hover img {
    transform: scale(1.05);
}

.movie-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Rating Stars */
.rating-stars {
    display: inline-block;
}

.rating-stars i {
    font-size: 0.9rem;
}

.rating-value {
    font-size: 0.85rem;
    color: #666;
}

/* Badges */
.rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 193, 7, 0.95);
    color: #000;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.like-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(220, 53, 69, 0.95);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.collection-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(25, 135, 84, 0.95);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
}

/* Like Button */
.like-btn {
    transition: all 0.3s;
}

.like-btn:hover {
    transform: scale(1.1);
}

.like-btn.liked {
    background-color: var(--danger-color);
    color: #fff;
}

.like-btn.liked i {
    font-weight: 900;
}

/* Section Titles */
.section-title {
    font-weight: bold;
    color: var(--dark-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

/* Movie Detail Page */
.movie-detail-poster {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.movie-info-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.info-label {
    font-weight: bold;
    color: #666;
    margin-right: 10px;
}

/* Cast & Crew */
.person-card {
    text-align: center;
    transition: transform 0.3s;
}

.person-card:hover {
    transform: translateY(-5px);
}

.person-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

/* Rating System */
.rating-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.star-rating {
    font-size: 2rem;
    cursor: pointer;
}

.star-rating i {
    color: #ddd;
    transition: color 0.2s;
}

.star-rating i:hover,
.star-rating i.active {
    color: var(--warning-color);
}

/* Search Form */
.search-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Genre Pills */
.genre-pill {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    margin: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.genre-pill:hover {
    background: #0b5ed7;
    color: #fff;
}

/* Footer */
footer {
    margin-top: auto;
}

footer .social-links a {
    transition: transform 0.3s;
}

footer .social-links a:hover {
    transform: translateY(-5px);
}

/* Loading Spinner */
.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading.show {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .movie-card img {
        height: 300px;
    }
    
    .person-photo {
        width: 120px;
        height: 120px;
    }
    
    .jumbotron {
        padding: 30px 20px !important;
    }
    
    .jumbotron h1 {
        font-size: 2rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Print Styles */
@media print {
    .navbar, footer, .like-btn, .rating-container {
        display: none !important;
    }
}