/* ========================================
   AGE CALCULATOR - DARK THEME REDESIGN
   ======================================== */

/* CSS Variables */
:root {
    /* Theme Colors - Switched to Light Mode */
    --dark-bg: linear-gradient(135deg, #e2e999 0%, #8dcaea 100%);
    --dark-secondary: #ffffff;
    --dark-card: rgba(255, 255, 255, 0.7);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --accent-gold: #d97706;
    --accent-purple: #7c3aed;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    /* Darker hero for contrast */
    --gradient-zodiac: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-chinese: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-numerology: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%);
}

/* Global Styles */
body.age-calculator-page {
    background: var(--dark-bg);
    background-attachment: fixed;
    /* Parallax effect */
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--dark-bg);
}

.hero-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    background: var(--gradient-hero);
    border-radius: 2rem;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.hero-card h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    color: #ffffff;
    line-height: 1.3;
}

/* Form Styling */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    text-align: left;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.date-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    padding: 0.75rem 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.date-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
}

.date-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.calendar-icon {
    font-size: 1.25rem;
    margin-left: 0.5rem;
    cursor: pointer;
}

.btn-calculate {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.4);
}

/* Age Overview Section */
.age-overview {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: none;
    /* Hidden by default */
}

.age-overview.show {
    display: block;
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.age-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.age-card {
    background: var(--dark-card);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.age-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.age-card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.age-card-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1;
    margin: 0.5rem 0;
}

.age-card-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: capitalize;
}

/* Unique Profile Section */
.unique-profile {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: none;
    /* Hidden by default */
}

.unique-profile.show {
    display: block;
}

.profile-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.profile-card {
    border-radius: 1.5rem;
    padding: 2rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 400px;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.profile-card>* {
    position: relative;
    z-index: 1;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.zodiac-card {
    background: var(--gradient-zodiac);
}

.chinese-card {
    background: var(--gradient-chinese);
}

.numerology-card {
    background: var(--gradient-numerology);
}

.profile-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-card-icon {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.profile-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
    margin: 0;
}

.profile-card-name {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 1rem 0;
    text-align: center;
}

.profile-card-subtitle {
    font-size: 0.95rem;
    opacity: 0.85;
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-card-content {
    font-size: 0.9rem;
    line-height: 1.6;
}

.profile-card-section {
    margin: 1rem 0;
}

.profile-card-section-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.profile-card-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.profile-card-list li {
    padding: 0.25rem 0;
    opacity: 0.85;
}

.profile-card-list li::before {
    content: "• ";
    color: rgba(255, 255, 255, 0.6);
    margin-right: 0.5rem;
}

/* Recommendations Section */
.recommendations-section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: none;
    /* Hidden by default */
}

.recommendations-section.show {
    display: block;
}

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

.recommendation-card {
    background: var(--dark-card);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-3px);
}

.recommendation-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.recommendation-icon {
    font-size: 1.5rem;
}

.recommendation-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.recommendation-content {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.recommendation-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.recommendation-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.recommendation-list li:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-card {
        padding: 2rem 1.5rem;
    }

    .hero-card h1 {
        font-size: 1.5rem;
    }

    .age-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-cards-grid {
        grid-template-columns: 1fr;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .age-overview,
    .unique-profile,
    .recommendations-section {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.age-card,
.profile-card,
.recommendation-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.age-card:nth-child(1) {
    animation-delay: 0.1s;
}

.age-card:nth-child(2) {
    animation-delay: 0.2s;
}

.age-card:nth-child(3) {
    animation-delay: 0.3s;
}

.age-card:nth-child(4) {
    animation-delay: 0.4s;
}

.profile-card:nth-child(1) {
    animation-delay: 0.2s;
}

.profile-card:nth-child(2) {
    animation-delay: 0.3s;
}

.profile-card:nth-child(3) {
    animation-delay: 0.4s;
}

.recommendation-card:nth-child(1) {
    animation-delay: 0.1s;
}

.recommendation-card:nth-child(2) {
    animation-delay: 0.2s;
}

.recommendation-card:nth-child(3) {
    animation-delay: 0.3s;
}