/* Premium Age Calculator Styles */
:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: #4895ef;
    --secondary: #3f37c9;
    --accent: #f72585;
    --success: #4cc9f0;
    --dark: #1b1b2f;
    --light: #ffffff;
    --gray: #64748b;
    --gray-light: #f8fafc;
    --border: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius: 24px;
    --radius-sm: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.premium-age-calculator {
    max-width: 900px;
    margin: 30px auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.calculator-card {
    background: var(--light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.calculator-card:hover {
    box-shadow: 0 30px 60px -15px rgba(67, 97, 238, 0.2);
}

.card-brand {
    padding: 16px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-body {
    padding: 35px 30px;
}

.date-input-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
    letter-spacing: 0.3px;
}

.input-wrapper label i {
    color: var(--primary);
    font-size: 16px;
    background: var(--gray-light);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.smart-input-group {
    display: flex;
    gap: 12px;
    position: relative;
}

.smart-date-input {
    flex: 1;
    height: 60px;
    padding: 0 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    background: var(--light);
    color: var(--dark);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.smart-date-input:hover {
    border-color: var(--primary-light);
}

.smart-date-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.calendar-trigger {
    width: 60px;
    height: 60px;
    border: none;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    color: var(--primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03), 0 0 0 1px rgba(67, 97, 238, 0.1);
    border: 1px solid rgba(67, 97, 238, 0.2);
}

.calendar-trigger:hover {
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.25);
    border-color: transparent;
}

.calendar-trigger i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.input-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--gray);
    font-size: 13px;
    background: var(--gray-light);
    padding: 8px 16px;
    border-radius: 30px;
    width: fit-content;
    border: 1px solid var(--border);
}

.input-hint i {
    color: var(--primary);
    font-size: 14px;
}

.calculate-button {
    width: 100%;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px -5px rgba(67, 97, 238, 0.4);
    letter-spacing: 0.3px;
}

.calculate-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.calculate-button:hover::before {
    left: 100%;
}

.calculate-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 35px -8px rgba(67, 97, 238, 0.5);
    background: linear-gradient(135deg, var(--primary-dark), #2a3f9e);
}

.btn-text {
    font-size: 18px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.calculate-button:hover .btn-icon {
    transform: translateX(5px) scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.btn-icon i {
    font-size: 16px;
}

.result-container {
    min-height: 300px;
    background: linear-gradient(145deg, var(--gray-light), #ffffff);
    border-radius: var(--radius-sm);
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.02);
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: 240px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(67, 97, 238, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner span {
    color: var(--gray);
    font-size: 15px;
    font-weight: 500;
}

.result-content {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Quick Links Section */
.quick-links {
    padding: 20px 30px 30px;
    background: var(--light);
    border-top: 1px solid var(--border);
}

.links-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--gray);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.quick-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(145deg, var(--gray-light), #ffffff);
    border-radius: 12px;
    color: var(--dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.quick-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(67, 97, 238, 0.3);
    border-color: transparent;
}

.quick-link i {
    font-size: 18px;
    color: var(--primary);
    transition: all 0.2s ease;
}

.quick-link:hover i {
    color: white;
    transform: scale(1.1);
}

/* Result Display Styles */
.age-result-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.age-main-result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.age-years {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}

.age-years span {
    font-size: 24px;
    opacity: 0.9;
    font-weight: 400;
}

.age-detail {
    font-size: 18px;
    opacity: 0.95;
}

.age-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 25px;
    background: var(--gray-light);
}

.age-grid-item {
    background: white;
    padding: 20px 15px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.age-grid-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.1);
}

.age-grid-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.age-grid-label {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.age-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 25px;
    justify-content: center;
    border-top: 1px solid var(--border);
}

.age-badge {
    background: white;
    padding: 10px 18px;
    border-radius: 40px;
    font-size: 13px;
    color: var(--dark);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.age-badge:hover {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.02);
}

.age-badge i {
    color: var(--primary);
    font-size: 14px;
}

/* How It Works Section */
.how-it-works {
    margin-top: 40px;
    padding: 35px 30px;
    background: var(--light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.section-title i {
    color: var(--primary);
    font-size: 30px;
    background: var(--gray-light);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.feature-block {
    padding: 25px;
    background: var(--gray-light);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.feature-block:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: transparent;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 28px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-block:hover .feature-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.feature-block h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: inherit;
}

.feature-block p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray);
    transition: all 0.3s ease;
}

.feature-block:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.calculation-note {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #fff5f5, #fff);
    border-radius: 20px;
    border-left: 4px solid var(--accent);
    margin-top: 25px;
}

.calculation-note i {
    color: var(--accent);
    font-size: 28px;
    flex-shrink: 0;
    background: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(247, 37, 133, 0.1);
}

.calculation-note p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--dark);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .premium-age-calculator {
        margin: 20px;
    }
    
    .card-body {
        padding: 25px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .age-years {
        font-size: 36px;
    }
    
    .age-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .smart-input-group {
        flex-direction: column;
    }
    
    .calendar-trigger {
        width: 100%;
        height: 50px;
    }
    
    .smart-date-input {
        height: 50px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .age-grid {
        grid-template-columns: 1fr;
    }
    
    .calculation-note {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .btn-text {
        font-size: 16px;
    }
}