/**
 * A Ciência dos Excluídos — Landing Page Styles
 * All selectors prefixed with .ce- to avoid theme collisions
 *
 * @package ThemeGetUp
 */

/* ==========================================================================
   CUSTOM PROPERTIES
   ========================================================================== */
.ce-page {
    --ce-dark: #0a1628;
    --ce-dark-mid: #111d35;
    --ce-dark-light: #162040;
    --ce-gold: #f5c518;
    --ce-gold-hover: #ffd84d;
    --ce-gold-dark: #c9a00e;
    --ce-green: #2d6a4f;
    --ce-red: #d62828;
    --ce-blue: #0369a1;
    --ce-purple: #1a0a3e;
    --ce-white: #f8fafc;
    --ce-cream: #fefcf3;
    --ce-gray-light: #f1f5f9;
    --ce-gray: #94a3b8;
    --ce-text: #1e293b;
    --ce-radius: 12px;
    --ce-radius-sm: 8px;
    --ce-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --ce-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   HEADER — keep default (light), no override needed for light hero
   ========================================================================== */

/* ==========================================================================
   BASE / RESETS
   ========================================================================== */
.ce-page {
    overflow-x: hidden;
}

.ce-page section {
    position: relative;
}

.ce-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ce-section-title {
    font-family: 'Bebas Neue', var(--font-display, 'Space Grotesk'), sans-serif;
    font-size: 2.2rem;
    letter-spacing: 0.04em;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    color: var(--ce-text);
}

.ce-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--ce-gold);
    border-radius: 2px;
}

/* ==========================================================================
   COMIC DECORATIONS
   ========================================================================== */
.ce-comic-word {
    position: absolute;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    opacity: 0.04;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    line-height: 1;
    color: var(--ce-gold-dark);
}

/* ==========================================================================
   SECTION 1 — HERO (light)
   ========================================================================== */
.ce-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, #fffdf5 0%, #fef9e7 40%, #fdf4d8 70%, #fefcf3 100%);
    color: var(--ce-text);
    padding-top: calc(var(--header-h, 80px) + 2rem);
    padding-bottom: 4rem;
    overflow: hidden;
}

/* Subtle warm pattern overlay */
.ce-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 60%, rgba(245, 197, 24, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(214, 40, 40, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(45, 106, 79, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.ce-hero .ce-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.ce-hero__text {
    text-align: center;
    max-width: 700px;
}

.ce-hero__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    line-height: 1.05;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
    font-weight: 400;
    color: var(--ce-dark);
}

.ce-hero__title span {
    color: var(--ce-gold-dark);
    display: block;
    font-size: 1.3em;
}

.ce-hero__subtitle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.12em;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.ce-hero__tagline {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.ce-hero__authors {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.ce-hero__authors strong {
    color: var(--ce-text);
    font-weight: 600;
}

.ce-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.5rem;
    background: var(--ce-gold);
    color: var(--ce-dark);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    border: 3px solid var(--ce-dark);
    border-radius: var(--ce-radius);
    box-shadow: 4px 4px 0 var(--ce-dark);
    transition: all 0.2s ease;
    font-weight: 400;
    cursor: pointer;
}

.ce-btn-primary:hover {
    background: var(--ce-gold-hover);
    color: var(--ce-dark);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ce-dark);
}

.ce-btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--ce-dark);
}

/* Book cover — 3D book effect */
.ce-hero__cover {
    width: 260px;
    flex-shrink: 0;
    perspective: 1200px;
    position: relative;
}

.ce-hero__book {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-12deg);
    transition: transform 0.5s ease;
}

.ce-hero__book:hover {
    transform: rotateY(-5deg);
}

/* Front cover (the image) */
.ce-hero__book img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px 8px 8px 2px;
    box-shadow:
        6px 6px 24px rgba(0, 0, 0, 0.25),
        2px 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

/* Book spine — left edge */
.ce-hero__book::before {
    content: '';
    position: absolute;
    top: 1%;
    left: -1px;
    width: 20px;
    height: 98%;
    background: linear-gradient(90deg, #1a1520 0%, #2a2035 40%, #1a1520 100%);
    transform: rotateY(60deg);
    transform-origin: left center;
    z-index: 1;
    border-radius: 2px 0 0 2px;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
}

/* Pages — right side thickness */
.ce-hero__book::after {
    content: '';
    position: absolute;
    top: 2%;
    right: -6px;
    width: 6px;
    height: 96%;
    background: linear-gradient(90deg,
        #e8e0d0 0%,
        #f5efe5 30%,
        #e8e0d0 60%,
        #ddd5c5 100%);
    border-radius: 0 2px 2px 0;
    z-index: 1;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Glow behind book */
.ce-hero__book-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130%;
    height: 130%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(245, 197, 24, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Reflection under book */
.ce-hero__book-reflect {
    width: 90%;
    height: 60px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(0,0,0,0.04) 0%, transparent 100%);
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 100%);
    transform: scaleY(-0.3) perspective(400px) rotateX(20deg);
    transform-origin: top center;
    border-radius: 0 0 8px 8px;
    pointer-events: none;
}

/* ==========================================================================
   SECTION 2 — SOBRE O PROJETO (white)
   ========================================================================== */
.ce-about {
    padding: 5rem 0;
    background: #fff;
    color: var(--ce-text);
}

.ce-about__content {
    max-width: 800px;
}

.ce-about__content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: #334155;
}

.ce-about__content p:last-child {
    margin-bottom: 0;
}

.ce-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.ce-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 2px solid;
}

.ce-badge--gold {
    border-color: var(--ce-gold);
    color: #92400e;
    background: rgba(245, 197, 24, 0.1);
}

.ce-badge--green {
    border-color: var(--ce-green);
    color: var(--ce-green);
    background: rgba(45, 106, 79, 0.08);
}

.ce-badge--red {
    border-color: var(--ce-red);
    color: var(--ce-red);
    background: rgba(214, 40, 40, 0.08);
}

.ce-badge--blue {
    border-color: var(--ce-blue);
    color: var(--ce-blue);
    background: rgba(3, 105, 161, 0.08);
}

/* ==========================================================================
   SECTION 3 — CONTEÚDO DO LIVRO (cream/warm)
   ========================================================================== */
.ce-content {
    padding: 5rem 0;
    background: var(--ce-cream);
    color: var(--ce-text);
}

.ce-turma-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.ce-turma-card {
    background: #fff;
    border-radius: var(--ce-radius);
    overflow: hidden;
    box-shadow: var(--ce-shadow);
    border-top: 5px solid var(--ce-gold);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ce-turma-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ce-shadow-lg);
}

.ce-turma-card--green { border-top-color: var(--ce-green); }
.ce-turma-card--red { border-top-color: var(--ce-red); }
.ce-turma-card--gold { border-top-color: var(--ce-gold); }
.ce-turma-card--blue { border-top-color: var(--ce-blue); }

.ce-turma-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ce-turma-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
}

.ce-turma-card--green .ce-turma-badge { background: var(--ce-green); }
.ce-turma-card--red .ce-turma-badge { background: var(--ce-red); }
.ce-turma-card--gold .ce-turma-badge { background: #b8960f; }
.ce-turma-card--blue .ce-turma-badge { background: var(--ce-blue); }

.ce-turma-header h3 {
    font-family: var(--font-display, 'Space Grotesk'), sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ce-text);
    margin: 0;
}

.ce-hq-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ce-hq-list li {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: background 0.15s;
}

.ce-hq-list li:last-child {
    border-bottom: none;
}

.ce-hq-list li:hover {
    background: #fefcf3;
}

.ce-hq-list li::before {
    content: '💬';
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ==========================================================================
   SECTION 4 — PREFÁCIO (dark accent)
   ========================================================================== */
.ce-prefacio {
    padding: 5rem 0;
    background: var(--ce-dark);
    color: #fff;
}

.ce-prefacio .ce-section-title {
    color: #fff;
}

.ce-blockquote {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem 2.5rem 2.5rem 3rem;
    border-left: 4px solid var(--ce-gold);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0 var(--ce-radius) var(--ce-radius) 0;
    position: relative;
}

.ce-blockquote__icon {
    position: absolute;
    top: 1.5rem;
    left: -1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--ce-gold);
    color: var(--ce-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.ce-blockquote p {
    font-size: 1.15rem;
    line-height: 1.9;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.ce-blockquote__author {
    font-size: 0.95rem;
    color: var(--ce-gold);
    font-style: normal;
    font-weight: 600;
}

.ce-blockquote__author span {
    display: block;
    font-weight: 400;
    color: var(--ce-gray);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ==========================================================================
   SECTION 5 — SOBRE AS AUTORAS (white)
   ========================================================================== */
.ce-authors {
    padding: 5rem 0;
    background: #fff;
    color: var(--ce-text);
}

.ce-authors-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ce-author-card {
    background: var(--ce-white);
    border-radius: var(--ce-radius);
    padding: 2.5rem;
    box-shadow: var(--ce-shadow);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ce-author-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ce-shadow-lg);
}

.ce-author-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 3px solid var(--ce-gold);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ce-gray);
    background: var(--ce-gray-light);
    overflow: hidden;
}

.ce-author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ce-author-photo svg {
    width: 40px;
    height: 40px;
    opacity: 0.4;
}

.ce-author-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
    color: var(--ce-dark);
    font-weight: 400;
}

.ce-author-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #64748b;
}

/* ==========================================================================
   SECTION 6 — DADOS TÉCNICOS (cream)
   ========================================================================== */
.ce-technical {
    padding: 5rem 0;
    background: var(--ce-cream);
    color: var(--ce-text);
}

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

.ce-data-item {
    background: #fff;
    border-radius: var(--ce-radius-sm);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border-left: 3px solid var(--ce-gold);
}

.ce-data-item dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ce-gray);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.ce-data-item dd {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ce-text);
    margin: 0;
}

/* ==========================================================================
   SECTION 7 — DOWNLOAD (dark accent)
   ========================================================================== */
.ce-download {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--ce-dark) 0%, var(--ce-purple) 100%);
    color: #fff;
    text-align: center;
}

.ce-download .ce-section-title {
    color: #fff;
    display: block;
    text-align: center;
}

.ce-download .ce-section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.ce-download__text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.ce-download .ce-btn-primary {
    font-size: 1.4rem;
    padding: 1.15rem 3rem;
    margin-bottom: 3rem;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.15);
}

.ce-download .ce-btn-primary:hover {
    box-shadow: 6px 6px 0 rgba(255, 255, 255, 0.2);
}

.ce-download .ce-btn-primary:active {
    box-shadow: 2px 2px 0 rgba(255, 255, 255, 0.1);
}

.ce-share {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.ce-share__label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 0.5rem;
}

.ce-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.ce-share__btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.ce-share__btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.ce-share__btn--whatsapp:hover { background: #25D366; }
.ce-share__btn--twitter:hover { background: #1DA1F2; }
.ce-share__btn--facebook:hover { background: #1877F2; }

/* ==========================================================================
   SECTION 8 — PAGE FOOTER (dark)
   ========================================================================== */
.ce-page-footer {
    padding: 3rem 0;
    background: var(--ce-dark-mid);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ce-page-footer__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ce-page-footer__logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.ce-page-footer__logo span {
    color: var(--ce-gold);
}

.ce-page-footer__divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
}

.ce-page-footer a {
    color: var(--ce-gold);
    text-decoration: none;
    transition: color 0.2s;
}

.ce-page-footer a:hover {
    color: var(--ce-gold-hover);
}

.ce-page-footer p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE — TABLET (768px+)
   ========================================================================== */
@media (min-width: 768px) {
    .ce-section-title {
        font-size: 2.6rem;
    }

    .ce-hero__title {
        font-size: 4rem;
    }

    .ce-hero__subtitle {
        font-size: 1.6rem;
    }

    .ce-turma-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ce-authors-grid {
        flex-direction: row;
    }

    .ce-author-card {
        flex: 1;
    }

    .ce-data-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   RESPONSIVE — DESKTOP (1024px+)
   ========================================================================== */
@media (min-width: 1024px) {
    .ce-hero .ce-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .ce-hero__text {
        text-align: left;
        max-width: 600px;
    }

    .ce-hero__title {
        font-size: 4.5rem;
    }

    .ce-hero__cover {
        width: 320px;
    }

    .ce-about {
        padding: 6rem 0;
    }

    .ce-content {
        padding: 6rem 0;
    }

    .ce-prefacio {
        padding: 6rem 0;
    }

    .ce-blockquote {
        padding: 3rem 3rem 3rem 4rem;
    }

    .ce-blockquote p {
        font-size: 1.25rem;
    }

    .ce-authors {
        padding: 6rem 0;
    }

    .ce-technical {
        padding: 6rem 0;
    }

    .ce-download {
        padding: 6rem 0;
    }
}

/* ==========================================================================
   RESPONSIVE — LARGE DESKTOP (1280px+)
   ========================================================================== */
@media (min-width: 1280px) {
    .ce-hero__title {
        font-size: 5rem;
    }

    .ce-hero__cover {
        width: 360px;
    }

    .ce-data-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* ==========================================================================
   SMOOTH SCROLL
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   FOCUS STYLES
   ========================================================================== */
.ce-page a:focus-visible,
.ce-page button:focus-visible {
    outline: 2px solid var(--ce-gold);
    outline-offset: 3px;
}
