/* 기간별 미출현번호 페이지 전용 스타일 */

.undrawn-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
    padding-top: 20px;
}

.page-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #f7931a, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.page-header p {
    color: #888;
    font-size: 1.1rem;
}

/* 기간 탭 */
.period-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 10px;
}

.period-tab {
    flex: 1;
    max-width: 200px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #888;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.period-tab.active {
    background: linear-gradient(135deg, #f7931a, #ffb347);
    color: #1a1a1a;
    border-color: transparent;
}

.period-tab:hover:not(.active) {
    background: rgba(247, 147, 26, 0.1);
    color: #f7931a;
    border-color: rgba(247, 147, 26, 0.3);
}

/* 미출현번호 표시 영역 */
.undrawn-display {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(247, 147, 26, 0.2);
    border-radius: 12px;
    padding: 30px;
}

.section-box {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 20px;
}

.section-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px 8px 0 0;
    margin: -20px -20px 20px -20px;
    border-bottom: 2px solid rgba(247, 147, 26, 0.3);
}

.section-header h2 {
    color: #f7931a;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

/* 미출현번호 리스트 */
.undrawn-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.undrawn-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.undrawn-row:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(247, 147, 26, 0.2);
}

.range-label {
    color: #888;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.undrawn-numbers {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

/* 번호 공 스타일 */
.ball {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: all 0.3s;
}

.ball:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* 공 색상 */
.ball.yellow {
    background: linear-gradient(135deg, #d4a017, #f0c420);
}

.ball.blue {
    background: linear-gradient(135deg, #4169e1, #6495ed);
}

.ball.red {
    background: linear-gradient(135deg, #dc143c, #ff6b6b);
}

.ball.gray {
    background: linear-gradient(135deg, #808080, #a9a9a9);
}

.ball.green {
    background: linear-gradient(135deg, #228b22, #90ee90);
}

/* 미출현 번호 없음 메시지 */
.empty-message {
    color: #666;
    font-style: italic;
    font-size: 0.95rem;
    text-align: center;
    width: 100%;
}

/* 정보 노트 */
.info-note {
    margin-top: 30px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    color: #666;
    font-size: 0.85rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 로딩 상태 */
.loading {
    text-align: center;
    padding: 60px;
    color: #888;
    font-size: 1.1rem;
}

.loading::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(247, 147, 26, 0.2);
    border-top-color: #f7931a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

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

/* 반응형 디자인 */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .period-tabs {
        flex-direction: column;
    }
    
    .period-tab {
        max-width: 100%;
    }
    
    .section-header,
    .undrawn-row {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
    
    .section-header h2:first-child {
        display: none;
    }
    
    .range-label {
        font-size: 0.95rem;
        margin-bottom: 10px;
        padding: 10px;
        background: rgba(247, 147, 26, 0.1);
        border-radius: 5px;
    }
    
    .undrawn-numbers {
        justify-content: center;
    }
    
    .ball {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .undrawn-display {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .ball {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .undrawn-display {
        padding: 15px;
    }
    
    .section-box {
        padding: 15px;
    }
}