/* BookMCQ - Main Stylesheet */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Disable selection and right-click protection */
.disable-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.disable-select img,
.disable-select video {
    pointer-events: none;
}

/* Card Styles */
.quiz-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1.5rem;
    overflow: hidden;
}

.quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Navigation */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Option Buttons */
.option-btn {
    transition: all 0.2s ease;
    border: 2px solid #e2e8f0;
    cursor: pointer;
}

.option-btn:hover:not(:disabled) {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
    transform: scale(1.02);
}

.selected-option {
    background-color: #667eea !important;
    border-color: #667eea !important;
    color: white !important;
}

/* Feedback Messages */
.correct-feedback {
    background-color: #10b981;
    animation: fadeInUp 0.4s ease;
}

.wrong-feedback {
    background-color: #ef4444;
    animation: fadeInUp 0.4s ease;
}

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

/* Progress Bar */
.progress-bar {
    transition: width 0.5s ease;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background-color: #1f2937;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Practice Cards */
.practice-card {
    transition: all 0.3s ease;
}

.practice-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .quiz-card {
        border-radius: 1rem;
    }
    
    .option-btn {
        font-size: 14px;
        padding: 10px;
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
}

/* Category Cards */
.category-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.category-card.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* Book Cards */
.book-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.book-card:hover {
    background-color: #f3e8ff;
    transform: translateX(5px);
}

.book-card.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* Chapter Cards */
.chapter-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.chapter-card:hover {
    background-color: #f3e8ff;
}

.chapter-card.selected {
    background-color: #667eea;
    color: white;
}
/* Flash News Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Flash News Items */
.news-item {
    transition: all 0.3s ease;
}
.news-item:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 6px;
    margin-bottom: 6px;
}
