/*--------------------------------------------------------------
# Home Page Styles
--------------------------------------------------------------*/

.min-vh-75 {
    min-height: 75vh;
}

.hero {
    padding-top: 40px;
}

.feature-icon {
    opacity: 0.9;
}

/*--------------------------------------------------------------
# Featured Quizzes Section
--------------------------------------------------------------*/
.quiz-card .card-title {
    color: var(--blaze-orange);
}

/*--------------------------------------------------------------
# Quiz Generator Form
--------------------------------------------------------------*/
.quiz-generator .form-control {
    border-radius: 50px 0 0 50px;
}

.quiz-generator .btn {
    border-radius: 0 50px 50px 0;
    padding-left: 24px;
    padding-right: 24px;
}

/*--------------------------------------------------------------
# Dice Roll Animation
--------------------------------------------------------------*/
@keyframes diceRoll {
    0% { transform: rotate(0deg) scale(1); }
    10% { transform: rotate(-20deg) scale(1.1); }
    20% { transform: rotate(20deg) scale(1.1); }
    30% { transform: rotate(-15deg) scale(1.1); }
    40% { transform: rotate(15deg) scale(1.1); }
    50% { transform: rotate(-10deg) scale(1.05); }
    60% { transform: rotate(10deg) scale(1.05); }
    70% { transform: rotate(-5deg) scale(1); }
    80% { transform: rotate(5deg) scale(1); }
    90% { transform: rotate(-2deg) scale(1); }
    100% { transform: rotate(0deg) scale(1); }
}

.dice-rolling {
    animation: diceRoll 0.5s ease-in-out;
}

/*--------------------------------------------------------------
# Loading Modal
--------------------------------------------------------------*/
.loading-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading-modal.active {
    display: flex;
}

.loading-content {
    text-align: center;
    padding: 40px;
}

.loading-logo {
    width: 150px;
    height: auto;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.loading-title {
    color: var(--blaze-orange);
    margin-top: 30px;
    margin-bottom: 10px;
    font-weight: 600;
}

.loading-text {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background-color: var(--blaze-orange);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/*--------------------------------------------------------------
# Disabled Button Styles (during loading)
--------------------------------------------------------------*/
.btn:disabled,
.btn.disabled {
    background-color: var(--carbon-light) !important;
    border-color: var(--carbon-lighter) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed;
    opacity: 0.7;
}
