/**
 * Water Intake Calculator Styles
 * 물 섭취량 계산기 전용 스타일
 *
 * @package Zipper
 */

/* 입력 섹션 */
.water-input-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.water-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.water-input-group label {
    font-size: 14px;
    font-weight: 600;
    color: #2d2a26;
    display: flex;
    align-items: center;
    gap: 8px;
}

.water-input-group label i {
    color: #d4af37;
    font-size: 16px;
}

.water-input-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.water-input-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.water-input-field .sublabel {
    font-size: 12px;
    color: #5f5a56;
}

.water-input-field input,
.water-input-field select {
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    color: #2d2a26;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

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

.water-input-field input::placeholder {
    color: #a09a94;
}

.water-input-field .unit-label {
    font-size: 13px;
    color: #5f5a56;
    margin-top: 4px;
}

/* 옵션 그룹 */
.water-options-group {
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
}

.water-options-title {
    font-size: 13px;
    font-weight: 600;
    color: #5f5a56;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.water-options-title i {
    color: #d4af37;
}

.water-options-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.water-options-row .water-input-field {
    flex: 1;
    min-width: 120px;
}

/* 메인 결과 카드 */
.water-main-result {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.1) 100%);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    margin-bottom: 24px;
}

.water-main-value {
    font-size: 56px;
    font-weight: 700;
    color: #3498db;
    line-height: 1;
    margin-bottom: 8px;
}

.water-main-unit {
    font-size: 24px;
    font-weight: 500;
    color: #5f5a56;
}

.water-main-label {
    font-size: 15px;
    color: #5f5a56;
    margin-bottom: 8px;
}

.water-glasses-info {
    font-size: 14px;
    color: #3498db;
    font-weight: 500;
}

.water-glasses-info i {
    margin-right: 4px;
}

/* 물 시각화 바 */
.water-visual-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.water-visual-title {
    font-size: 14px;
    font-weight: 600;
    color: #5f5a56;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.water-visual-title i {
    color: #3498db;
}

.water-glasses-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.water-glass {
    width: 36px;
    height: 48px;
    background: #e8e4dc;
    border-radius: 0 0 8px 8px;
    position: relative;
    overflow: hidden;
    border: 2px solid #d5d0c8;
    border-top: none;
}

.water-glass::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -2px;
    right: -2px;
    height: 6px;
    background: #d5d0c8;
    border-radius: 2px 2px 0 0;
}

.water-glass.filled {
    background: linear-gradient(180deg, #74b9ff 0%, #3498db 100%);
    border-color: #2980b9;
}

.water-glass.filled::before {
    background: #2980b9;
}

.water-glass.half {
    background: linear-gradient(180deg, #e8e4dc 0%, #e8e4dc 50%, #74b9ff 50%, #3498db 100%);
}

/* 상세 결과 그리드 */
.water-breakdown-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.water-breakdown-title {
    font-size: 14px;
    font-weight: 600;
    color: #5f5a56;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.water-breakdown-title i {
    color: #d4af37;
}

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

.water-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #faf9f7;
    border-radius: 8px;
}

.water-breakdown-item .label {
    font-size: 13px;
    color: #5f5a56;
    display: flex;
    align-items: center;
    gap: 6px;
}

.water-breakdown-item .label i {
    font-size: 14px;
    color: #a09a94;
}

.water-breakdown-item .value {
    font-size: 14px;
    font-weight: 600;
    color: #2d2a26;
}

.water-breakdown-item .value.positive {
    color: #3498db;
}

.water-breakdown-item.total {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(184, 134, 11, 0.1) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    grid-column: 1 / -1;
}

.water-breakdown-item.total .label {
    font-weight: 600;
    color: #2d2a26;
}

.water-breakdown-item.total .value {
    font-size: 18px;
    color: #d4af37;
}

/* 트래커 섹션 */
.water-tracker-section {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1) 0%, rgba(39, 174, 96, 0.05) 100%);
    border: 1px solid rgba(39, 174, 96, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.water-tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.water-tracker-title {
    font-size: 14px;
    font-weight: 600;
    color: #27ae60;
    display: flex;
    align-items: center;
    gap: 8px;
}

.water-tracker-title i {
    color: #27ae60;
}

.water-tracker-date {
    font-size: 12px;
    color: #5f5a56;
}

.water-tracker-progress {
    margin-bottom: 16px;
}

.water-progress-bar {
    height: 24px;
    background: #e8e4dc;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.water-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
    border-radius: 12px;
    transition: width 0.3s ease;
    min-width: 0;
}

.water-progress-fill.over {
    background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
}

.water-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
    color: #2d2a26;
}

.water-tracker-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.water-tracker-current {
    font-size: 24px;
    font-weight: 700;
    color: #27ae60;
}

.water-tracker-current span {
    font-size: 14px;
    font-weight: 400;
    color: #5f5a56;
}

.water-tracker-remaining {
    font-size: 13px;
    color: #5f5a56;
}

.water-tracker-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.water-tracker-btn {
    flex: 1;
    min-width: 70px;
    padding: 12px 16px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #2d2a26;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.water-tracker-btn:hover {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.water-tracker-btn:active {
    transform: scale(0.98);
}

.water-tracker-btn i {
    color: #3498db;
}

.water-tracker-btn.reset-btn {
    flex: 0 0 auto;
    min-width: auto;
    padding: 12px;
}

.water-tracker-btn.reset-btn:hover {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.water-tracker-btn.reset-btn i {
    color: #e74c3c;
}

/* 팁 섹션 */
.water-tips-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.water-tips-title {
    font-size: 14px;
    font-weight: 600;
    color: #5f5a56;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.water-tips-title i {
    color: #f39c12;
}

.water-tips-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.water-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #5f5a56;
    line-height: 1.5;
}

.water-tip-item i {
    color: #27ae60;
    flex-shrink: 0;
    margin-top: 2px;
}

/* 주의 사항 */
.water-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 185, 0, 0.1);
    border-radius: 12px;
    margin-top: 16px;
}

.water-disclaimer i {
    color: #f39c12;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

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

/* 대기 상태 */
.water-waiting {
    text-align: center;
    padding: 40px 20px;
    color: #a09a94;
}

.water-waiting i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    color: #3498db;
}

.water-waiting p {
    font-size: 15px;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .water-input-row {
        flex-direction: column;
        align-items: stretch;
    }

    .water-options-row {
        flex-direction: column;
        align-items: stretch;
    }

    .water-options-row .water-input-field {
        min-width: 100%;
    }

    .water-main-result {
        padding: 24px 20px;
    }

    .water-main-value {
        font-size: 48px;
    }

    .water-breakdown-grid {
        grid-template-columns: 1fr;
    }

    .water-tracker-buttons {
        flex-wrap: wrap;
    }

    .water-tracker-btn {
        min-width: calc(33.333% - 6px);
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .water-main-result {
        padding: 20px 16px;
    }

    .water-main-value {
        font-size: 42px;
    }

    .water-main-unit {
        font-size: 20px;
    }

    .water-glass {
        width: 30px;
        height: 40px;
    }

    .water-tracker-btn {
        min-width: calc(50% - 4px);
        padding: 10px 12px;
        font-size: 12px;
    }

    .water-tracker-current {
        font-size: 20px;
    }

    .water-breakdown-item {
        padding: 10px 12px;
    }

    .water-breakdown-item .label {
        font-size: 12px;
    }

    .water-breakdown-item .value {
        font-size: 13px;
    }
}
