* {
    font-family: Arial, sans-serif;
}

.video-card {
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-4px);
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-backdrop {
    backdrop-filter: blur(5px);
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.toast {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.group-pill {
    transition: all 0.2s ease;
}

.group-pill:hover {
    transform: scale(1.05);
}

.group-pill.active {
    background-color: rgb(220, 38, 38);
    color: white;
}

/* Fallback styles in case Tailwind doesn't load */
.fallback-bg-gray-50 { background-color: #f9fafb; }
.fallback-bg-white { background-color: #ffffff; }
.fallback-text-gray-900 { color: #111827; }
.fallback-text-gray-600 { color: #4b5563; }
.fallback-text-gray-500 { color: #6b7280; }
.fallback-border-gray-300 { border-color: #d1d5db; }
.fallback-rounded-lg { border-radius: 0.5rem; }
.fallback-shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.fallback-shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.fallback-shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.fallback-shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* E-SCHOLAR Scroll Section Styles */
.escholar-scroll-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 40px 20px;
    margin: 40px 0;
    text-align: center;
    border-top: 3px solid #667eea;
    border-bottom: 3px solid #667eea;
}

.scroll-heading {
    color: #667eea;
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.scroll-buttons-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.scroll-btn {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    transform: translateY(-2px);
}

.scroll-content {
    background: linear-gradient(to right, #4CAF50, #2196F3);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    font-family: 'Kalam', 'Bradley Hand', 'Brush Script MT', cursive;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    min-width: 200px;
    border: none;
    text-align: center;
    display: inline-block;
}

.scroll-content:hover {
    background: linear-gradient(to right, #45a049, #1976D2);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.scroll-title {
    display: block;
    text-align: center;
    line-height: 1.3;
    font-family: 'Kalam', 'Bradley Hand', 'Brush Script MT', cursive;
}

@media (max-width: 768px) {
    .scroll-buttons-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .scroll-content {
        min-width: 250px;
    }
}

/* Mind Gym Dropdown Styles */
.mind-gym-dropdown-container {
    position: relative;
    overflow: visible;
}

.mind-gym-dropdown-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% - 5px);
    left: 10px;
    right: 10px;
    z-index: 1000;
    padding: 15px 10px 10px 10px;
    background: rgba(102, 126, 234, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    pointer-events: none;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.mind-gym-dropdown-container:hover .mind-gym-dropdown-menu,
.mind-gym-dropdown-menu:hover {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    animation: slideDown 0.3s ease-out;
}

.dropdown-game-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
}

.dropdown-game-link:last-child {
    margin-bottom: 0;
}

.dropdown-game-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prevent header YouTube search button from shrinking on mid-width screens */
@media (min-width: 768px) and (max-width: 842px) {
    header form {
        flex-wrap: nowrap;
    }
    /* Make the input container flex to take available space */
    header form > .relative {
        flex: 1 1 auto;
        min-width: 0;
    }
    /* Ensure the input expands within its container */
    header form > .relative input[type="text"] {
        width: 100%;
    }
    /* Keep the Search button size stable */
    header form > button[type="submit"] {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

