/* Result Page Styles */

.result-content {
    width: 100%;
}

.result-content .step-title {
    margin-bottom: var(--space-2xl);
}

/* Main Bingo Display */
.main-bingo {
    background: var(--color-gray-50);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-xl);
    text-align: center;
    border: 1px solid var(--color-gray-200);
}

.main-bingo h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-lg);
    color: var(--color-gray-600);
}

.bingo-with-background {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

.bingo-with-background img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Download Section - 새로 개선된 스타일
   ======================================== */

.download-section {
    margin-top: 30px;
}

.download-section>h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2d3748;
    text-align: left;
}

/* 다운로드 카테고리 */
.download-category {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.download-category h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 개별 다운로드 그리드 */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.download-format-box {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s;
}

.download-format-box:hover {
    border-color: #4299e1;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.15);
}

.format-label {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    text-align: center;
}

/* 일괄 다운로드 그리드 */
.download-batch-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-batch-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.download-batch-item:hover {
    border-color: #48bb78;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.15);
}

.batch-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.batch-label strong {
    font-size: 15px;
    color: #2d3748;
}

.batch-desc {
    font-size: 12px;
    color: #718096;
}

/* 인라인 버튼 그룹 */
.download-options-inline {
    display: flex;
    gap: 8px;
}

/* 작은 다운로드 버튼 */
.btn-download-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #cbd5e0;
    background: white;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    white-space: nowrap;
}

.btn-download-sm:hover {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
    transform: translateY(-1px);
}

/* 일괄 다운로드 작은 버튼 */
.btn-download-all-sm {
    padding: 8px 20px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #48bb78;
    background: white;
    color: #48bb78;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    white-space: nowrap;
}

.btn-download-all-sm:hover {
    background: #48bb78;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

/* 콜링카드 다운로드 버튼 */
.btn-calling {
    border-color: #9f7aea;
    color: #9f7aea;
}

.btn-calling:hover {
    background: #9f7aea;
    color: white;
    border-color: #9f7aea;
    box-shadow: 0 4px 12px rgba(159, 122, 234, 0.3);
}

/* 콜링카드 설명 텍스트 */
.calling-card-desc {
    font-size: 13px;
    color: #718096;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* 기존 다운로드 옵션 스타일 (하위 호환성) */
.download-options {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-lg);
}

.download-options .btn {
    padding: 12px 24px;
}

.btn-download-all {
    padding: 14px 28px;
    background: #000;
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-download-all:hover {
    background: var(--color-gray-600);
    transform: translateY(-2px);
}

.btn-download-all:disabled {
    background: var(--color-gray-300);
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   Bingo List Container
   ======================================== */

.bingo-list-container {
    margin-top: var(--space-xl);
}

.bingo-list-container h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-md);
    color: var(--color-gray-600);
}

/* Bingo Slider */
.bingo-slider {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    padding: var(--space-md) 0;
    scroll-behavior: smooth;
}

.bingo-slider::-webkit-scrollbar {
    height: 8px;
}

.bingo-slider::-webkit-scrollbar-track {
    background: var(--color-gray-100);
    border-radius: var(--radius-lg);
}

.bingo-slider::-webkit-scrollbar-thumb {
    background: var(--color-gray-600);
    border-radius: var(--radius-lg);
}

.bingo-slider::-webkit-scrollbar-thumb:hover {
    background: var(--color-black);
}

/* Bingo Thumbnail */
.bingo-thumbnail {
    min-width: 150px;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-white);
}

.bingo-thumbnail:hover {
    transform: scale(1.05);
    border-color: var(--color-black);
    box-shadow: var(--shadow-lg);
}

.bingo-thumbnail.active {
    border-color: var(--color-black);
    box-shadow: var(--shadow-xl);
    transform: scale(1.05);
}

.bingo-number {
    text-align: center;
    padding: var(--space-xs);
    background: var(--color-black);
    color: var(--color-white);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
}

.bingo-thumbnail>div:last-child {
    padding: var(--space-xs);
}

.bingo-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Reset Button */
#resetBtn {
    width: auto;
    min-width: 200px;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .main-bingo {
        padding: var(--space-lg);
    }

    .main-bingo h3 {
        font-size: var(--font-size-xl);
    }

    .bingo-with-background {
        max-width: 100%;
    }

    /* 다운로드 섹션 모바일 최적화 */
    .download-grid {
        grid-template-columns: 1fr;
    }

    .download-batch-item {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .batch-label {
        text-align: center;
    }

    .download-options-inline {
        justify-content: center;
    }

    .download-options {
        flex-direction: column;
    }

    .download-options .btn {
        width: 100%;
    }

    .bingo-thumbnail {
        min-width: 120px;
    }

    .bingo-list-container h3 {
        font-size: var(--font-size-lg);
    }
}