/* Age Calculator — style.css v1.0 */

.agec-wrap {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a1a;
}

/* Header */
.agec-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.agec-icon   { font-size: 36px; line-height: 1; }
.agec-title  {
    font-size: 22px !important; font-weight: 600 !important;
    margin: 0 0 3px !important; padding: 0 !important;
    border: none !important; color: #1a1a1a !important;
}
.agec-sub { font-size: 13px; color: #666; margin: 0; }

/* Inputs */
.agec-inputs { margin-bottom: 4px; }
.agec-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 14px; margin-bottom: 8px;
}
@media (max-width: 440px) { .agec-grid { grid-template-columns: 1fr; } }

.agec-lbl {
    display: flex; align-items: center; gap: 5px;
    font-size: 13px; font-weight: 500; color: #555; margin-bottom: 6px;
}
.agec-tip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 15px; height: 15px; border-radius: 50%;
    background: #ebebeb; font-size: 10px; color: #777;
    cursor: help; font-style: normal;
}
.agec-date-input {
    width: 100%; box-sizing: border-box; padding: 9px 12px;
    border: 1px solid #d0d0d0; border-radius: 8px;
    font-size: 14px; color: #1a1a1a; background: #fff;
    outline: none; transition: border-color .15s; cursor: pointer;
}
.agec-date-input:focus { border-color: #7C3AED; box-shadow: 0 0 0 3px rgba(124,58,237,.1); }

.agec-today-btn {
    padding: 6px 14px; font-size: 12px;
    border: 1px solid #d0d0d0; border-radius: 7px;
    background: #fff; color: #555; cursor: pointer;
    transition: background .13s;
}
.agec-today-btn:hover { background: #f5f3ff; color: #6B21A8; border-color: #c4b5fd; }

/* Section label */
.agec-section-lbl {
    font-size: 11px; font-weight: 700; color: #999;
    text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px;
}

/* Main age display */
.agec-main-result {
    background: linear-gradient(135deg, #7C3AED, #5B21B6);
    border-radius: 14px; padding: 22px 24px;
    color: #fff; text-align: center; margin-top: 18px;
    animation: agec-in .22s ease;
}
@keyframes agec-in { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
.agec-age-main { font-size: 52px; font-weight: 700; line-height: 1; margin-bottom: 6px; letter-spacing: -2px; }
.agec-age-detail { font-size: 16px; opacity: .85; margin-bottom: 4px; }
.agec-age-exact  { font-size: 13px; opacity: .65; }

/* Breakdown cards */
.agec-breakdown-cards {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 8px; margin-top: 12px; margin-bottom: 14px;
}
@media (max-width: 480px) { .agec-breakdown-cards { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 360px) { .agec-breakdown-cards { grid-template-columns: repeat(2,1fr); } }

.agec-breakdown-card {
    background: #f5f3ff; border: 1px solid #e9d5ff;
    border-radius: 10px; padding: 10px 8px; text-align: center;
}
.agec-bd-val { font-size: 18px; font-weight: 700; color: #6B21A8; margin-bottom: 2px; }
.agec-bd-lbl { font-size: 11px; color: #888; }

/* Birthday countdown section */
.agec-birthday-section {
    background: #fff8e1; border: 1px solid #fde68a;
    border-radius: 12px; padding: 16px 18px; margin-bottom: 14px;
}
.agec-bday-title { font-size: 14px; font-weight: 600; color: #92400E; margin-bottom: 10px; }
.agec-bday-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 0; font-size: 13px; border-bottom: 1px solid #fde68a;
}
.agec-bday-row:last-child { border-bottom: none; font-weight: 600; }
.agec-bday-lbl { color: #78350F; }
.agec-bday-val { font-weight: 600; color: #92400E; }
.agec-bday-countdown {
    text-align: center; padding: 12px 0 4px;
}
.agec-bday-days { font-size: 36px; font-weight: 700; color: #D97706; line-height: 1; }
.agec-bday-days-lbl { font-size: 12px; color: #92400E; margin-top: 3px; }

/* Facts grid */
.agec-facts-grid {
    display: grid; grid-template-columns: repeat(3,1fr);
    gap: 10px; margin-bottom: 14px;
}
@media (max-width: 480px) { .agec-facts-grid { grid-template-columns: repeat(2,1fr); } }

.agec-fact-card {
    background: #fafafa; border: 1px solid #e8e8e8;
    border-radius: 10px; padding: 12px;
    text-align: center;
}
.agec-fact-icon { font-size: 24px; margin-bottom: 5px; }
.agec-fact-val  { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 2px; line-height: 1.3; }
.agec-fact-lbl  { font-size: 11px; color: #888; }

/* Milestones */
.agec-milestones-list { margin-bottom: 14px; }
.agec-milestone {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 0; border-bottom: 1px solid #f0f0f0;
}
.agec-milestone:last-child { border-bottom: none; }
.agec-ms-dot {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.agec-ms-dot.past   { background: #9CA3AF; }
.agec-ms-dot.now    { background: #7C3AED; box-shadow: 0 0 0 3px rgba(124,58,237,.2); }
.agec-ms-dot.future { background: #E5E7EB; border: 2px solid #D1D5DB; }
.agec-ms-info  { flex: 1; }
.agec-ms-name  { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.agec-ms-desc  { font-size: 12px; color: #888; }
.agec-ms-date  { font-size: 12px; color: #888; white-space: nowrap; }
.agec-ms-date.past   { color: #9CA3AF; }
.agec-ms-date.future { color: #7C3AED; }

/* Error */
.agec-error-box { background: #fee2e2; border: 1px solid #fca5a5; border-radius: 9px; padding: 12px 16px; margin-top: 14px; font-size: 13px; color: #991b1b; }
