:root {
    --bg: #f5f7fa;
    --card: #ffffff;
    --text: #111;
    --primary: #3b82f6;
    --header: #1e293b;
}

/* LAYOUT BASE */
html,
body {
    height: 100dvh;
    width: 100dvw;
}

body {
    display: flex;
    flex-direction: column;
}

/* MAIN EXPANDE */
main {
    flex: 1;
}

/* FOOTER */
.footer {
    background: var(--header);
    color: white;
    text-align: center;
    padding: 1rem;
}

.dark {
    --bg: #0f172a;
    --card: #1e293b;
    --text: #f1f5f9;
}

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

body {
    font-family: system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: 0.3s;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--header);
    color: white;
    padding: 1rem 2rem;
    position: relative;
}

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

.nav-list a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
}

.nav-list a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

button {
    border: none;
    background: var(--primary);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    opacity: 0.85;
}

/* CONTAINER */
.container {
    padding: 1.25rem;
    width: 100dvw;
    margin: auto;
}

.container h2,
.container p {
    text-align: center;
}

/* GRID */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: var(--card);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.4s ease;
}

.video-card {
    overflow: hidden;
}

.video-card iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    display: block;
    border-radius: 6px;
    margin: 0.5rem 0;
}

.video-card {
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
    animation: fadeIn 0.4s ease;
    display: flex;
    flex-direction: column;
}

/* HOVER */
.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.video-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.8rem 1rem 0.4rem;
    line-height: 1.3;
}

/* opcional: limitar título */
.video-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-content {
    padding: 0.5rem 1rem 1rem;
}

/* FORM */
form {
    background: var(--card);
    padding: 2rem;
    border-radius: 10px;
    max-width: 400px;
    margin: auto;
}

form input {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
}

/* SIDEBAR MOBILE */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* BACKDROP */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 999;
}

.sidebar-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
    background: var(--header);
    padding: 1.5rem 1rem;
    transition: transform 0.3s ease;
    transform: translateX(-100%);
    z-index: 1000;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar a,
.sidebar button {
    position: relative;
    overflow: hidden;
}

.sidebar a {
    display: block;
    color: white;
    margin: 1rem 0;
}

/* MOBILE */
@media (max-width: 768px) {
    .nav-list {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

/* ANIMAÇÃO */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.5s linear;
    background: rgba(255, 255, 255, 0.5);
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}


/* SIDEBAR HEADER */
.sidebar h2 {
    color: white;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.5rem;
}

/* LINKS COMO BOTÃO */
.sidebar a,
.sidebar button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
}

/* ÍCONES */
.sidebar .material-icons {
    font-size: 20px;
}

/* HOVER */
.sidebar a:hover,
.sidebar button:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ATIVO (PÁGINA ATUAL) */
.sidebar .active {
    background: var(--primary);
    font-weight: 600;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(20deg);
}

.theme-btn .material-icons {
    transition: 0.3s;
}

.cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.2s;
}

.cv-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.hero {
    text-align: center;
    margin: 2rem 0;
}

.hero img {
    max-width: 800px;
    width: 100%;
}

img,
iframe {
    max-width: 100%;
}