/**
 * SEOsuite.net - Age Calculator Stylesheet
 * Lightweight, Bootstrap-first, High-Contrast Light Theme
 * Paragraph text strictly 16px, headings in px (zero rem units)
 */

/* Main Wrapper */
.age-calc-wrapper {
    padding-top: 20px;
    padding-bottom: 40px;
}

/* Typography Overrides (Strictly px units, 16px paragraphs) */
.age-calc-wrapper p,
.age-calc-wrapper .age-para,
.age-seo-content p,
.age-seo-content li,
.age-faq-answer {
    font-size: 16px !important;
    line-height: 26px !important;
    color: #334155;
    margin-bottom: 14px;
}

.age-hero h1,
.age-hero-title {
    font-size: 32px !important;
    line-height: 40px !important;
    font-weight: 800;
    color: #0f172a;
    margin: 12px 0;
}

.age-section-title,
.age-card h2 {
    font-size: 24px !important;
    line-height: 32px !important;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px 0;
}

.age-card h3,
.age-sub-title {
    font-size: 20px !important;
    line-height: 28px !important;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.age-card h4,
.age-block-title {
    font-size: 18px !important;
    line-height: 24px !important;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

/* Hero Section */
.age-hero {
    text-align: center;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 26px 20px 22px 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.age-hero-badge {
    display: inline-block;
    padding: 5px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mode Switcher Tabs */
.age-mode-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 10px;
}

.age-mode-tab {
    flex: 1;
    text-align: center;
    padding: 11px 16px;
    font-size: 16px;
    font-weight: 700;
    color: #475569;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.age-mode-tab.active {
    background: #ffffff;
    color: #0284c7;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.age-mode-tab:hover:not(.active) {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.5);
}

/* Tool Main Card */
.age-main-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

/* Form Styling */
.age-form-group {
    margin-bottom: 18px;
}

.age-form-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

/* Premium 3-part Date Picker Grid */
.age-date-picker-grid {
    display: flex;
    gap: 8px;
    align-items: center;
}

.age-date-col-month {
    flex: 5;
}

.age-date-col-day {
    flex: 3;
}

.age-date-col-year {
    flex: 4;
}

.age-date-col-btn {
    flex: 0 0 46px;
}

.age-select,
.age-input {
    height: 46px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.age-select:focus,
.age-input:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

.age-cal-picker-btn {
    height: 46px;
    width: 46px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    color: #0284c7;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.age-cal-picker-btn:hover {
    background: #e0f2fe;
    border-color: #0284c7;
    color: #0369a1;
}

/* Quick Date Preset Buttons */
.age-presets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.age-preset-btn {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 11px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.age-preset-btn:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
}

/* Action Buttons */
.age-btn-primary {
    background: #0284c7;
    border: 1.5px solid #0369a1;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 11px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.age-btn-primary:hover {
    background: #0369a1;
    color: #ffffff;
}

.age-btn-secondary {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    color: #475569;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.age-btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Hero Age Result Box (Fills left column area) */
.age-hero-result-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
    border: 1.5px solid #93c5fd;
    border-radius: 12px;
    padding: 20px;
    margin-top: 22px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
}

.age-hero-badge-title {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #0369a1;
    background: #ffffff;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #bae6fd;
    margin-bottom: 12px;
}

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

.age-block-item {
    background: #ffffff;
    border: 1.5px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 6px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.age-block-num {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    line-height: 36px;
}

.age-block-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-top: 2px;
}

.age-hero-subtext {
    font-size: 14px;
    color: #334155;
    font-weight: 600;
    text-align: center;
}

/* Birthday Spotlight Card (Left column) */
.age-bday-card {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.age-bday-card .fa-birthday-cake {
    color: #d97706;
    font-size: 26px;
    margin-right: 12px;
}

.age-bday-progress-bar {
    height: 8px;
    background: #fef3c7;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid #fde68a;
}

.age-bday-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Live Precision Age Ticker (Left column) */
.age-live-ticker-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.age-live-ticker-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.age-live-ticker-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: agePulse 1.5s infinite;
}

@keyframes agePulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.age-live-ticker-val {
    font-family: monospace, Consolas, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0284c7;
}

/* Stat Grid (Right column) */
.age-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.age-stat-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    transition: border-color 0.2s ease;
}

.age-stat-card:hover {
    border-color: #0284c7;
}

.age-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 28px;
}

.age-stat-desc {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Zodiac & Birth Facts Card */
.age-fact-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 18px;
}

.age-fact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 15px;
}

.age-fact-row:last-child {
    border-bottom: none;
}

.age-fact-key {
    color: #64748b;
    font-weight: 600;
}

.age-fact-val {
    color: #0f172a;
    font-weight: 700;
}

/* Life Milestones Card (Right column) */
.age-milestone-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 18px;
}

.age-milestone-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 15px;
}

.age-milestone-row:last-child {
    border-bottom: none;
}

/* Age Difference / Comparison Result Card */
.age-diff-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.age-diff-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.age-diff-badge.older {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #0369a1;
}

.age-diff-badge.equal {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
}

/* SEO Content & Tables */
.age-seo-content {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 24px;
    margin-top: 30px;
}

.age-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px 0;
    font-size: 16px !important;
}

.age-table th {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    text-align: left;
    font-size: 16px !important;
}

.age-table td {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 16px !important;
}

.age-table tr:nth-child(even) {
    background: #f8fafc;
}

/* FAQ Accordion */
.age-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.age-faq-question {
    background: #f8fafc;
    padding: 14px 18px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    width: 100%;
    text-align: left;
}

.age-faq-question:hover {
    background: #f1f5f9;
}

.age-faq-question .fa {
    transition: transform 0.2s ease;
    color: #0284c7;
}

.age-faq-answer {
    padding: 16px 18px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: none;
}

.age-faq-item.open .age-faq-answer {
    display: block;
}

.age-faq-item.open .age-faq-question .fa {
    transform: rotate(180deg);
}

/* Alert Boxes */
.age-alert-danger {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    color: #991b1b;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    display: none;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .age-hero h1,
    .age-hero-title {
        font-size: 24px !important;
        line-height: 32px !important;
    }
    .age-section-title,
    .age-card h2 {
        font-size: 20px !important;
        line-height: 28px !important;
    }
    .age-block-num {
        font-size: 26px !important;
        line-height: 30px !important;
    }
    .age-mode-tabs {
        flex-direction: column;
    }
    .age-date-picker-grid {
        flex-wrap: wrap;
    }
    .age-date-col-month {
        flex: 1 1 100%;
    }
    .age-date-col-day {
        flex: 1 1 45%;
    }
    .age-date-col-year {
        flex: 1 1 40%;
    }
    .age-date-col-btn {
        flex: 0 0 40px;
    }
    .age-stat-grid {
        grid-template-columns: 1fr;
    }
}
