/* Age Calculator - Light Theme */

/* Main Age Display */

/* Dark mode overrides */
[data-theme="dark"] {
    --tool-bg: #0f172a;
    --tool-border: #334155;
    --tool-border-hover: #475569;
    --tool-text: #f8fafc;
    --tool-text-secondary: #94a3b8;
    --tool-input-bg: #1e293b;
    --tool-input-border: #334155;
    --tool-button-bg: #1e293b;
    --tool-button-hover: #334155;
    --tool-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --tool-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --surface-color: #1e293b;
    --surface-hover: #334155;
    --background-color: #0f172a;
    --text-color: #f8fafc;
    --status-info: rgba(96, 165, 250, 0.2);
    --status-success: rgba(34, 197, 94, 0.2);
    --status-error: rgba(248, 113, 113, 0.2);
    --bg-color: #0f172a;
}

/* Dark mode element overrides */
[data-theme="dark"] .tool-card {
    background: var(--bg-card, #1e293b);
    border-color: var(--border-color, #334155);
}

[data-theme="dark"] .tool-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: var(--input-bg, #1e293b);
    color: var(--text-primary, #f8fafc);
    border-color: var(--border-color, #334155);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--text-muted, #64748b);
}

[data-theme="dark"] .tab-btn.active {
    color: white;
}

[data-theme="dark"] label {
    color: var(--text-primary, #f8fafc);
}

[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 {
    color: var(--text-primary, #f8fafc);
}

[data-theme="dark"] p {
    color: var(--text-secondary, #cbd5e1);
}
.main-age-display {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.age-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.age-primary {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.age-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.age-unit {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
}

.age-celebration {
    font-size: 3rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

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

.age-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.age-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

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

/* Birthday Section */
.birthday-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.birthday-section h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.birthday-countdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.birthday-date {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.birthday-icon {
    font-size: 3rem;
}

.birthday-info {
    display: flex;
    flex-direction: column;
}

.birthday-next {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

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

.countdown-display {
    display: flex;
    gap: 1rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    min-width: 60px;
}

.countdown-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

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

/* Zodiac Card */
.zodiac-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.zodiac-icon {
    font-size: 3rem;
    width: 60px;
    text-align: center;
}

.zodiac-info {
    flex: 1;
}

.zodiac-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

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

.zodiac-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    margin: 0;
}

/* Generation Card */
.generation-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.generation-icon {
    font-size: 3rem;
    width: 60px;
    text-align: center;
}

.generation-info {
    flex: 1;
}

.generation-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

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

.generation-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    margin: 0;
}

/* Life Statistics */
.life-stats {
    margin-bottom: 2rem;
}

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

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

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2rem;
    width: 50px;
    text-align: center;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}

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

/* Birth Day Information */
.birth-day-info {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.birth-day-info h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.birth-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.birth-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
}

.birth-label {
    color: var(--text-muted);
    font-weight: 500;
}

.birth-value {
    color: var(--primary-color);
    font-weight: 600;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Results Section */
.results-section {
    display: none;
}

.results-section.visible {
    display: block;
}

/* Zodiac List Sidebar */
.zodiac-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.zodiac-item {
    padding: 0.5rem;
    background: var(--hover-bg);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .age-hero {
        flex-direction: column;
        gap: 1rem;
    }
    
    .age-number {
        font-size: 3rem;
    }
    
    .age-breakdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .birthday-countdown {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .countdown-display {
        justify-content: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .birth-details {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .age-number {
        font-size: 2.5rem;
    }
    
    .birthday-date {
        flex-direction: column;
        text-align: center;
    }
    
    .zodiac-display,
    .generation-display {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .birth-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}


