/**
 * Age Calculator Styles (English)
 * Age Calculator dedicated styles (2-column layout)
 *
 * @package Zipper
 */

/* ===== 2-Column Layout (Desktop) ===== */
.age-main-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start;
}

.age-input-col {
    position: sticky;
    top: 20px;
}

.age-result-col {
    min-width: 0;
}

/* ===== Input Section ===== */
.age-input-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 10px;
}

.age-input-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.age-input-title i {
    color: #d4af37;
}

.age-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.age-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.age-input-group label {
    font-size: 14px;
    font-weight: 600;
    color: #5f5a56;
}

.age-input-group select {
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    background: #faf9f7;
    color: #2d2a26;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235f5a56' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

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

/* Waiting State */
.age-waiting {
    text-align: center;
    padding: 40px 20px;
    color: #a09a94;
    background: #faf9f7;
    border: 1px dashed #e8e4dc;
    border-radius: 10px;
}

.age-waiting i {
    font-size: 50px;
    margin-bottom: 12px;
    display: block;
}

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

/* ===== Result Area ===== */

/* Main Result Card */
.age-main-result {
    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);
    border-radius: 10px;
    padding: 16px 20px;
    text-align: center;
    margin-bottom: 12px;
}

.age-main-value {
    font-size: 50px;
    font-weight: 700;
    color: #d4af37;
    line-height: 1;
    margin-bottom: 4px;
}

.age-main-value .unit {
    font-size: 26px;
    font-weight: 500;
    margin-left: 4px;
}

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

.age-type-badge {
    display: inline-block;
    padding: 5px 12px;
    background: #fff;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #d4af37;
}

/* Age Types Grid (3 columns) */
.age-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

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

.age-type-card:hover {
    border-color: #d4af37;
}

.age-type-card .value {
    font-size: 24px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 2px;
}

.age-type-card .value .unit {
    font-size: 16px;
    font-weight: 500;
    color: #5f5a56;
}

.age-type-card .label {
    font-size: 13px;
    color: #5f5a56;
}

/* Info Grid (4 columns) */
.age-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.age-info-card {
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.age-info-card .icon {
    width: 28px;
    height: 28px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
}

.age-info-card .icon i {
    font-size: 16px;
    color: #d4af37;
}

.age-info-card .info .value {
    font-size: 15px;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 2px;
}

.age-info-card .info .label {
    font-size: 12px;
    color: #5f5a56;
}

/* Time Lived Section */
.lived-time-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.lived-time-title {
    font-size: 14px;
    font-weight: 600;
    color: #5f5a56;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lived-time-title i {
    color: #d4af37;
}

.lived-time-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.lived-time-item {
    text-align: center;
    padding: 8px;
    background: #faf9f7;
    border-radius: 6px;
}

.lived-time-item .value {
    font-size: 16px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 2px;
    word-break: break-all;
}

.lived-time-item .label {
    font-size: 12px;
    color: #5f5a56;
}

/* Next Birthday Section */
.next-birthday-section {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.08) 0%, rgba(39, 174, 96, 0.03) 100%);
    border: 1px solid rgba(39, 174, 96, 0.3);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.next-birthday-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.next-birthday-icon i {
    font-size: 22px;
    color: #fff;
}

.next-birthday-info {
    flex: 1;
}

.next-birthday-info .title {
    font-size: 13px;
    color: #27ae60;
    font-weight: 600;
    margin-bottom: 2px;
}

.next-birthday-info .date {
    font-size: 16px;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 2px;
}

.next-birthday-info .dday {
    font-size: 15px;
    color: #27ae60;
    font-weight: 600;
}

.next-birthday-info .dday.today {
    color: #d4af37;
}

/* Leap Year Notice */
.leap-year-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 185, 0, 0.1);
    border: 1px solid rgba(255, 185, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 12px;
}

.leap-year-notice i {
    color: #ffb900;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.leap-year-notice span {
    font-size: 14px;
    color: #5f5a56;
    line-height: 1.4;
}

/* Disclaimer */
.age-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(108, 117, 125, 0.08);
    border-radius: 8px;
    margin-top: 12px;
}

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

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

/* ===== Responsive - Tablet ===== */
@media (max-width: 900px) {
    .age-main-layout {
        grid-template-columns: 280px 1fr;
        gap: 16px;
    }

    .age-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lived-time-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Responsive - Mobile ===== */
@media (max-width: 768px) {
    .age-main-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .age-input-col {
        position: static;
    }

    .age-input-section {
        padding: 14px;
    }

    .age-main-result {
        padding: 14px 16px;
    }

    .age-main-value {
        font-size: 44px;
    }

    .age-types-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .age-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .lived-time-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .next-birthday-section {
        padding: 10px;
    }

    .next-birthday-icon {
        width: 40px;
        height: 40px;
    }

    .next-birthday-icon i {
        font-size: 20px;
    }
}

/* ===== Responsive - Small Mobile ===== */
@media (max-width: 480px) {
    .age-input-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .age-main-value {
        font-size: 38px;
    }

    .age-types-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .age-type-card {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 12px;
        text-align: left;
    }

    .age-type-card .label {
        order: -1;
    }

    .age-type-card .value {
        margin-bottom: 0;
    }

    .age-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .lived-time-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .next-birthday-section {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}
