/* ====================================
   행운의 빙고 - 전용 스타일시트
==================================== */

/* How to Play Section */
.how-to-play-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.how-to-toggle {
    width: 100%;
    padding: 20px 30px;
    background: linear-gradient(135deg, #FFF8DC, #FFEFD5);
    border: none;
    border-bottom: 2px solid #DEB564;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    color: #5C4A1F;
}

.how-to-toggle:hover {
    background: linear-gradient(135deg, #FFEFD5, #FFE4B5);
}

.how-to-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

.toggle-icon {
    font-size: 1.3rem;
    margin-right: 10px;
}

.toggle-arrow {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.how-to-content {
    padding: 30px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.how-to-content.hidden {
    display: none;
}

.how-to-content h3 {
    color: #5C4A1F;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.how-to-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border-left: 4px solid #DEB564;
    transition: transform 0.2s;
}

.step-item:hover {
    transform: translateX(5px);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B6914, #5C4A1F);
    color: #FFF8DC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: #5C4A1F;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.step-content p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.how-to-tips {
    background: linear-gradient(135deg, #E8F8F5, #D5F5E3);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #27AE60;
}

.how-to-tips h4 {
    color: #16A085;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.how-to-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.how-to-tips li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: #2C3E50;
    line-height: 1.7;
}

.how-to-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27AE60;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Missions Section */
.missions-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.section-title {
    text-align: center;
    color: #5C4A1F;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.missions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.mission-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #FFF8DC, #FFEFD5);
    border-radius: 15px;
    border-left: 5px solid #DEB564;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mission-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(222, 181, 100, 0.2);
}

.mission-item.completed {
    background: linear-gradient(135deg, #E8F8F5, #D5F5E3);
    border-left-color: #27AE60;
    opacity: 0.8;
}

.mission-checkbox {
    width: 30px;
    height: 30px;
    border: 3px solid #DEB564;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mission-item.completed .mission-checkbox {
    background: #27AE60;
    border-color: #27AE60;
}

.mission-item.completed .mission-checkbox::after {
    content: '✓';
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
}

.mission-content {
    flex: 1;
}

.mission-icon {
    font-size: 2rem;
    margin-right: 10px;
}

.mission-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #5C4A1F;
    margin-bottom: 5px;
}

.mission-desc {
    font-size: 0.9rem;
    color: #666;
}

.mission-hint {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

/* Bingo Section */
.bingo-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.bingo-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    max-width: 500px;
    margin: 0 auto 25px;
    padding: 15px;
    background: linear-gradient(135deg, #FFF8DC, #FFEFD5);
    border-radius: 20px;
    border: 3px solid #DEB564;
}

.bingo-cell {
    aspect-ratio: 1;
    background: white;
    border: 2px solid #DEB564;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #5C4A1F;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bingo-cell:hover:not(.checked):not(.center) {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(222, 181, 100, 0.3);
}

.bingo-cell.center {
    background: linear-gradient(135deg, #DEB564, #8B6914);
    color: white;
    font-size: 1.5rem;
    cursor: default;
}

.bingo-cell.checked {
    background: linear-gradient(135deg, #27AE60, #2ECC71);
    color: white;
    border-color: #27AE60;
    animation: check-pop 0.3s ease;
}

@keyframes check-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.bingo-cell.checked::after {
    content: '✓';
    position: absolute;
    font-size: 2rem;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.bingo-cell.checked .cell-text {
    opacity: 0.3;
}

.cell-text {
    text-align: center;
    line-height: 1.3;
    padding: 5px;
    transition: opacity 0.3s;
}

/* Bingo Progress */
.bingo-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.progress-label {
    font-weight: 600;
    color: #5C4A1F;
    min-width: 60px;
}

.progress-bar {
    flex: 1;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #27AE60, #2ECC71);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-value {
    font-weight: 700;
    color: #5C4A1F;
    min-width: 50px;
    text-align: right;
}

/* Bingo Lines */
.bingo-lines {
    text-align: center;
    margin-bottom: 30px;
    min-height: 40px;
}

.bingo-line-item {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    border-radius: 20px;
    margin: 5px;
    font-weight: 700;
    animation: line-appear 0.5s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

@keyframes line-appear {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fortune Section */
.fortune-section {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fortune-card {
    background: linear-gradient(135deg, #FFF8DC, #FFEFD5);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 3px solid #DEB564;
    position: relative;
    overflow: hidden;
}

.fortune-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: rotate-glow 10s linear infinite;
}

@keyframes rotate-glow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fortune-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fortune-title {
    font-size: 2rem;
    font-weight: 800;
    color: #8B6914;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.fortune-message {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #5C4A1F;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.fortune-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 25px;
    position: relative;
    z-index: 1;
}

.fortune-detail-item {
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.fortune-detail-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.fortune-detail-value {
    display: block;
    font-weight: 700;
    color: #5C4A1F;
    font-size: 1.1rem;
}

/* Stats Section */
.stats-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.stats-title {
    text-align: center;
    color: #5C4A1F;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #8B6914;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.reset-btn,
.share-btn {
    padding: 15px 35px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.reset-btn {
    background: linear-gradient(135deg, #8B6914, #5C4A1F);
    color: #FFF8DC;
}

.share-btn {
    background: linear-gradient(135deg, #3498DB, #2980B9);
    color: white;
}

.reset-btn:hover,
.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Confetti Effect */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: fall 3s linear forwards;
    pointer-events: none;
    z-index: 1000;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .how-to-content {
        padding: 20px;
    }
    
    .step-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    .bingo-board {
        gap: 6px;
        padding: 10px;
    }
    
    .bingo-cell {
        font-size: 0.7rem;
    }
    
    .mission-item {
        padding: 15px;
    }
    
    .mission-icon {
        font-size: 1.5rem;
    }
    
    .mission-text {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .reset-btn,
    .share-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .bingo-board {
        gap: 4px;
        padding: 8px;
    }
    
    .bingo-cell {
        font-size: 0.6rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

