/* Age Calculator Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --bg: #0f172a;
    --bg-card: #1e293b;
    --bg-input: #334155;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #475569;
    --accent: #f59e0b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.badges {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-green { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.badge-purple { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }

.calculator-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.input-section {
    margin-bottom: 1.5rem;
}

.date-inputs {
    display: flex;
    gap: 1rem;
}

.input-field {
    flex: 1;
}

.input-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.date-input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    background: var(--bg-input);
    color: var(--text);
    font-size: 1rem;
    outline: none;
}

.date-input:focus {
    border-color: var(--primary);
}

.btn-primary {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.results-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.age-result {
    text-align: center;
    margin-bottom: 2rem;
}

.age-primary {
    margin-bottom: 1rem;
}

.age-number {
    font-size: 5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    display: block;
}

.age-label {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.age-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.age-detail {
    text-align: center;
}

.detail-number {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    display: block;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.next-birthday {
    background: var(--bg-input);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.next-birthday h4 {
    margin-bottom: 1rem;
    color: var(--accent);
}

.birthday-countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.countdown-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.birthday-message {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.life-stats {
    background: var(--bg-input);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.life-stats h4 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 0.75rem;
    background: var(--bg-card);
    border-radius: 0.5rem;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.day-born {
    text-align: center;
    padding: 1rem;
    background: var(--bg-input);
    border-radius: 0.5rem;
}

.day-born p {
    color: var(--text-muted);
}

.day-born strong {
    color: var(--primary);
}

.features {
    margin-bottom: 2rem;
}

.features h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.2s;
}

.feature:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.feature p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.faq {
    margin-bottom: 2rem;
}

.faq h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.faq-category {
    margin-bottom: 1.5rem;
}

.faq-category-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
}

.faq-item {
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
}

.faq-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

footer p:first-child {
    color: var(--text);
    margin-bottom: 0.25rem;
}

@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    .calculator-card { padding: 1.5rem; }
    .date-inputs { flex-direction: column; }
    .age-number { font-size: 4rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
