/* साहित्य संग्रहालय - Custom Styles */

/* CSS Variables for Design System */
:root {
    --primary-color: #FF6B35;      /* Saffron Orange */
    --secondary-color: #138808;     /* Deep Green */
    --accent-color: #000080;        /* Navy Blue */
    --background-color: #F8F9FA;    /* Light Cream */
    --text-color: #2C3E50;          /* Dark Grey */
    --hover-color: #FFE5B4;         /* Light Saffron */
    --white: #FFFFFF;
    --border-radius: 12px;
    --spacing: 16px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}
.text-muted {
    color: black !important;
}

/* Hindi Text Styling */
.hindi-text,
h1, h2, h3, h4, h5, h6,
.navbar-brand,
.section-title,
.video-title {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
    font-weight: 500;
}

/* Custom Color Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

/* Navigation Styles */

.navbar-toggler {
    border-radius: 10px;
    padding: 6px 10px;
}

.navbar {
    padding: var(--spacing) 0;
    border-bottom: 3px solid var(--primary-color);
}

.navbar-brand h4 {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: var(--hover-color);
    border-radius: 8px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M30 30c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20zm0 0c0-11.046 8.954-20 20-20s20 8.954 20 20-8.954 20-20 20-20-8.954-20-20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Logo always circle */
.hero-logo {
    max-width: 100%;
    width: 250px;   /* Desktop पर size */
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;

    /* Glow effect */
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.7),
                0 0 40px rgba(255, 107, 53, 0.5),
                0 0 60px rgba(255, 107, 53, 0.3);
}

/* Tablet view */
@media (max-width: 992px) {
    .hero-logo {
        width: 200px;
    }
}

/* Mobile view */
@media (max-width: 576px) {
    .hero-logo {
        width: 150px;
    }
}

/* Stats */
.hero-stats .stat-item {
    text-align: center;
}

.hero-stats h4 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Section Titles */
.section-title {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.category-bar {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.cat-btn {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 8px;
  text-decoration: none;
  background: #ff8c2b;
  color: white;
  font-weight: 600;
  transition: 0.2s;
}

.cat-btn:hover {
  background: #e6761f;
}

.cat-btn.active {
  background: #1f1f1f;
}

.cat-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing);
    margin-top: var(--spacing);
}

/* Video Card */
.video-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.video-card:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-card:hover .play-button {
    transform: scale(1.1);
    background-color: var(--primary-color);
}

/* Video Thumbnail */
.video-thumbnail-container {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 16/9;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.play-button svg {
    width: 24px;
    height: 24px;
    margin-left: 2px;
    color: var(--text-color);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Video Info */
.video-info {
    padding: var(--spacing);
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    gap: var(--spacing);
    font-size: 0.85rem;
    color: #888;
    flex-wrap: wrap;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-meta svg {
    width: 14px;
    height: 14px;
}

/* Video Link Overlay */
.video-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    text-decoration: none;
}

/* Empty State */
.empty-state {
    max-width: 500px;
    margin: 0 auto;
}

.empty-state-icon {
    color: #ccc;
}

/* About Section */
.about-section {
    background: var(--white);
}

.feature-item {
    padding: 12px 0;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--hover-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.about-logo {
    max-width: 300px;
    opacity: 0.8;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

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

.alert-success {
    background: rgba(19, 136, 8, 0.1);
    color: var(--secondary-color);
}

.alert-warning {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
}

.alert-info {
    background: rgba(0, 0, 128, 0.1);
    color: var(--accent-color);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Footer */
.footer {
    background: #9E9E9E !important;
    border-top: 3px solid var(--primary-color);
}

/* Common Style */
.social-links a {
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    color: #ffffff; /* Default white */
    font-size: 16px;
}

.social-links a i {
    font-size: 18px;
    transition: all 0.3s ease;
}

/* YouTube */
.social-links a.youtube:hover {
    background: rgba(255, 0, 0, 0.15);
    color: #FF0000 !important;
    transform: translateY(-3px);
    box-shadow: 0px 4px 12px rgba(255, 0, 0, 0.4);
}
.social-links a.youtube:hover i {
    color: #FF0000;
    transform: scale(1.2);
}

/* Instagram */
.social-links a.instagram:hover {
    background: rgba(225, 48, 108, 0.15);
    color: #E1306C !important;
    transform: translateY(-3px);
    box-shadow: 0px 4px 12px rgba(225, 48, 108, 0.4);
}
.social-links a.instagram:hover i {
    color: #E1306C;
    transform: scale(1.2);
}

/* Telegram */
.social-links a.telegram:hover {
    background: rgba(0, 136, 204, 0.15);
    color: #0088cc !important;
    transform: translateY(-3px);
    box-shadow: 0px 4px 12px rgba(0, 136, 204, 0.4);
}
.social-links a.telegram:hover i {
    color: #0088cc;
    transform: scale(1.2);
}

/* Email */
.social-links a.email:hover {
    background: rgba(255, 165, 0, 0.15);
    color: #FFA500 !important;
    transform: translateY(-3px);
    box-shadow: 0px 4px 12px rgba(255, 165, 0, 0.4);
}
.social-links a.email:hover i {
    color: #FFA500;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing);
    }
    
    .hero-section {
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
        margin-top: var(--spacing);
    }
    
    .navbar-brand div {
        text-align: left;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .video-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .video-info {
        padding: 12px;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Focus States for Accessibility */
.video-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .video-overlay {
        display: none !important;
    }
    
    .video-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* 24/7 Film Club Navbar Button */
.filmclub-btn {
  background: linear-gradient(45deg, #ff4b2b, #ff416c);
  color: white;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.filmclub-btn:hover {
  background: linear-gradient(45deg, #ff416c, #ff4b2b);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transform: scale(1.05);
}
