/**
 * Days Lived Calculator Styles
 * Days Lived Calculator Styles
 *
 * @package Zipper
 */

/* Input Area */
.days-lived-input-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.days-lived-input-group {
    width: 100%;
}

.days-lived-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 8px;
}

.days-lived-input-group input[type="date"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e8e4dc;
    border-radius: 10px;
    background: #fff;
    color: #2d2a26;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.days-lived-input-group input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Birth Weekday Display */
.birth-weekday-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fdfcfa 0%, #f9f7f4 100%);
    border: 1px solid #e8e4dc;
    border-radius: 10px;
}

.birth-weekday-display i {
    color: #d4af37;
    font-size: 18px;
}

.birth-weekday-display span {
    font-size: 15px;
    color: #5f5a56;
}

.birth-weekday-display strong {
    color: #2d2a26;
    font-weight: 600;
}

/* Input Actions */
.input-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.input-actions .tool-btn {
    flex: 1;
}

/* Main Result Area */
.days-lived-main-result {
    background: linear-gradient(135deg, #fffdf9 0%, #faf8f4 100%);
    border: 1px solid #e8e4dc;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 20px;
}

.days-lived-title {
    font-size: 15px;
    color: #5f5a56;
    margin-bottom: 8px;
}

.days-lived-value {
    font-size: 72px;
    font-weight: 800;
    color: #d4af37;
    line-height: 1.1;
    letter-spacing: -2px;
}

.days-lived-value span {
    font-size: 28px;
    font-weight: 600;
    color: #8b7355;
    margin-left: 4px;
    letter-spacing: 0;
}

.days-lived-subtitle {
    font-size: 14px;
    color: #5f5a56;
    margin-top: 12px;
}

/* Stats Grid */
.days-lived-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 42, 38, 0.08);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #2d2a26;
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: #5f5a56;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Live Counter Section */
.live-counter-section {
    background: linear-gradient(135deg, #2d2a26 0%, #3d3935 100%);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.live-counter-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 16px;
}

.live-counter-grid {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.counter-item {
    text-align: center;
    min-width: 72px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 8px;
}

.counter-value {
    font-size: 28px;
    font-weight: 700;
    color: #d4af37;
    font-variant-numeric: tabular-nums;
}

.counter-unit {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.counter-separator {
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    align-self: center;
    margin-top: -8px;
}

/* Milestone Section */
.milestone-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 14px;
    padding: 20px;
}

.milestone-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.milestone-header i {
    color: #d4af37;
    font-size: 18px;
}

.milestone-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #2d2a26;
    margin: 0;
}

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

.milestone-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #faf9f7;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.milestone-item:hover {
    background: #f5f3f0;
}

.milestone-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.milestone-days {
    font-size: 16px;
    font-weight: 700;
    color: #d4af37;
}

.milestone-date {
    font-size: 13px;
    color: #5f5a56;
}

.milestone-remaining {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.milestone-dday {
    font-size: 15px;
    font-weight: 600;
    color: #2d2a26;
}

.milestone-weekday {
    font-size: 12px;
    color: #8b7355;
}

/* Button Area */
.days-lived-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .days-lived-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .days-lived-value {
        font-size: 56px;
    }

    .days-lived-value span {
        font-size: 22px;
    }

    .live-counter-grid {
        gap: 6px;
    }

    .counter-item {
        min-width: 60px;
        padding: 10px 6px;
    }

    .counter-value {
        font-size: 22px;
    }

    .counter-separator {
        font-size: 18px;
    }

    .milestone-item {
        padding: 12px 14px;
    }

    .input-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .days-lived-main-result {
        padding: 24px 16px;
    }

    .days-lived-value {
        font-size: 44px;
    }

    .days-lived-value span {
        font-size: 18px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 11px;
    }

    .counter-item {
        min-width: 52px;
    }

    .counter-value {
        font-size: 18px;
    }

    .counter-unit {
        font-size: 10px;
    }

    .days-lived-actions {
        flex-direction: column;
    }

    .days-lived-actions .tool-btn {
        width: 100%;
    }
}
