/* Age Calculator Tool Styles */

/* Gradient Text for Tool Title */
.gradient-text-age {
    background: linear-gradient(135deg, #9333ea, #4f46e5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Form Input Styling */
#birthdate {
    transition: all 0.3s ease;
}

#birthdate:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
}

.calculate-btn {
    transition: all 0.3s ease;
}

#today-btn {
    transition: all 0.2s ease;
}

/* Age Result Boxes Styling */
.age-box {
    padding: 1.25rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.age-box:hover {
    transform: translateY(-5px);
}

.years-box {
    background: linear-gradient(135deg, #ede9fe, #e0e7ff);
    border: 1px solid #c7d2fe;
}

.months-box {
    background: linear-gradient(135deg, #e0e7ff, #dbeafe);
    border: 1px solid #bfdbfe;
}

.days-box {
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
    border: 1px solid #bae6fd;
}

.age-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4338ca;
    line-height: 1.2;
}

.age-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Age Details Styling */
.age-details {
    padding: 1.25rem;
    border-radius: 0.5rem;
    background-color: #f5f7ff;
    border: 1px solid #e5e7eb;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    background-color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.detail-label {
    font-weight: 600;
    color: #4b5563;
}

.detail-value {
    font-weight: 600;
    color: #4338ca;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: #f3f4f6;
}

/* Fun Facts Section Styling */
#fun-facts {
    position: relative;
    overflow: hidden;
}

#fun-facts:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%236366f1' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.7;
    z-index: 0;
}

#fun-facts h2, #fun-facts ul {
    position: relative;
    z-index: 1;
}

#fun-facts strong {
    color: #4338ca;
    font-weight: 700;
}

/* Animation for results display */
@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#results-container, #fun-facts {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .age-value {
        font-size: 2rem;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-value {
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    .flex.items-center.justify-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .calculate-btn, #today-btn {
        width: 100%;
    }
} 