/* --- FUENTE --- */
@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/Inter-ExtraBold.ttf') format('truetype');
    font-weight: 800;
}

/* --- VARIABLES GLOBALES --- */
:root {
    --text-shadow: 0px 2px 0px rgba(0, 0, 0, 0.25);
    --inter-font: 'Inter', sans-serif;
    --brand-red: #D2595A;
    --brand-green: #27ae60;
    --blue: #2980b9;
    --blue-nav: rgba(41, 128, 185, 0.7);
    --bg-dark: #0d0d0d;
    --bg-light: #f4f7f6;
}

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

/* --- BODY --- */
body {
    font-family: var(--inter-font);
    font-weight: 800;
    color: white;
    background-color: #000;
}

/* Scrollbar siempre visible */
html {
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

/* Chrome / Edge / Safari */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.4);
}

/* --- TEXTO GLOBAL --- */
h1, span, a {
    text-shadow: var(--text-shadow);
    text-decoration: none;
    color: white;
}

/* ========================= */
/* --- SPA VIEWS ---         */
/* ========================= */
.view {
    display: none;
    min-height: 100vh;
    padding-top: 65px;
}

.view.active {
    display: block;
    animation: viewEnter 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.view.leaving {
    display: block;
    animation: viewLeave 0.2s ease forwards;
    pointer-events: none;
}

@keyframes viewEnter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes viewLeave {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Hero view has no padding — it fills the screen */
#view-home {
    padding-top: 0;
}

/* ========================= */
/* --- TOP NAV --- */
/* ========================= */
.top-nav {
    background-color: #000;
    height: 65px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Brand y botón siempre en la franja de 65px */
.brand-box,
.main-dl-btn {
    height: 65px;
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 25px;
    cursor: pointer;
}

.nav-icon {
    height: 55px;
}

.brand-name {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

/* ========================= */
/* --- BOTÓN DOWNLOAD        */
/* ========================= */
.main-dl-btn {
    background-color: var(--brand-red);
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 40px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
    cursor: pointer;
}

.main-dl-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    transform: skewX(25deg);
}

.main-dl-btn:hover::after {
    animation: sweep 1s forwards;
}

@keyframes sweep {
    0% { left: -150%; }
    100% { left: 150%; }
}

.main-dl-btn:hover {
    background-color: #e06667;
}

/* ========================= */
/* --- SUB NAV --- */
/* ========================= */
.sub-nav {
    background-color: var(--blue-nav);
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 65px;
    width: 100%;
    z-index: 998;
    backdrop-filter: blur(2px);
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.25s ease;
    pointer-events: auto;
}

.sub-nav--hidden {
    transform: translateY(-55px);
    opacity: 0;
    pointer-events: none;
}

.sub-nav--visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.nav-links {
    display: flex;
    gap: 45px;
}

.nav-links a {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: opacity 0.2s, box-shadow 0.2s;
}

.nav-links a:hover {
    opacity: 0.8;
    box-shadow: 0 2px 0 white;
}

.nav-links a.active {
    box-shadow: 0 2px 0 white;
}

/* ========================= */
/* --- HERO --- */
/* ========================= */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('../assets/img/background-2.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-logo {
    width: 300px;
    margin-bottom: 10px;
    filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.3));
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-title {
    font-size: 48px;
    margin-bottom: 35px;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s 0.1s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s 0.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-actions {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s 0.22s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.view.active .hero-logo {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.view.active .hero-title {
    opacity: 1;
    transform: translateY(0);
}

.view.active .hero-actions {
    opacity: 1;
    transform: translateY(0);
}

/* ========================= */
/* --- BOTONES --- */
/* ========================= */
.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    /* animation state set above in hero section */
}

.btn {
    width: 200px;
    height: 55px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--inter-font);
    font-weight: 800;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn:active {
    transform: scale(0.96);
}

.btn-red  { background-color: var(--brand-green); }
.btn-blue { background-color: var(--blue); }

/* ========================= */
/* --- ICONOS --- */
/* ========================= */
.lucide {
    width: 20px;
    height: 20px;
    stroke-width: 2.5px;
    display: inline-block;
    vertical-align: middle;
}

/* ========================= */
/* --- SECTION HEADERS ---   */
/* ========================= */
.section-header {
    height: 280px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.section-title {
    font-size: 48px;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-subtitle {
    font-size: 14px;
    opacity: 0;
    margin-top: 8px;
    position: relative;
    z-index: 1;
    font-weight: 800;
    text-shadow: var(--text-shadow);
    transform: translateY(16px);
    transition: opacity 0.5s 0.12s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s 0.12s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Triggered when view becomes active */
.view.active .section-title {
    opacity: 1;
    transform: translateY(0);
}

.view.active .section-subtitle {
    opacity: 0.7;
    transform: translateY(0);
}

.store-header   { background-image: url('../assets/img/background-3.jpg'); }
.news-header    { background-image: url('../assets/img/background-4.jpg'); }
.staff-header   { background-image: url('../assets/img/background-2.jpg'); }
.support-header { background-image: url('../assets/img/background-3.jpg'); }
.socials-header { background-image: url('../assets/img/background-4.jpg'); }

/* Blur effect on section header backgrounds */
.store-header::after,
.news-header::after,
.staff-header::after,
.support-header::after,
.socials-header::after {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 0;
}

.store-header   > *,
.news-header    > *,
.staff-header   > *,
.support-header > *,
.socials-header > * {
    z-index: 1;
    position: relative;
}

/* ========================= */
/* --- PLACEHOLDER IMG ---   */
/* ========================= */
.placeholder-img {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* ========================= */
/* --- STORE SECTION ---      */
/* ========================= */
.store-container {
    background-color: var(--bg-light);
    padding: 40px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.store-filter-bar {
    background: white;
    width: 100%;
    max-width: 1000px;
    padding: 15px 25px;
    border-radius: 20px;
    display: flex;
    gap: 15px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1000px;
}

.store-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.store-card-img {
    width: 100%;
    height: 160px;
}

.store-card-info {
    padding: 14px 16px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.store-card-name {
    font-size: 13px;
    color: #222;
    text-shadow: none;
}

.store-card-price {
    font-size: 13px;
    color: var(--blue);
    text-shadow: none;
}

.store-buy-btn {
    margin: 0 16px 16px;
    padding: 10px 0;
    background-color: var(--blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: var(--inter-font);
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    text-shadow: none;
}

.store-buy-btn:hover {
    background-color: #3498db;
}

.store-card.featured {
    border: 2px solid var(--blue);
}

.store-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--blue);
    color: white;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    text-shadow: none;
}

/* ========================= */
/* --- NEWS SECTION ---       */
/* ========================= */
.news-main-container {
    background-color: var(--bg-light);
    padding: 40px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.news-filter-bar {
    background: white;
    width: 100%;
    max-width: 1000px;
    padding: 15px 25px;
    border-radius: 20px;
    display: flex;
    gap: 15px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1000px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card-img {
    width: 100%;
    height: 110px;
}

.news-card-body {
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-tag {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--blue);
    color: white;
    text-shadow: none;
    width: fit-content;
}

.news-card-title {
    font-size: 12px;
    color: #222;
    text-shadow: none;
}

.news-card-date {
    font-size: 11px;
    color: #999;
    text-shadow: none;
    font-weight: 800;
}

/* ========================= */
/* --- FILTER BTN (shared) --*/
/* ========================= */
.filter-btn {
    font-family: var(--inter-font);
    font-weight: 800;
    font-size: 11px;
    padding: 8px 25px;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.filter-btn.active {
    background-color: #4da6db;
    color: white;
    border-color: #4da6db;
}

/* ========================= */
/* --- STAFF SECTION ---      */
/* ========================= */
.staff-container {
    background-color: var(--bg-dark);
    padding: 50px 20px 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.staff-group {
    width: 100%;
    max-width: 1000px;
}

.staff-group-title {
    font-size: 12px;
    letter-spacing: 3px;
    opacity: 0.4;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 10px;
}

.staff-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.staff-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: background 0.2s, transform 0.2s;
    min-width: 200px;
}

.staff-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-3px);
}

.staff-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
}

.staff-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.staff-name {
    font-size: 14px;
    text-shadow: none;
}

.staff-role {
    font-size: 11px;
    padding: 3px 12px;
    border-radius: 20px;
    text-shadow: none;
    width: fit-content;
}

.staff-role.owner { background: var(--brand-red);   color: white; }
.staff-role.dev   { background: var(--blue);         color: white; }
.staff-role.mod   { background: var(--brand-green);  color: white; }

/* ========================= */
/* --- SUPPORT SECTION ---    */
/* ========================= */
.support-container {
    background-color: var(--bg-dark);
    padding: 50px 20px 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.faq-list {
    width: 100%;
    max-width: 750px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: white;
    font-family: var(--inter-font);
    font-weight: 800;
    font-size: 14px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    gap: 12px;
}

.faq-question:hover {
    background: rgba(255,255,255,0.04);
}

.faq-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    stroke: white;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.2s ease;
    padding: 0 24px;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 13px;
    opacity: 0.65;
    line-height: 1.6;
    font-weight: 800;
}

.support-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    opacity: 0.7;
}

.support-discord-btn {
    width: 220px;
    opacity: 1 !important;
}

/* ========================= */
/* --- SOCIALS SECTION ---    */
/* ========================= */
.socials-container {
    background-color: var(--bg-dark);
    padding: 50px 20px 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.social-card {
    width: 100%;
    max-width: 600px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.social-card:hover {
    transform: translateX(6px);
    background: rgba(255,255,255,0.08);
}

.social-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    stroke: white;
}

.social-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.social-platform {
    font-size: 13px;
    letter-spacing: 1px;
}

.social-handle {
    font-size: 12px;
    opacity: 0.5;
    text-shadow: none;
}

.social-arrow {
    width: 18px;
    height: 18px;
    stroke: rgba(255,255,255,0.3);
    flex-shrink: 0;
}

/* Accent colors per social */
.social-card.discord:hover   { border-color: #ffffff; }
.social-card.twitter:hover   { border-color: #1DA1F2; }
.social-card.youtube:hover   { border-color: #FF0000; }
.social-card.tiktok:hover    { border-color: #69C9D0; }
.social-card.instagram:hover { border-color: #E1306C; }

/* ========================= */
/* --- RESPONSIVE ---         */
/* ========================= */
@media (max-width: 1000px) {
    .news-grid  { grid-template-columns: repeat(2, 1fr); }
    .store-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .news-grid  { grid-template-columns: 1fr; }
    .store-grid { grid-template-columns: 1fr; }
    .nav-links  { gap: 20px; }
    .nav-links a { font-size: 0.75rem; }
    .hero-title { font-size: 32px; }
    .hero-logo  { width: 200px; }
    .hero-actions { flex-direction: column; align-items: center; }
}