/* Age Calculator — Plugin Styles */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Syne:wght@400;600;700;800&display=swap');

:root {
    --ict-ac-bg: transparent;
    --ict-ac-card: transparent;
    --ict-ac-border: #cccccc;
    --ict-ac-accent: #e85d04;
    --ict-ac-accent-light: rgba(232,93,4,0.08);
    --ict-ac-accent-glow: rgba(232,93,4,0.18);
    --ict-ac-text: #111111;
    --ict-ac-muted: #444444;
    --ict-ac-hero-bg: linear-gradient(135deg, #fff3ec 0%, #ffe8d6 100%);
    --ict-ac-error: #dc2626;
    --ict-ac-radius: 14px;
    --ict-ac-font-ui: 'Syne', sans-serif;
    --ict-ac-font-mono: 'JetBrains Mono', monospace;
}

.ict-ac-wrapper {
    font-family: var(--ict-ac-font-ui);
    color: var(--ict-ac-text);
    max-width: 620px;
    margin: 2rem auto;
}

.ict-ac-card {
    background: var(--ict-ac-card);
    border: 1px solid var(--ict-ac-border);
    border-radius: var(--ict-ac-radius);
    padding: 2rem 2.25rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.ict-ac-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 0.4rem;
    letter-spacing: -0.03em;
    color: #111111;
}

.ict-ac-subtitle {
    font-size: 0.88rem;
    color: #444444;
    margin: 0 0 1.75rem;
    line-height: 1.5;
}

/* === FORM === */
.ict-ac-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ict-ac-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ict-ac-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #444444;
}

.ict-ac-date-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--ict-ac-border);
    border-radius: 10px;
    color: #111111;
    font-family: var(--ict-ac-font-mono);
    font-size: 0.95rem;
    padding: 0.65rem 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    cursor: pointer;
}

.ict-ac-date-input:focus {
    border-color: var(--ict-ac-accent);
    box-shadow: 0 0 0 3px var(--ict-ac-accent-glow);
}

/* === ERROR === */
.ict-ac-error {
    color: var(--ict-ac-error);
    font-size: 0.82rem;
    background: rgba(220,38,38,0.08);
    border: 1px solid rgba(220,38,38,0.25);
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    margin-bottom: 1rem;
}

/* === BUTTON === */
.ict-ac-btn-calculate {
    width: 100%;
    background: var(--ict-ac-accent);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1.5rem;
    font-family: var(--ict-ac-font-ui);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: opacity 0.18s, transform 0.12s, box-shadow 0.18s;
    box-shadow: 0 4px 18px var(--ict-ac-accent-glow);
}

.ict-ac-btn-calculate:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 26px var(--ict-ac-accent-glow);
}

.ict-ac-btn-calculate:active {
    transform: scale(0.98);
}

.ict-ac-btn-icon {
    font-size: 1.1em;
}

/* === RESULTS === */
.ict-ac-results {
    margin-top: 1.75rem;
    animation: ict-ac-fadein 0.3s ease;
}

@keyframes ict-ac-fadein {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === HERO === */
.ict-ac-hero {
    background: var(--ict-ac-hero-bg);
    border: 1px solid rgba(232,93,4,0.2);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ict-ac-hero-inner {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.ict-ac-hero-years {
    font-family: var(--ict-ac-font-mono);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--ict-ac-accent);
    line-height: 1;
}

.ict-ac-hero-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111111;
    white-space: nowrap;
}

.ict-ac-hero-detail {
    font-size: 0.85rem;
    color: #444444;
    text-align: right;
    line-height: 1.7;
    font-family: var(--ict-ac-font-mono);
}

/* === STATS GRID === */
.ict-ac-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ict-ac-stat-card {
    background: var(--ict-ac-accent-light);
    border: 1px solid rgba(232,93,4,0.15);
    border-radius: 12px;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    transition: transform 0.15s, box-shadow 0.15s;
}

.ict-ac-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--ict-ac-accent-glow);
}

.ict-ac-stat-value {
    font-family: var(--ict-ac-font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ict-ac-accent);
    line-height: 1;
}

.ict-ac-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #444444;
}

/* === EXTRA GRID === */
.ict-ac-extra-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.ict-ac-extra-item {
    background: transparent;
    border: 1px solid var(--ict-ac-border);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.ict-ac-extra-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #444444;
}

.ict-ac-extra-value {
    font-family: var(--ict-ac-font-mono);
    font-size: 0.88rem;
    font-weight: 600;
    color: #111111;
    text-align: right;
}

/* Responsive */
@media (max-width: 520px) {
    .ict-ac-card {
        padding: 1.5rem 1.1rem;
    }
    .ict-ac-fields-row {
        grid-template-columns: 1fr;
    }
    .ict-ac-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .ict-ac-hero-detail {
        text-align: left;
    }
    .ict-ac-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ict-ac-extra-grid {
        grid-template-columns: 1fr;
    }
}
