/* Variáveis */
:root {
    --verde-brasil: #15803d;
    --amarelo-brasil: #facc15;
    --azul-brasil: #1d4ed8;
    --cinza-estrada: #1e293b;
    --bege: #f8fafc;
    --texto-escuro: #0f172a;
    --texto-claro: #64748b;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--texto-escuro);
    line-height: 1.6;
    background-color: #ffffff;
}

html {
    scroll-behavior: smooth;
}

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

h2 {
    font-size: 2.25rem;
    margin-bottom: 30px;
    color: var(--azul-brasil);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--verde-brasil), var(--amarelo-brasil));
}

.description {
    font-size: 1.125rem;
    color: var(--texto-claro);
    max-width: 800px;
}

.btn {
    display: inline-block;
    background: var(--azul-brasil);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(29, 78, 216, 0.4);
    filter: brightness(1.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--azul-brasil), #1e40af);
}

/* Header */
.header {
    background: transparent;
    transition: var(--transition);
    position: fixed;
    width: 100%;
    z-index: 100;
}

.header.scrolled {
    background: rgba(15, 23, 42, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    padding: 5px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container img {
    height: 50px;
}

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

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.4));
}

.hero-content h1 {
    position: relative;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 20px;
}

.hero-content p {
    position: relative;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-content .btn {
    position: relative;
    font-size: 1.1rem;
}

/* Seções */
.sobre, .novidades, .contato, .video-tutorial, .mods-free {
    background-color: white;
}

.downloads, .galeria {
    background-color: var(--bege);
}

.download-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid #f1f5f9;
}

.download-card h3 {
    font-size: 2rem;
    color: var(--verde-brasil);
    margin-bottom: 20px;
}

.download-card .btn {
    margin: 20px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-item {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.news-item:hover {
    transform: translateY(-8px);
    border-color: var(--amarelo-brasil);
}

.news-item .date {
    color: var(--azul-brasil);
    font-weight: bold;
    display: block;
    margin: 10px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.gallery-item img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Parceiros */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

.partner-item img {
    max-width: 150px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.partner-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Contato Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.contact-item {
    background: var(--bege);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--azul-brasil);
}

.contact-item a {
    text-decoration: none;
    color: var(--texto-escuro);
    font-weight: 600;
}

.contact-item:hover {
    background: white;
    box-shadow: var(--shadow);
    transform: translateX(10px);
}

.footer {
    background: var(--cinza-estrada);
    color: white;
    text-align: center;
    padding: 20px;
}

/* Responsividade */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(0,0,0,0.9);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* Admin Styles */
.admin-login {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, var(--verde-brasil), var(--azul-brasil));
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 400px;
}

.login-box h2 {
    margin-bottom: 30px;
    color: var(--azul-brasil);
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: var(--azul-brasil);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.login-box button:hover {
    background: var(--verde-brasil);
}

.error {
    color: red;
    margin-bottom: 15px;
}

.admin-panel {
    background: #f4f6f9;
}

.admin-header {
    background: var(--azul-brasil);
    color: white;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-logout {
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.3);
}

.admin-main {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.admin-form h2 {
    margin-top: 40px;
    font-size: 1.8rem;
}

.admin-form h2:first-of-type {
    margin-top: 0;
}

.admin-form label {
    display: block;
    margin: 15px 0 5px;
    font-weight: bold;
    color: var(--azul-brasil);
}

.admin-form input, .admin-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.admin-form textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-save {
    background: var(--verde-brasil);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 30px;
    width: 100%;
    transition: background 0.3s;
}

.btn-save:hover {
    background: #007e2e;
}

.news-group {
    border-left: 4px solid var(--amarelo-brasil);
    padding-left: 20px;
    margin: 20px 0;
}

.news-group h3 {
    color: var(--verde-brasil);
    margin: 20px 0 10px;
}