/* ==========================================================================
   GoAfter50 — Design System & Main Stylesheet (FASE 1)
   Palette:
   - Asfalto (Fundo): #14171A
   - Areia (Texto): #EDE6D6
   - Âmbar (Destaque): #F2B233
   - Horizonte (Apoio): #2F4B5C
   ========================================================================== */

:root {
    --color-asfalto: #14171A;
    --color-asfalto-light: #1E2328;
    --color-asfalto-card: #1A1F24;
    --color-areia: #EDE6D6;
    --color-areia-muted: #A8A297;
    --color-ambar: #F2B233;
    --color-ambar-hover: #D99B20;
    --color-horizonte: #2F4B5C;
    --color-horizonte-light: #3D6177;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Settings */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-asfalto);
    color: var(--color-areia);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--color-ambar);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-areia);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-areia);
    font-weight: 700;
    line-height: 1.2;
}

.text-amber {
    color: var(--color-ambar);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(20, 23, 26, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(237, 230, 214, 0.08);
    padding: 1rem 2rem;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-areia);
    letter-spacing: -0.5px;
}

.brand-logo .highlight-50 {
    color: var(--color-ambar);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--color-areia-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--color-ambar);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--color-ambar);
    color: var(--color-asfalto);
}

.btn-primary:hover {
    background-color: var(--color-ambar-hover);
    color: var(--color-asfalto);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(242, 178, 51, 0.25);
}

.btn-secondary {
    background-color: var(--color-horizonte);
    color: var(--color-areia);
}

.btn-secondary:hover {
    background-color: var(--color-horizonte-light);
    color: var(--color-areia);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    padding: 5rem 2rem;
    background: radial-gradient(circle at 80% 20%, rgba(47, 75, 92, 0.35) 0%, transparent 60%),
                linear-gradient(180deg, var(--color-asfalto) 0%, var(--color-asfalto-light) 100%);
    border-bottom: 1px solid rgba(237, 230, 214, 0.05);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background-color: rgba(47, 75, 92, 0.4);
    border: 1px solid rgba(47, 75, 92, 0.8);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--color-areia);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-ambar);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-ambar);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--color-ambar); }
}

.hero-title {
    font-size: 3.5rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--color-areia-muted);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
}

.hero-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-photo {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 2px solid rgba(242, 178, 51, 0.2);
}

.hero-photo-placeholder {
    width: 100%;
    max-width: 480px;
    height: 480px;
    border-radius: var(--radius-lg);
    background-color: var(--color-asfalto-card);
    border: 2px dashed rgba(242, 178, 51, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.placeholder-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.placeholder-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-ambar);
    margin-bottom: 0.5rem;
}

.placeholder-subtitle {
    font-size: 0.85rem;
    color: var(--color-areia-muted);
}

/* Course Preview Section */
.courses-preview-section {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--color-areia-muted);
    font-size: 1rem;
}

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

.course-card {
    background-color: var(--color-asfalto-card);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    border: 1px solid rgba(237, 230, 214, 0.08);
    position: relative;
    transition: var(--transition);
}

.course-card:hover {
    border-color: rgba(242, 178, 51, 0.4);
    transform: translateY(-4px);
}

.course-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.tag-free {
    background-color: rgba(47, 75, 92, 0.5);
    color: var(--color-areia);
}

.tag-pro {
    background-color: rgba(242, 178, 51, 0.15);
    color: var(--color-ambar);
}

.course-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.course-description {
    color: var(--color-areia-muted);
    margin-bottom: 2rem;
    min-height: 3rem;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-coming-soon {
    background-color: rgba(237, 230, 214, 0.1);
    color: var(--color-areia-muted);
}

/* Netflix Style Content Rows */
.content-row-section {
    max-width: 1400px;
    margin: 3.5rem auto;
    padding: 0 2rem;
}

.row-header {
    margin-bottom: 1.25rem;
}

.row-title {
    font-size: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.row-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 4px;
    background-color: var(--color-ambar);
    border-radius: 2px;
}

.row-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Content Cards */
.content-card {
    background-color: var(--color-asfalto-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(237, 230, 214, 0.05);
    transition: var(--transition);
}

.content-card:hover {
    transform: scale(1.03);
    border-color: rgba(242, 178, 51, 0.3);
    z-index: 2;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.card-media {
    position: relative;
    aspect-ratio: 16/9;
    background-color: var(--color-asfalto-light);
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

.card-image-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-horizonte) 0%, var(--color-asfalto-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.fallback-cat {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-areia);
    opacity: 0.8;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 23, 26, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.content-card:hover .card-overlay {
    opacity: 1;
}

.play-btn {
    background-color: var(--color-ambar);
    color: var(--color-asfalto);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
}

.card-body {
    padding: 1.25rem;
}

.card-category {
    font-size: 0.75rem;
    color: var(--color-ambar);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    display: block;
    margin-bottom: 0.4rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-areia);
    line-height: 1.4;
}

/* Single Post Page */
.single-post-container, .single-page-container {
    max-width: 860px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.post-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.post-category-badge {
    display: inline-block;
    color: var(--color-ambar);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.post-title {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.post-meta {
    color: var(--color-areia-muted);
    font-size: 0.95rem;
}

.post-featured-image {
    margin-bottom: 3rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.entry-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-areia);
}

.entry-content p {
    margin-bottom: 1.75rem;
}

.entry-content h2, .entry-content h3 {
    margin: 2.5rem 0 1rem 0;
}

.post-video-embed-section {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(237, 230, 214, 0.1);
}

.video-embed-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background-color: #000;
}

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

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(237, 230, 214, 0.1);
}

/* Footer */
.site-footer {
    background-color: var(--color-asfalto-light);
    border-top: 1px solid rgba(237, 230, 214, 0.08);
    padding: 4rem 2rem 2rem 2rem;
    margin-top: 6rem;
}

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

.footer-tagline {
    color: var(--color-areia-muted);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    max-width: 450px;
}

.footer-meta {
    text-align: right;
    font-size: 0.85rem;
    color: var(--color-areia-muted);
}

.footer-subtext {
    color: rgba(237, 230, 214, 0.4);
    margin-top: 0.25rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 2.5rem auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.75rem;
    }
}

@media (max-width: 600px) {
    .site-header {
        padding: 1rem;
    }

    .nav-menu {
        display: none; /* Simplificado no mobile FASE 1 */
    }

    .hero-section {
        padding: 3rem 1rem;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .row-slider {
        grid-template-columns: 1fr;
    }

    .post-title {
        font-size: 2rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-meta {
        text-align: center;
    }
}
