:root {
    /* Dragon Ball Thematic Colors */
    --primary-color: #F26F22; /* Goku's Gi Orange */
    --secondary-color: #004C97; /* Goku's Gi Blue */
    --accent-color: #FFD700; /* Super Saiyan Gold */
    --bg-color: #0D0D12; /* Deep space background */
    --bg-darker: #050508;
    --text-light: #F4F4F4;
    --text-dark: #333333;
    
    /* Fonts */
    --font-heading: 'Bangers', cursive;
    --font-body: 'Roboto', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    background-image: linear-gradient(rgba(13, 13, 18, 0.85), rgba(13, 13, 18, 0.95)), url('https://4kwallpapers.com/images/wallpapers/super-saiyan-goku-3840x2160-27103.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    color: var(--text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* CUSTOM CURSOR - Dragon Ball themed (Ativado apenas em computadores com mouse) */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="14" fill="%23F26F22" stroke="%23cc4400" stroke-width="2"/><polygon points="16,6 17.5,11 22.5,11 18.5,14 20,19 16,16 12,19 13.5,14 9.5,11 14.5,11" fill="%23FFD700"/></svg>') 16 16, auto;
    }

    a, button, .btn-download, .btn-primary, .gallery-item {
        cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="14" fill="%23F26F22" stroke="%23cc4400" stroke-width="2"/><polygon points="10,8 11,10.5 13.5,10.5 11.5,12 12.5,14.5 10,13 7.5,14.5 8.5,12 6.5,10.5 9,10.5" fill="%23FFD700"/><polygon points="22,8 23,10.5 25.5,10.5 23.5,12 24.5,14.5 22,13 19.5,14.5 20.5,12 18.5,10.5 21,10.5" fill="%23FFD700"/><polygon points="10,18 11,20.5 13.5,20.5 11.5,22 12.5,24.5 10,23 7.5,24.5 8.5,22 6.5,20.5 9,20.5" fill="%23FFD700"/><polygon points="22,18 23,20.5 25.5,20.5 23.5,22 24.5,24.5 22,23 19.5,24.5 20.5,22 18.5,20.5 21,20.5" fill="%23FFD700"/></svg>') 16 16, pointer;
    }
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 13, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    padding: 5px;
}

.mobile-menu-toggle:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-light);
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary-color);
}

.logo i {
    color: var(--accent-color);
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 24px;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.05rem;
    transition: color 0.3s;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

.nav-fanmade {
    color: #FF007F !important;
    background: rgba(255, 0, 127, 0.15) !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 0, 127, 0.5) !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-shadow: 0 0 8px rgba(255, 0, 127, 0.6);
}

.nav-fanmade::after {
    display: none !important;
}

.nav-fanmade:hover {
    background: #FF007F !important;
    color: #FFF !important;
    box-shadow: 0 0 15px #FF007F, 0 0 25px rgba(255, 215, 0, 0.6) !important;
    border-color: #FFD700 !important;
    transform: translateY(-2px);
}

/* LANGUAGE SELECTOR */
.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: rgba(242, 111, 34, 0.15);
    color: var(--text-light);
    border: 1px solid rgba(242, 111, 34, 0.6);
    padding: 7px 14px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn i.fa-globe {
    color: var(--accent-color);
    font-size: 1rem;
}

.lang-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.lang-selector.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-btn:hover,
.lang-selector.open .lang-btn {
    background: var(--primary-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(242, 111, 34, 0.6);
    color: #FFF;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(15, 15, 22, 0.98);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    padding: 8px;
    min-width: 195px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(242, 111, 34, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 1100;
}

.lang-selector.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 9px 12px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: rgba(242, 111, 34, 0.2);
    color: var(--accent-color);
    transform: translateX(3px);
}

.lang-option.active {
    background: linear-gradient(90deg, rgba(242, 111, 34, 0.35), rgba(242, 111, 34, 0.1));
    color: var(--accent-color);
    border-left: 3px solid var(--accent-color);
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    /* Clean DBZ thematic background (Kame House) with a subtle dark gradient for text readability */
    background: linear-gradient(rgba(13, 13, 18, 0.6), rgba(13, 13, 18, 0.9)), 
                url('https://4kwallpapers.com/images/wallpapers/kame-house-dragon-3840x2160-25003.jpg') center/cover;
    background-attachment: fixed;
    position: relative;
}

.hero-content {
    animation: fadeIn 1.5s ease-in;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 6rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-shadow: 4px 4px 0px var(--secondary-color);
}

.hero-content h1 span {
    color: var(--accent-color);
    text-shadow: 4px 4px 0px var(--primary-color);
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
    color: #E0E0E0;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 50px;
    text-transform: uppercase;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: scale(1.05);
    background-color: transparent;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
}

/* GENERAL SECTIONS */
.section {
    padding: 100px 10%;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 2px;
}

.section-title span {
    color: var(--primary-color);
}

/* CARDS (News) */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background-color: #1A1A24;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: transform 0.4s, box-shadow 0.4s;
    border: 1px solid #2A2A35;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(242, 111, 34, 0.25);
    border-color: var(--primary-color);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 4px solid var(--primary-color);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.card-content p {
    color: #CCC;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.95rem;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more::after {
    content: '→';
    transition: transform 0.3s;
}

.read-more:hover {
    color: var(--accent-color);
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* MULTIMEDIA */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 50px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.7);
    border: 3px solid var(--secondary-color);
    transition: transform 0.3s;
}

.video-wrapper:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
}

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

/* GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 280px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.btn-download {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-preview {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-family: inherit;
}

.btn-preview:hover {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.btn-download:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(242, 111, 34, 0.4);
}

/* FOOTER */
footer {
    background-color: #020202;
    padding: 50px 20px;
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.footer-content .logo {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.footer-content p {
    color: #888;
    margin-bottom: 25px;
    font-size: 0.95rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.socials a {
    color: #AAA;
    font-size: 1.8rem;
    margin: 0 15px;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.socials a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes kiPulse {
    0% {
        box-shadow: 0 0 10px rgba(242, 111, 34, 0.4), inset 0 0 10px rgba(255, 215, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(242, 111, 34, 0.8), 0 0 35px rgba(255, 215, 0, 0.5), inset 0 0 15px rgba(255, 215, 0, 0.4);
    }
    100% {
        box-shadow: 0 0 10px rgba(242, 111, 34, 0.4), inset 0 0 10px rgba(255, 215, 0, 0.2);
    }
}

/* MODAL / LIGHTBOX DE IMAGENS */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(242, 111, 34, 0.6);
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: var(--text-light);
    font-size: 3rem;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s, transform 0.3s;
}

.modal-close:hover {
    color: var(--accent-color);
    transform: scale(1.15);
}

.modal-caption {
    margin-top: 20px;
    text-align: center;
}

/* BOTÃO FLUTUANTE NUVEM VOADORA (VOLTAR AO TOPO) */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #F26F22);
    color: #111;
    border: 2px solid #FFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(242, 111, 34, 0.5);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.back-to-top i {
    font-size: 1.4rem;
}

.back-to-top span {
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: -2px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.8);
    animation: kiPulse 1.2s infinite;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 4.5rem;
    }
    .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 25px;
        flex-direction: row;
        justify-content: space-between;
    }

    .mobile-menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(13, 13, 18, 0.98);
        border-bottom: 3px solid var(--primary-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
    }

    nav.active {
        max-height: 620px;
        padding: 20px 0;
        overflow: visible;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 0;
    }

    .lang-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }

    .lang-selector.open .lang-dropdown {
        transform: translateX(-50%) translateY(0);
    }

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

    .hero-content p {
        font-size: 1.1rem;
    }

    .section {
        padding: 60px 6%;
    }

    .section-title {
        font-size: 2.6rem;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

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

    .modal-content {
        max-width: 95%;
        max-height: 70vh;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.9rem;
    }

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

    .btn-primary {
        padding: 12px 28px;
        font-size: 1rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
}
