/* SporBil Custom Styles */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ffb400;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e6a200;
}

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Quiz Card Hover Effects */
.quiz-card {
    transition: all 0.3s ease;
}

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

/* Button Hover Effects */
.btn-hover {
    transition: all 0.3s ease;
}

.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 180, 0, 0.3);
}

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

/* Answer Button States */
.answer-btn {
    transition: all 0.2s ease;
}

.answer-btn:hover:not(:disabled) {
    transform: scale(1.02);
}

.answer-btn.correct {
    background-color: #10b981;
    border-color: #10b981;
    color: white;
}

.answer-btn.wrong {
    background-color: #ef4444;
    border-color: #ef4444;
    color: white;
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ffb400;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Image Blur Effect for Quiz Type */
.blur-image {
    filter: blur(10px);
    transition: filter 0.3s ease;
}

.blur-image:hover {
    filter: blur(0);
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
}

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    background: #333;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}