/* =========================================================
   STYLES.CSS — Estilos Compartilhados | Meu Aprendizado Online
   ========================================================= */

/* --- CSS Variables & Reset --- */
:root {
    --bg-main: #0B081E;
    --bg-card: #1D1843;
    --bg-card-hover: #261F58;
    --bg-footer: #060410;
    --cyan: #00E5FF;
    --blue: #00B2FE;
    --text-white: #FFFFFF;
    --text-gray: #B3B0C8;
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --radius-lg: 24px;
    --radius-md: 16px;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
html { scroll-behavior: smooth; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- HEADER --- */
header {
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.5px;
}
.logo img {
    filter: drop-shadow(0 0 8px rgba(0,229,255,0.4));
}
.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}
.nav-links a {
    color: var(--text-gray);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--cyan); }

/* --- FOOTER --- */
footer {
    background: var(--bg-footer);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.03);
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-col h4 {
    color: var(--text-white);
    font-size: 15px;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.footer-col p { color: var(--text-gray); font-size: 14px; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-gray); font-size: 14px; transition: color 0.25s; }
.footer-col ul li a:hover { color: var(--cyan); }

/* SOCIAL FLIP CARD */
.social-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0B081E;
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    height: 50px;
    width: 200px;
    margin-top: 24px;
}
.social-card::before, .social-card::after {
    content: "";
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    transition: 0.25s linear;
    z-index: 1;
}
.social-card::before { left: 0; background-color: var(--cyan); }
.social-card::after  { right: 0; background-color: var(--blue); }
.social-card:hover { box-shadow: 0 14px 28px rgba(0,0,0,0.35); border-color: rgba(0,229,255,0.35); }
.social-card:hover .social-card-label { opacity: 0; }
.social-card:hover::before { opacity: 0.5; transform: translateY(-100%); }
.social-card:hover::after  { opacity: 0.5; transform: translateY(100%); }
.social-card-label {
    position: absolute;
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    color: var(--bg-main);
    font-size: 14px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
    opacity: 1; transition: opacity 0.25s; z-index: 2; pointer-events: none;
}
.social-card .social-link {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 25%; height: 100%;
    color: var(--cyan);
    transition: 0.25s;
}
.social-card .social-link svg { width: 19px; height: 19px; }
.social-card .social-link:hover { background-color: rgba(0,229,255,0.15); color: #fff; animation: social-bounce 0.4s linear; }
@keyframes social-bounce {
    40% { transform: scale(1.4); } 60% { transform: scale(0.8); }
    80% { transform: scale(1.2); } 100% { transform: scale(1); }
}

/* FOOTER BOTTOM */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 28px;
    text-align: center;
}
.footer-bottom p { color: var(--text-gray); font-size: 13px; }

/* --- PAGE CONTENT (páginas de políticas) --- */
.page-content {
    padding: 50px 0 100px;
    max-width: 800px;
}
.page-content h1 { font-size: 38px; color: var(--cyan); margin-bottom: 30px; font-weight: 800; letter-spacing: -0.5px; }
.page-content h2 { color: var(--cyan); font-size: 20px; margin: 30px 0 14px; font-weight: 700; }
.page-content p { color: var(--text-gray); margin-bottom: 16px; font-size: 16px; }
.page-content a { color: var(--blue); }
.page-content a:hover { text-decoration: underline; }
.back-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--cyan); font-weight: 600; margin-bottom: 40px;
    font-size: 15px; transition: gap 0.2s;
}
.back-link:hover { gap: 14px; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    header { flex-direction: column; gap: 18px; }
    .nav-links { gap: 24px; flex-wrap: wrap; justify-content: center; }
    .nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
    .page-content h1 { font-size: clamp(28px, 8vw, 38px); overflow-wrap: anywhere; }
    .page-content { overflow-wrap: anywhere; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
