/* Age Calculator Specific Styles */

/* Input Section */
.input-section {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input[type="date"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input[type="date"]:focus {
    outline: none;
    border-color: var(--accent-color);
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-calculate, .btn-reset {
    flex: 1;
    padding: 0.9rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-calculate {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-calculate:hover {
    background-color: #004080;
    transform: translateY(-2px);
}

.btn-reset {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-reset:hover {
    background-color: #1d4011;
    transform: translateY(-2px);
}

/* Results Section */
.results-section {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.results-section h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.results-subtitle {
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* Exact Age Card */
.exact-age-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004080 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

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

.exact-age-card p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.exact-age-card .icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
}

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

.stat-card {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

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

.stat-title {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Countdown Section */
.countdown-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, #1d4011 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    text-align: center;
}

.countdown-section h3 {
    margin-bottom: 0.5rem;
}

.countdown-section p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

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

.countdown-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

.countdown-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.countdown-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: capitalize;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 150px;
    padding: 0.8rem 1.5rem;
    background-color: var(--bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Info Section */
.info-section {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 4px;
}

.info-section h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

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

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 4px;
    border: 1px solid #ccc;
}

.info-label {
    font-weight: 600;
    color: var(--text-color);
}

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

/* Related Calculators */
.related-section {
    margin-top: 2rem;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.related-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

.related-card {
    display: block;
    padding: 1rem;
    background-color: var(--bg-color);
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.related-card:hover {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Formulas Section */
.formulas-section {
    margin-top: 2rem;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.formulas-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.formula-block {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-color);
    border-radius: 4px;
}

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

.formula-content {
    padding: 1rem;
    background-color: var(--white);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.formula-content p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* Example Box Styles */
.example-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0f7 100%);
    border-radius: 4px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 51, 102, 0.1);
}

.example-box h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.example-box h5:first-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.example-box h5:first-child::before {
    content: "💡";
    font-size: 1.3rem;
}

.example-steps {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.example-steps p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.example-steps p:last-child {
    margin-bottom: 0;
    padding-top: 1rem;
    border-top: 2px dashed var(--accent-color);
    font-weight: 600;
}

.example-steps strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* FAQs Section */
.faq-section {
    margin-top: 3rem;
    padding: 2.5rem;
    background-color: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.faq-heading {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.8rem;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.8rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.faq-question::before {
    content: "Q:";
    color: var(--accent-color);
    font-weight: 800;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.faq-answer {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
    padding-left: 2rem;
}

/* EEAT Expert Verification Section */
.expert-section {
    margin-top: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 4px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.1);
}

.expert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.badge-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.expert-heading {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.expert-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.expert-image {
    width: 180px;
    height: 180px;
    border-radius: 4px;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.15);
}

.expert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.expert-name {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.expert-designation {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.expert-bio {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #0077B5;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    width: fit-content;
}

.linkedin-link:hover {
    background-color: #005582;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.linkedin-icon {
    width: 24px;
    height: 24px;
}

/* Print Styles */
@media print {
    .input-section,
    .action-buttons,
    .related-section,
    .formulas-section,
    .faq-section,
    .expert-section {
        display: none;
    }
    
    .countdown-section {
        display: none;
    }
}

/* KaTeX Formula Responsive Styles */
.katex-display {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
}

.katex {
    font-size: 1em !important;
}

.formula-content .katex-display {
    margin: 1rem 0;
}

.example-steps .katex-display {
    margin: 0.8rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        min-width: 100%;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .exact-age-card h3 {
        font-size: 1.5rem;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    /* KaTeX formulas on mobile */
    .katex {
        font-size: 0.9em !important;
    }
    
    .katex-display {
        font-size: 0.85em;
    }
    
    .formulas-section {
        padding: 1.5rem;
    }
    
    .formula-block {
        padding: 1rem;
    }
    
    .example-box {
        padding: 1rem;
    }
    
    .example-steps {
        padding: 1rem;
    }
    
    /* FAQ section responsive */
    .faq-section {
        padding: 2rem;
    }
    
    .faq-heading {
        font-size: 1.6rem;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
    
    .faq-question {
        font-size: 1.1rem;
    }
    
    .faq-answer {
        font-size: 0.95rem;
        padding-left: 1.5rem;
    }
    
    /* Expert section responsive */
    .expert-section {
        padding: 2rem;
    }
    
    .expert-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .expert-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .expert-content {
        text-align: center;
    }
    
    .linkedin-link {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .input-section {
        padding: 1.5rem;
    }
    
    .results-section {
        padding: 1.5rem;
    }
    
    .exact-age-card {
        padding: 1.5rem;
    }
    
    .exact-age-card h3 {
        font-size: 1.3rem;
    }
    
    .countdown-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .countdown-value {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Smaller KaTeX on very small screens */
    .katex {
        font-size: 0.85em !important;
    }
    
    .katex-display {
        font-size: 0.8em;
    }
    
    /* FAQ section mobile */
    .faq-section {
        padding: 1.5rem;
    }
    
    .faq-heading {
        font-size: 1.3rem;
    }
    
    .faq-item {
        padding: 1rem;
    }
    
    .faq-question {
        font-size: 1rem;
    }
    
    .faq-answer {
        font-size: 0.9rem;
        padding-left: 1rem;
    }
    
    /* Expert section mobile */
    .expert-section {
        padding: 1.5rem;
    }
    
    .expert-heading {
        font-size: 1.5rem;
    }
    
    .expert-image {
        width: 120px;
        height: 120px;
    }
    
    .expert-name {
        font-size: 1.2rem;
    }
    
    .expert-designation {
        font-size: 1rem;
    }
    
    .expert-bio {
        font-size: 0.9rem;
    }
}
