/* 택일 결과 페이지 스타일 */
.taekil-result .user-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 30px;
}

.user-info-summary {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.user-info-summary p {
    margin: 0;
    font-size: 1rem;
}

.ipchun-notice {
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.ipchun-notice .notice-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.ipchun-notice p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.ipchun-notice strong {
    color: #FEF3C7;
    font-weight: 700;
}

.tips-card {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.tips-list li:before {
    content: '💡';
    position: absolute;
    left: 0;
}

.dates-desc {
    color: #6B7280;
    margin-bottom: 20px;
}

.dates-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.date-item {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 3px solid #E5E7EB;
    transition: all 0.3s ease;
}

.date-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.date-item.score-ss {
    border-color: #FF6B9D;
    background: linear-gradient(135deg, #fff 0%, #ffebf3 100%);
}

.date-item.score-s {
    border-color: #C44569;
}

.date-item.score-a {
    border-color: #6C5CE7;
}

.date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.date-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-rank {
    background: #6366F1;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.date-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1F2937;
}

.date-dow {
    color: #6B7280;
}

.date-score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;

}

.score-badge {
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.grade-text {
    font-size: 0.9rem;
    color: #6B7280;
}

.date-ganji {
    padding: 12px;
    background: #F9FAFB;
    border-radius: 8px;
    margin-bottom: 15px;
}

.ganji-label {
    font-weight: bold;
    margin-right: 8px;
}

.ganji-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #6366F1;
    margin-right: 8px;
}

.ganji-detail {
    color: #6B7280;
    font-size: 0.9rem;
}

.date-reasons,
.date-warnings {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
}

.date-reasons {
    background: #ECFDF5;
    border-left: 4px solid #10B981;
}

.date-warnings {
    background: #FEF3C7;
    border-left: 4px solid #F59E0B;
}

.date-reasons ul,
.date-warnings ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.date-reasons li,
.date-warnings li {
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reason-icon,
.warning-icon {
    font-size: 1.2rem;

}

.date-hours {
    margin-top: 12px;
    padding: 12px;
    background: #EFF6FF;
    border-radius: 8px;
}

.hours-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.hour-badge {
    padding: 6px 12px;
    background: white;
    border: 2px solid #3B82F6;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #3B82F6;
    font-weight: 500;
}

.date-son-info {
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-radius: 8px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.son-badge {
    padding: 6px 12px;
    background: #F59E0B;
    color: white;
    border-radius: 20px;
    font-weight: bold;
}

.son-direction {
    color: #92400E;
    font-weight: 500;
}

.more-dates-notice {
    text-align: center;
    color: #6B7280;
    margin-top: 20px;
    padding: 15px;
    background: #F9FAFB;
    border-radius: 8px;

}

.action-buttons {
    text-align: center;
    margin-top: 30px;
}

.btn-restart {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-restart:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}



/* 모바일 대응 */
@media (max-width: 768px) {

    /* 레이아웃 일반 */
    .container {
        padding: 15px;
    }

    .main-header h1 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    /* 입력 폼 최적화 */
    .form-card {
        padding: 25px 20px;
    }

    .purpose-select {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .purpose-item {
        width: 100%;
        margin: 0;
    }

    .purpose-card {
        width: 100%;
        height: 100%;
        padding: 15px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
        justify-content: center;
    }

    .date-inputs {
        flex-direction: column;
        gap: 12px;
    }

    .date-inputs .input-wrapper,
    .date-inputs select {
        width: 100%;
    }

    .date-range-inputs {
        flex-direction: column;
        gap: 12px;
    }

    .date-range-inputs .input-wrapper,
    .date-range-inputs input {
        width: 100%;
    }

    .range-separator {
        display: none;
    }

    .direction-select {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .direction-item {
        width: 100%;
        margin: 0;
    }

    .direction-card {
        width: 100%;
        padding: 12px 5px;
        justify-content: center;
        font-size: 0.95rem;
    }

    /* 안내 카드 */
    .info-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 결과 페이지 최적화 */
    .user-info-summary {
        flex-direction: column;
        gap: 10px;
    }

    .ipchun-notice {
        padding: 12px 15px;
        gap: 10px;
    }

    .ipchun-notice .notice-icon {
        font-size: 1.1rem;
    }

    .ipchun-notice p {
        font-size: 0.9rem;
    }

    .date-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .date-main {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
    }

    .date-score {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
        padding-top: 15px;
        border-top: 1px dashed #eee;
    }

    .date-ganji {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ganji-value {
        margin-bottom: 5px;
    }

    .date-son-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hours-list {
        justify-content: flex-start;
    }
}

/* 소형 스마트폰 대응 (480px 이하) */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .main-header h1 {
        font-size: 1.4rem;
    }

    .form-card {
        padding: 20px 15px;
    }

    /* 목적 선택 1열로 변경 */
    .purpose-select {
        grid-template-columns: 1fr;
    }

    .purpose-card {
        flex-direction: row;
        justify-content: flex-start;
        padding: 15px 20px;
        text-align: left;
    }

    /* 방향 선택 2열로 변경 */
    .direction-select {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 첫 번째 항목(상관없음)을 꽉 채우기 */
    .direction-item:first-child {
        grid-column: span 2;
    }

    .date-item {
        padding: 15px;
    }

    .date-value {
        font-size: 1.2rem;
    }

    .score-badge {
        font-size: 1rem;
        padding: 6px 12px;
    }

    .btn-restart {
        width: 100%;
        justify-content: center;
    }
}