/* 사주팔자 표 스타일 */

.saju-table-container {
    position: relative;
    margin: 20px 0;
    display: inline-block;
}

.saju-table {
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(135deg, rgba(83, 182, 203, 0.1) 0%, rgba(26, 40, 71, 0.4) 100%);
    border: 2px solid rgba(83, 182, 203, 0.4);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(83, 182, 203, 0.2);
}

.saju-table thead tr {
    background: linear-gradient(135deg, rgba(83, 182, 203, 0.3) 0%, rgba(109, 213, 237, 0.3) 100%);
}

.saju-table th {
    padding: 12px 20px;
    text-align: center;
    font-weight: 700;
    color: #53b6cb;
    font-size: 0.95rem;
    border-right: 1px solid rgba(83, 182, 203, 0.2);
    min-width: 80px;
}

.saju-table th:last-child {
    border-right: none;
}

.saju-table td {
    padding: 20px;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    border-right: 1px solid rgba(83, 182, 203, 0.2);
    border-top: 1px solid rgba(83, 182, 203, 0.2);
    min-width: 80px;
    position: relative;
}

.saju-table td:last-child {
    border-right: none;
}

.saju-table tbody tr:first-child td {
    border-top: none;
}

/* 천간 스타일 */
.cheongan-row {
    background: linear-gradient(135deg, rgba(109, 213, 237, 0.1) 0%, rgba(83, 182, 203, 0.05) 100%);
}

.cheongan {
    color: #6dd5ed;
    text-shadow: 0 0 10px rgba(109, 213, 237, 0.3);
}

/* 지지 스타일 */
.jiji-row {
    background: linear-gradient(135deg, rgba(83, 182, 203, 0.05) 0%, rgba(26, 40, 71, 0.1) 100%);
}

.jiji {
    color: #53b6cb;
    text-shadow: 0 0 10px rgba(83, 182, 203, 0.3);
}

/* 일주 (본인) 강조 */
.dayju {
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.15) 0%, rgba(255, 177, 66, 0.15) 100%);
    position: relative;
}

.dayju::after {
    content: '本';
    position: absolute;
    top: 3px;
    right: 3px;
    font-size: 0.6rem;
    color: #ffd93d;
    background: rgba(255, 217, 61, 0.2);
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 600;
}

/* 사주팔자 라벨 */
.saju-label {
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, #0a1628 0%, #1a2847 100%);
    padding: 5px 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #53b6cb;
    font-weight: 700;
    border: 1px solid rgba(83, 182, 203, 0.4);
}

/* 호버 효과 */
.saju-table td:hover {
    background: rgba(83, 182, 203, 0.15);
    transform: scale(1.05);
    transition: all 0.2s ease;
    cursor: default;
}

.saju-table td.dayju:hover {
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.25) 0%, rgba(255, 177, 66, 0.25) 100%);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .saju-table th {
        padding: 10px 15px;
        font-size: 0.85rem;
        min-width: 70px;
    }
    
    .saju-table td {
        padding: 15px;
        font-size: 1.6rem;
        min-width: 70px;
    }
    
    .dayju::after {
        font-size: 0.5rem;
        padding: 1px 3px;
    }
}

@media (max-width: 480px) {
    .saju-table th {
        padding: 8px 10px;
        font-size: 0.75rem;
        min-width: 60px;
    }
    
    .saju-table td {
        padding: 12px;
        font-size: 1.4rem;
        min-width: 60px;
    }
}
