/* =========================
   Random WOD Page
========================= */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.page-header p {
    font-size: 14px;
    color: var(--text-tertiary);
    margin: 0 0 16px;
}

/* WOD Area */
.random-wod-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* WOD Content - no box, big type */
.random-wod-content {
    width: 100%;
    text-align: center;
    cursor: pointer;
    padding: 0 8px;
}

.random-wod-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--accent-primary);
    margin: 0 0 8px;
    line-height: 1.2;
    letter-spacing: -1px;
    opacity: 0;
    transform: translateY(8px);
    animation: lineReveal 0.4s ease forwards;
    cursor: pointer;
    user-select: none;
}

.random-wod-meta {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 40px;
}

.random-wod-workout {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.random-wod-line {
    line-height: 2;
    opacity: 0;
    transform: translateY(8px);
    animation: lineReveal 0.5s ease forwards;
}

@keyframes lineReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.random-wod-copy-hint {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-tertiary);
    font-size: 12px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.random-wod-content:hover .random-wod-copy-hint {
    opacity: 1;
}

/* Divider */
.random-wod-divider {
    width: 60px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
    margin: 48px auto;
    opacity: 0.5;
}

/* Actions */
.random-wod-actions {
    width: 100%;
    max-width: 360px;
    display: flex;
    gap: 10px;
}

.btn-reroll {
    width: 100%;
    padding: 0;
    height: 52px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.btn-reroll:hover:not(:disabled) {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.btn-reroll:hover:not(:disabled) .reroll-icon {
    stroke: var(--accent-primary);
}

.btn-reroll:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.reroll-icon {
    flex-shrink: 0;
    margin-left: 18px;
    stroke: var(--text-tertiary);
    transition: transform 0.5s, stroke 0.2s;
}

.btn-reroll:not(:disabled):active .reroll-icon {
    transform: rotate(-360deg);
}

.reroll-text {
    flex: 1;
    text-align: center;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.reroll-count {
    flex-shrink: 0;
    height: 100%;
    padding: 0 18px;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-primary);
    background: rgba(224, 253, 83, 0.08);
    border-left: 1px solid var(--border-light);
    font-variant-numeric: tabular-nums;
}

/* Error */
#random-wod-error {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: var(--text-tertiary);
}

/* Loading - CrossFit Countdown */
#loading-spinner {
    display: none;
    text-align: center;
    padding: 60px 0;
}

.countdown-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-num {
    font-size: 64px;
    font-weight: 900;
    color: var(--accent-primary);
}

.countdown-num.pop {
    animation: countPop 0.6s ease-out;
}

@keyframes countPop {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* =========================
   반응형
========================= */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .page-header {
        margin-bottom: 36px;
    }

    .random-wod-title {
        font-size: 34px;
    }

    .random-wod-meta {
        margin-bottom: 32px;
    }

    .random-wod-workout {
        font-size: 18px;
        line-height: 1.9;
    }

    .random-wod-copy-hint {
        margin-top: 32px;
    }

    .random-wod-divider {
        margin: 36px auto;
    }
}

@media (max-width: 480px) {
    .page-header {
        margin-bottom: 28px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .random-wod-title {
        font-size: 28px;
        letter-spacing: -0.5px;
    }

    .random-wod-meta {
        font-size: 12px;
        margin-bottom: 28px;
    }

    .random-wod-workout {
        font-size: 16px;
        line-height: 1.85;
    }

    .random-wod-copy-hint {
        margin-top: 28px;
    }

    .random-wod-divider {
        margin: 28px auto;
    }

    .btn-reroll {
        height: 48px;
        font-size: 14px;
        border-radius: 12px;
    }

    .random-wod-actions {
        max-width: 100%;
    }

    .reroll-icon {
        margin-left: 14px;
    }

    .reroll-count {
        padding: 0 14px;
        font-size: 12px;
    }
}
