/* ============================================
   Aterosclerose.org - Glossário Médico
   Design: Profissional, Limpo e Responsivo
   ============================================ */

:root {
    --primary-color: #1e40af;
    --secondary-color: #3b82f6;
    --accent-color: #dc2626;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #059669;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* ============================================
   Header e Navegação
   ============================================ */

header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.logo p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    font-size: 0.95rem;
}

nav a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ============================================
   Container Principal
   ============================================ */

.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* ============================================
   Breadcrumb
   ============================================ */

.breadcrumb {
    background: var(--bg-white);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-light);
    margin: 0 0.5rem;
}

/* ============================================
   Artigo Principal
   ============================================ */

article {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

article h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

article h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary-color);
}

article h3 {
    font-size: 1.35rem;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

article p {
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    font-size: 1.05rem;
}

article ul, article ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

article li {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

article strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   Destaque / Alert Box
   ============================================ */

.alert-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.alert-box h3 {
    color: #92400e;
    margin-top: 0;
    font-size: 1.2rem;
}

.alert-box p {
    color: #78350f;
    margin-bottom: 0;
}

/* ============================================
   Vídeo Embed
   ============================================ */

.video-container {
    margin: 2.5rem 0;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.video-container h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 0;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   FAQ Section
   ============================================ */

.faq-section {
    margin-top: 3rem;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
}

.faq-section h2 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.faq-item {
    background: var(--bg-white);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.faq-item h3 {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: var(--text-dark);
    margin-bottom: 0;
    font-size: 1rem;
}

/* ============================================
   CTA e Links para Site Principal
   ============================================ */

.cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin: 3rem 0;
    text-align: center;
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.3);
}

.cta-box h3 {
    color: white;
    font-size: 1.75rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ============================================
   Navegação Entre Páginas
   ============================================ */

.page-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-nav-link {
    flex: 1;
    min-width: 200px;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.page-nav-link:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.page-nav-link .label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
}

.page-nav-link .title {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ============================================
   Footer
   ============================================ */

footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

/* ============================================
   Home Page Grid
   ============================================ */

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

.topic-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: var(--secondary-color);
}

.topic-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    margin-top: 0;
}

.topic-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.topic-card .read-more {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   Responsividade
   ============================================ */

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    nav ul {
        justify-content: center;
        gap: 1rem;
    }
    
    article {
        padding: 2rem 1.5rem;
    }
    
    article h1 {
        font-size: 2rem;
    }
    
    article h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .page-navigation {
        flex-direction: column;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    article h1 {
        font-size: 1.75rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cta-box {
        padding: 1.5rem;
    }
    
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}