/**
 * Biorhythm Couple Calculator Styles
 * 바이오리듬 커플 계산기 전용 스타일
 *
 * @package Zipper
 */

/* ===== 메인 레이아웃 ===== */
.bcc-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== 입력 영역 ===== */
.bcc-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bcc-person-card {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
}

.bcc-person-card.person-a {
    --person-color: #e74c3c;
}

.bcc-person-card.person-b {
    --person-color: #3498db;
}

.bcc-person-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.bcc-person-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bcc-person-icon i {
    font-size: 18px;
    color: var(--person-color);
}

.bcc-person-label {
    font-size: 15px;
    font-weight: 600;
    color: #2d2a26;
}

.bcc-person-label span {
    font-size: 13px;
    font-weight: 400;
    color: #a09a94;
    margin-left: 6px;
}

.bcc-date-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    background: #faf9f7;
    color: #2d2a26;
    cursor: pointer;
}

.bcc-date-input:focus {
    outline: none;
    border-color: var(--person-color, #d4af37);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
    background: #fff;
}

/* 기준 날짜 */
.bcc-target-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
}

.bcc-target-label {
    font-size: 14px;
    font-weight: 600;
    color: #5f5a56;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bcc-target-label i {
    color: #d4af37;
}

.bcc-target-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bcc-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    background: #fff;
    color: #5f5a56;
    cursor: pointer;
    transition: all 0.2s;
}

.bcc-nav-btn:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.bcc-target-input {
    padding: 8px 12px;
    font-size: 15px;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    background: #faf9f7;
    color: #2d2a26;
    min-width: 140px;
}

.bcc-target-input:focus {
    outline: none;
    border-color: #d4af37;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.bcc-today-btn {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #d4af37;
    border-radius: 6px;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    cursor: pointer;
    transition: all 0.2s;
}

.bcc-today-btn:hover {
    background: #d4af37;
    color: #fff;
}

/* ===== 대기 상태 ===== */
.bcc-waiting {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    color: #a09a94;
}

.bcc-waiting i {
    font-size: 60px;
    margin-bottom: 16px;
    display: block;
}

.bcc-waiting p {
    font-size: 16px;
    margin: 0;
}

/* ===== 결과 영역 ===== */
.bcc-result {
    display: none;
}

.bcc-result.active {
    display: block;
}

/* 종합 호환성 점수 */
.bcc-total-score {
    background: linear-gradient(135deg, #fff 0%, #faf9f7 100%);
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-bottom: 16px;
}

.bcc-total-label {
    font-size: 14px;
    color: #5f5a56;
    margin-bottom: 8px;
}

.bcc-total-value {
    font-size: 56px;
    font-weight: 700;
    color: #d4af37;
    line-height: 1;
}

.bcc-total-value span {
    font-size: 28px;
    font-weight: 500;
}

.bcc-total-message {
    font-size: 15px;
    color: #2d2a26;
    margin-top: 12px;
    padding: 10px 16px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    display: inline-block;
}

/* 개별 호환성 카드 */
.bcc-scores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.bcc-score-card {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s;
}

.bcc-score-card:hover {
    border-color: var(--cycle-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.bcc-score-card.physical { --cycle-color: #e74c3c; }
.bcc-score-card.emotional { --cycle-color: #27ae60; }
.bcc-score-card.intellectual { --cycle-color: #3498db; }

.bcc-score-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bcc-score-icon i {
    font-size: 20px;
    color: var(--cycle-color);
}

.bcc-score-name {
    font-size: 13px;
    font-weight: 600;
    color: #5f5a56;
    margin-bottom: 6px;
}

.bcc-score-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--cycle-color);
    line-height: 1;
}

.bcc-score-value span {
    font-size: 16px;
    font-weight: 500;
}

.bcc-score-bar {
    height: 6px;
    background: #e8e4dc;
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.bcc-score-bar-fill {
    height: 100%;
    background: var(--cycle-color);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* ===== 차트 영역 ===== */
.bcc-chart-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

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

.bcc-chart-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d2a26;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bcc-chart-title i {
    color: #d4af37;
}

.bcc-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.bcc-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #5f5a56;
}

.bcc-legend-line {
    width: 20px;
    height: 3px;
    border-radius: 2px;
}

.bcc-legend-line.person-a { background: #e74c3c; }
.bcc-legend-line.person-b { background: #3498db; }
.bcc-legend-line.dashed {
    background: repeating-linear-gradient(90deg, currentColor 0, currentColor 4px, transparent 4px, transparent 8px);
    height: 2px;
}

.bcc-chart-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.bcc-chart-tab {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    background: #fff;
    color: #5f5a56;
    cursor: pointer;
    transition: all 0.2s;
}

.bcc-chart-tab:hover {
    border-color: #d4af37;
}

.bcc-chart-tab.active {
    background: #d4af37;
    border-color: #d4af37;
    color: #fff;
}

.bcc-chart-wrapper {
    width: 100%;
    position: relative;
}

#bccChart {
    width: 100%;
    height: 260px;
    display: block;
}

/* ===== 추천/경고 섹션 ===== */
.bcc-insights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.bcc-insight-card {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 14px;
}

.bcc-insight-card.best-days {
    border-color: rgba(39, 174, 96, 0.3);
    background: rgba(39, 174, 96, 0.02);
}

.bcc-insight-card.caution-days {
    border-color: rgba(255, 185, 0, 0.3);
    background: rgba(255, 185, 0, 0.02);
}

.bcc-insight-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.bcc-insight-header i {
    font-size: 18px;
}

.bcc-insight-card.best-days .bcc-insight-header i {
    color: #27ae60;
}

.bcc-insight-card.caution-days .bcc-insight-header i {
    color: #d68910;
}

.bcc-insight-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d2a26;
}

.bcc-insight-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bcc-insight-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    font-size: 13px;
}

.bcc-insight-date {
    font-weight: 600;
    color: #2d2a26;
}

.bcc-insight-score {
    font-weight: 500;
}

.bcc-insight-card.best-days .bcc-insight-score {
    color: #27ae60;
}

.bcc-insight-card.caution-days .bcc-insight-score {
    color: #d68910;
}

/* ===== 공유 버튼 ===== */
.bcc-share-section {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.bcc-share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #fff;
    color: #5f5a56;
    cursor: pointer;
    transition: all 0.2s;
}

.bcc-share-btn:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.bcc-share-btn i {
    font-size: 16px;
}

/* ===== 면책 조항 ===== */
.bcc-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(108, 117, 125, 0.08);
    border-radius: 8px;
}

.bcc-disclaimer i {
    color: #6c757d;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.bcc-disclaimer span {
    font-size: 14px;
    color: #5f5a56;
    line-height: 1.5;
}

/* ===== 복사 완료 토스트 ===== */
.bcc-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    background: #2d2a26;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.bcc-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ===== 반응형 - 태블릿 ===== */
@media (max-width: 768px) {
    .bcc-inputs {
        grid-template-columns: 1fr;
    }

    .bcc-scores-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .bcc-score-card {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 12px 16px;
        gap: 14px;
    }

    .bcc-score-icon {
        margin: 0;
        flex-shrink: 0;
    }

    .bcc-score-info {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .bcc-score-name {
        margin-bottom: 0;
    }

    .bcc-score-value {
        font-size: 24px;
    }

    .bcc-score-bar {
        display: none;
    }

    .bcc-insights {
        grid-template-columns: 1fr;
    }

    .bcc-target-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .bcc-chart-header {
        flex-direction: column;
        align-items: flex-start;
    }

    #bccChart {
        height: 220px;
    }

    .bcc-total-value {
        font-size: 48px;
    }
}

/* ===== 반응형 - 모바일 ===== */
@media (max-width: 480px) {
    .bcc-total-value {
        font-size: 42px;
    }

    .bcc-total-message {
        font-size: 14px;
        padding: 8px 12px;
    }

    .bcc-share-section {
        flex-direction: column;
    }

    .bcc-share-btn {
        justify-content: center;
    }

    #bccChart {
        height: 200px;
    }

    .bcc-chart-tabs {
        flex-wrap: wrap;
    }
}
