/* Hindi TV Serials - Main Stylesheet */

:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --border-color: #e5e7eb;
    --text-color: #374151;
    --text-muted: #6b7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

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

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

.search-container {
    max-width: 500px;
}

.search-container .form-control {
    border: none;
    border-radius: 50px 0 0 50px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}

.search-container .btn {
    border-radius: 0 50px 50px 0;
    padding: 1rem 1.5rem;
    border: none;
}

.hero-stats {
    margin-top: 3rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.stat-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-image {
    opacity: 0.8;
}

/* Show Cards */
.show-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.show-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
}

.show-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.show-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.show-card:hover .show-overlay {
    opacity: 1;
}

.show-info {
    padding: 1rem;
}

.show-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    height: 2.4rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.show-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.channel {
    text-align: right;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Feature Cards */
.feature-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.feature-icon {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Cards */
.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Rating Stars */
.rating-stars {
    color: var(--accent-color);
}

.rating-stars .fa-star-o {
    color: #d1d5db;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 0.25rem;
    border: 2px solid var(--border-color);
    color: var(--text-color);
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .show-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .hero-stats .row {
        gap: 1rem;
    }
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }

.border-primary { border-color: var(--primary-color) !important; }
.border-secondary { border-color: var(--secondary-color) !important; }
.border-accent { border-color: var(--accent-color) !important; }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- Cast Page Modern Styles --- */

.cast-hero {
    min-height: 320px;
    background: linear-gradient(120deg, #7f53ac 0%, #657ced 100%);
    position: relative;
    overflow: hidden;
}
.cast-hero .hero-bg {
    background: url('/assets/images/cast-hero-bg.jpg') center center/cover no-repeat;
    filter: blur(16px) brightness(0.7);
    opacity: 0.7;
    z-index: 1;
}
.cast-hero .text-shadow {
    text-shadow: 0 4px 24px rgba(0,0,0,0.25), 0 1.5px 0 #fff;
}

.glass-card {
    background: rgba(255,255,255,0.25);
    box-shadow: 0 8px 32px 0 rgba(31,38,135,0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1.5px solid rgba(255,255,255,0.18);
}

#searchInput, #sortSelect {
    background: rgba(255,255,255,0.7) !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: none !important;
}
#searchInput:focus, #sortSelect:focus {
    background: #fff !important;
    outline: none !important;
    box-shadow: 0 0 0 2px #7f53ac33 !important;
}

.cast-card {
    background: rgba(255,255,255,0.95);
    border-radius: 24px;
    box-shadow: 0 6px 32px 0 rgba(31,38,135,0.10);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    transition: transform 0.18s cubic-bezier(.4,2,.6,1), box-shadow 0.18s;
    border: none;
    position: relative;
}
.cast-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 16px 48px 0 rgba(31,38,135,0.18);
    z-index: 2;
}
.cast-card .cast-photo img {
    border: 4px solid #fff;
    box-shadow: 0 2px 16px rgba(127,83,172,0.10);
    transition: box-shadow 0.2s;
}
.cast-card:hover .cast-photo img {
    box-shadow: 0 4px 32px rgba(101,124,237,0.18);
    border-color: #657ced;
}
.cast-card .cast-name a {
    color: #7f53ac;
    font-weight: 700;
    font-size: 1.18rem;
    letter-spacing: 0.01em;
    transition: color 0.18s;
}
.cast-card .cast-name a:hover {
    color: #657ced;
    text-decoration: underline;
}
.cast-card .cast-stats .badge {
    font-size: 1rem;
    padding: 0.5em 1em;
    border-radius: 16px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(127,83,172,0.08);
}
.cast-card .cast-stats .bg-primary {
    background: linear-gradient(90deg, #7f53ac 0%, #657ced 100%) !important;
    color: #fff !important;
}
.cast-card .cast-stats .bg-secondary {
    background: #f6f7fb !important;
    color: #657ced !important;
}

/* Responsive tweaks */
@media (max-width: 767px) {
    .glass-card { padding: 1.5rem 1rem; }
    .cast-card { padding: 1.2rem 0.7rem 1rem 0.7rem; }
}

/* No Results SVG style */
#noResults img {
    filter: grayscale(0.2) drop-shadow(0 2px 8px #7f53ac22);
}

/* --- Hero Overlay and Text Clarity Fix for Cast Page --- */
.cast-hero .hero-bg::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(120deg, rgba(40,30,70,0.55) 0%, rgba(60,60,100,0.35) 100%);
    z-index: 2;
    pointer-events: none;
}
.cast-hero .container {
    position: relative;
    z-index: 3;
}
.cast-hero .display-4,
.cast-hero .lead {
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.cast-hero .lead {
    font-weight: 500;
    font-size: 1.35rem;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.show-poster-landscape {
    width: 100%;
    aspect-ratio: 16/9;
    background: #f6f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 1rem;
}
.show-poster-landscape img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
@media (max-width: 767px) {
    .show-poster-landscape { border-radius: 0.7rem; }
} 