/* Additional CSS for Enhanced Visual Effects */

/* Animated Background Particles */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23ffffff" opacity="0.3"><animate attributeName="opacity" values="0.3;0.8;0.3" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="30" r="1.5" fill="%23ffffff" opacity="0.4"><animate attributeName="opacity" values="0.4;0.9;0.4" dur="2s" repeatCount="indefinite"/></circle><circle cx="60" cy="70" r="2.5" fill="%23ffffff" opacity="0.2"><animate attributeName="opacity" values="0.2;0.7;0.2" dur="4s" repeatCount="indefinite"/></circle></svg>');
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Logo Animation */
.navbar-brand .logo-img {
    transition: all 0.3s ease;
}

.navbar-brand:hover .logo-img {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

/* Enhanced Book Card Effects */
.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.6s;
    z-index: 1;
}

.book-card:hover::before {
    left: 100%;
}

/* Glowing Effect for Buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tooltip Styles */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: rgba(0,0,0,0.8);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
}

/* Enhanced Focus States */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
    outline: none;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .book-card {
        background: rgba(255, 255, 255, 0.95);
    }
    
    .featured-books {
        background: rgba(255, 255, 255, 0.9);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .btn {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: #000 !important;
    }
    
    .hero-title,
    .hero-subtitle {
        color: #000 !important;
        text-shadow: none !important;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .hero-section {
        background: #000 !important;
    }
    
    .hero-title,
    .hero-subtitle {
        color: #fff !important;
    }
    
    .book-card {
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom CSS to ensure correct navigation text display */
.glass-navbar .nav-link {
    font-family: inherit !important;
    white-space: nowrap !important;
}

/* Force correct text for navigation items */
.glass-navbar .nav-item:nth-child(4) .nav-link::after {
    content: "" !important;
}

.glass-navbar .nav-item:nth-child(5) .nav-link::after {
    content: "" !important;
}

/* Video Section Styles */
.video-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    margin-top: 20px;
}

.video-section h6 {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.video-container iframe {
    display: block;
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 8px;
}

/* Responsive Video */
@media (max-width: 768px) {
    .video-container iframe {
        height: 200px;
    }
    
    .video-section {
        padding: 12px;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .video-container iframe {
        height: 180px;
    }
    
    .video-section h6 {
        font-size: 14px;
    }
} 