/**
 * AI SEO Optimization Styles
 * Styles for AI-friendly components
 */

/* ============================================
   DIRECT ANSWER BOX
   ============================================ */

.direct-answer-box {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-left: 5px solid #2196F3;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
}

.answer-icon {
    font-size: 2.5rem;
    color: #2196F3;
    flex-shrink: 0;
}

.answer-content h3 {
    font-family: 'Fredoka', sans-serif !important;
    color: #2196F3 !important;
    font-size: 1.3rem !important;
    margin-bottom: 0.75rem !important;
    /* Override global h3 gradient from design-system.css */
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #2196F3 !important;
    background-clip: initial !important;
}

.answer-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #2d3748;
}

.answer-content strong {
    color: #1976D2;
}

/* ============================================
   AT-A-GLANCE BOX
   ============================================ */

.at-a-glance {
    background: white;
    border: 2px solid #2196F3;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.at-a-glance h3 {
    font-family: 'Fredoka', sans-serif !important;
    color: #2196F3 !important;
    font-size: 1.4rem !important;
    margin-bottom: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    /* Override global h3 gradient from design-system.css */
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #2196F3 !important;
    background-clip: initial !important;
}

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

.glance-item {
    padding: 1rem;
    background: #F5F5F5;
    border-radius: 6px;
    text-align: center;
}

.glance-label {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.glance-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2196F3;
    font-family: 'Fredoka', sans-serif;
}

/* ============================================
   AUTHOR BOX
   ============================================ */

.author-box-ai {
    background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.author-info {
    width: 100%;
}

.author-name {
    font-family: 'Fredoka', sans-serif !important;
    color: #2196F3 !important;
    font-size: 1.5rem !important;
    margin-bottom: 0.25rem !important;
    /* Override global h3 gradient from design-system.css */
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #2196F3 !important;
    background-clip: initial !important;
}

.author-name-link {
    color: #2196F3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-name-link:hover {
    color: #1976D2;
    text-decoration: underline;
}

.author-title {
    color: #718096;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.author-credentials {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.author-credentials li {
    font-size: 0.9rem;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-credentials i {
    color: #2196F3;
}

.author-bio {
    margin: 1rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568;
}

.author-contact {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #E2E8F0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.author-contact a {
    color: #2196F3;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.author-contact a:hover {
    color: #1976D2;
    text-decoration: underline;
}

.view-profile-btn {
    background: #2196F3;
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

.view-profile-btn:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.4);
    text-decoration: none !important;
}

/* ============================================
   EXPERIENCE BOX
   ============================================ */

.experience-box {
    background: #FFF9E6;
    border-left: 5px solid #FFA726;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(255, 167, 38, 0.1);
}

.experience-box h3 {
    font-family: 'Fredoka', sans-serif !important;
    color: #F57C00 !important;
    font-size: 1.2rem !important;
    margin-bottom: 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    /* Override global h3 gradient from design-system.css */
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #F57C00 !important;
    background-clip: initial !important;
}

.experience-box p {
    font-size: 1rem;
    line-height: 1.7;
    color: #2d3748;
}

.experience-box strong {
    color: #F57C00;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-section > h2 {
    font-family: 'Fredoka', sans-serif !important;
    color: #2196F3 !important;
    font-size: 1.8rem !important;
    margin-bottom: 2rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    /* Override global h2 gradient from design-system.css */
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #2196F3 !important;
    background-clip: initial !important;
}

.faq-item {
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 1rem;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 0;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.3s;
    font-family: 'Rubik', sans-serif;
}

.faq-question:hover {
    color: #2196F3;
}

.faq-question span {
    flex: 1;
}

.faq-question i {
    color: #2196F3;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 0 1.5rem 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer ul,
.faq-answer ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-answer strong {
    color: #2196F3;
}

/* ============================================
   INFO BOX (Enhanced)
   ============================================ */

.info-box {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-left: 5px solid #4CAF50;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.1);
}

.info-box h3 {
    font-family: 'Fredoka', sans-serif !important;
    color: #2E7D32 !important;
    font-size: 1.3rem !important;
    margin-bottom: 1rem !important;
    /* Override global h3 gradient from design-system.css */
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #2E7D32 !important;
    background-clip: initial !important;
}

.info-box p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.info-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.info-box strong {
    color: #2E7D32;
}

/* ============================================
   WARNING BOX
   ============================================ */

.warning-box {
    background: #FFF3E0;
    border-left: 5px solid #FF9800;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.1);
}

.warning-box h3 {
    font-family: 'Fredoka', sans-serif !important;
    color: #E65100 !important;
    font-size: 1.3rem !important;
    margin-bottom: 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    /* Override global h3 gradient from design-system.css */
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #E65100 !important;
    background-clip: initial !important;
}

.warning-box h3::before {
    content: "⚠";
    font-size: 1.5rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .direct-answer-box {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .answer-icon {
        font-size: 2rem;
    }

    .answer-content h3 {
        font-size: 1.15rem !important;
    }

    .answer-content p {
        font-size: 1rem;
    }

    .author-box-ai {
        padding: 1.5rem;
    }

    .author-name {
        font-size: 1.3rem !important;
    }

    .author-credentials {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .author-contact {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .view-profile-btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    .at-a-glance {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .at-a-glance h3 {
        font-size: 1.25rem !important;
    }

    .glance-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .glance-value {
        font-size: 1.15rem;
    }

    .glance-label {
        font-size: 0.8rem;
    }

    .faq-section {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .faq-section > h2 {
        font-size: 1.5rem !important;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1rem 0;
    }

    .faq-answer {
        font-size: 0.95rem;
    }

    .experience-box,
    .info-box,
    .warning-box {
        padding: 1.25rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .direct-answer-box {
        padding: 1rem;
        gap: 0.75rem;
        margin: 1rem 0;
        border-left-width: 4px;
    }

    .answer-icon {
        font-size: 1.75rem;
    }

    .answer-content h3 {
        font-size: 1.05rem !important;
        margin-bottom: 0.5rem !important;
    }

    .answer-content p {
        font-size: 0.95rem;
    }

    .author-box-ai {
        padding: 1rem;
    }

    .author-name {
        font-size: 1.15rem !important;
    }

    .author-title {
        font-size: 0.9rem;
    }

    .author-credentials li {
        font-size: 0.85rem;
    }

    .author-bio {
        font-size: 0.9rem;
    }

    .at-a-glance {
        padding: 1rem;
    }

    .at-a-glance h3 {
        font-size: 1.15rem !important;
        margin-bottom: 1rem !important;
    }

    .glance-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .glance-item {
        padding: 0.75rem;
    }

    .glance-value {
        font-size: 1.1rem;
    }

    .glance-label {
        font-size: 0.75rem;
    }

    .faq-section {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    .faq-section > h2 {
        font-size: 1.3rem !important;
        gap: 0.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 0.875rem 0;
        gap: 0.75rem;
    }

    .faq-question i {
        font-size: 1rem;
    }

    .faq-answer {
        font-size: 0.9rem;
        padding: 0 0 1.25rem 0;
    }

    .faq-answer ul,
    .faq-answer ol {
        margin-left: 1.25rem;
    }

    .experience-box {
        padding: 1rem 1.25rem;
        margin: 1.5rem 0;
        border-left-width: 4px;
    }

    .experience-box h3 {
        font-size: 1.05rem !important;
    }

    .experience-box p {
        font-size: 0.95rem;
    }

    .info-box,
    .warning-box {
        padding: 1rem 1.25rem;
        border-left-width: 4px;
    }

    .info-box h3,
    .warning-box h3 {
        font-size: 1.05rem !important;
    }
}

/* Touch improvements for all mobile devices */
@media (max-width: 768px) and (pointer: coarse) {
    .faq-question {
        min-height: 44px;
        padding: 1rem 0.5rem;
    }

    .toc-list a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .view-profile-btn,
    .author-contact a {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
}

/* Very small screens (320px - older phones) */
@media (max-width: 360px) {
    .direct-answer-box {
        padding: 0.875rem;
    }

    .author-box-ai {
        padding: 0.875rem;
    }

    .at-a-glance {
        padding: 0.875rem;
    }

    .faq-section {
        padding: 0.875rem;
    }

    .faq-question {
        font-size: 0.9rem;
    }

    .faq-answer {
        font-size: 0.875rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .direct-answer-box,
    .at-a-glance,
    .author-box-ai,
    .experience-box,
    .faq-section {
        page-break-inside: avoid;
    }

    .faq-answer {
        display: block !important;
    }

    .faq-question i {
        display: none;
    }
}
