@import url("web2-variables.css");



body {
    background-color: var(--primary-bg);
    background-image: url(../img/nuevo_fondo.png);
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/*-------MODAL COMMUNITY--------------*/
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--glass-bg);
    margin: 10% auto;
    padding: 30px;
    border: 1px solid var(--text-navbar);
    width: 90%;
    max-width: 600px;
    color: #fff;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-navbar);
}

#modalTitle {
    color: var(--text-navbar);
    text-transform: uppercase;
    margin-bottom: 20px;
}

#modalText {
    line-height: 1.6;
    color: #ddd;
}

.btn-close-modal {
    background: var(--text-navbar);
    color: var(--text-primary);
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
}

/*-------SECTION-LOGIN-----------*/

/* --- LOGIN REINVENTADO --- */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    position: relative;
    padding: 20px;
    z-index: 5;
    
}

.login-visual-decoration {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(132, 88, 165, 0.15) 0%, transparent 70%);
    filter: blur(50px);
    z-index: -1;
    animation: pulseGlow 8s infinite alternate;
}

.login-container {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-top: 1px solid rgba(132, 88, 165, 0.5);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
    transition: transform 0.4s ease;
}

@starting-style {
    .login-container {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-shield-icon {
    font-size: 2.5rem;
    color: var(--text-navbar);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(132, 88, 165, 0.5));
}

.login-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group label {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group input {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 14px 15px;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    background: rgba(132, 88, 165, 0.05) !important;
    border-color: var(--text-navbar);
    box-shadow: 0 0 15px rgba(132, 88, 165, 0.2);
}

.btn-premium-login {
    width: 100%;
    background: var(--gradient-purple);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    color: #fff;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
}

.btn-premium-login:hover {
    transform: translateY(-3px);
    color: var(--text-navbar);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(132, 88, 165, 0.4);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.6s;
}

.btn-premium-login:hover .btn-shine {
    left: 100%;
}

.login-footer-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.link-highlight {
    color: var(--text-navbar);
    text-decoration: none;
    font-weight: bold;
}

@keyframes pulseGlow {
    from { transform: scale(1); opacity: 0.5; }
    to { transform: scale(1.2); opacity: 0.8; }
}


/* Contenedor principal */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Fondo con columnas diagonales */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    z-index: -2;
}

/* Layout de contenido */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
    width: 90%;
    max-width: 1400px;
    position: relative;
    overflow-x: hidden;
    z-index: 2;
}

/* Sección del Logo (Izquierda) */
.hero-logo {
    flex: 1;
    position: relative;
    z-index: 2; /* Por encima del personaje */
}

.img-logo {
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.8));
    transition: all 2s ease;

    &:hover {
        transform: scale(1.03);
    }
}

/* Personaje (Detrás del logo con animación) */
.personaje-logo {
    position: absolute;
    display: flex;
    justify-content: center;
    
    right: 0;; /* Ajusta según qué tanto quieras que sobresalga detrás del logo */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1; /* Detrás del logo principal */
    opacity: 1;
    animation: float 6s ease-in-out infinite;
}

.personaje-logo img {
    max-width: 99%;
}

/* Contenedor del Status (Centro) */
.server-status-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 2;
}

/* Animación de Flotado */
@keyframes float {
    0%, 100% {
        transform: translateY(-40%) translateX(0);
    }
    50% {
        transform: translateY(-45%) translateX(10px);
    }
}

/* --- Server Status --- */
.server-status-container {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 30px;
    flex-wrap: nowrap;
}

.server-status {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 30px;
    min-width: 250px;
    transition: transform 0.3s, box-shadow 0.3s;

    &:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 100px rgba(0, 255, 136, 0.2);
    }
}

.status-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.status-label {
    color: var(--text-navbar);
    font-weight: 700;
    font-size: 14px;
}

.status-online {
    color: #278028;
    font-size: 14px;
    font-weight: 600;
}

.status-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.status-progress {
    height: 100%;
    width: 65%;
    background: var(--gradient-red);
    border-radius: 3px;
}

.status-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.status-text {
    color: var(--text-muted);
}

.player-count {
    color: var(--accent-gold);
    font-weight: 700;
}


/*-----------RANKING Y TOP GUILDS-----------*/

.rankings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
    padding: 80px 50px;
    border-top: 2px solid var(--border-color);
}

.ranking-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-glass);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px var(--border-color);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    /*overflow: hidden;*/
    transition: transform 0.3s ease;
}

.ranking-card:hover {
    transform: translateY(-10px);
    /*border-color: var(--text-navbar);*/
}

/*-----DECORATIVO----*/
.deco-izquierda {
    position: absolute;
    top: -30px; 
    left: -35px;    
    max-width: 130px;
    height: auto;
    z-index: 9999;
    pointer-events: none;
    opacity: 1; 
    mix-blend-mode: screen; 
}

.deco-derecha {
    position: absolute;
    bottom: -30px;  
    right: -35px;   
    max-width: 130px;
    height: auto;
    z-index: 25;
    pointer-events: none;
    opacity: 1; 
    mix-blend-mode: screen;
}


.deco-abajo {
    position: absolute;
    bottom: -38px;            
    left: 50%;          
    transform: translateX(-50%);
    width: 160px;          
    z-index: 1;            
    pointer-events: none;  /
}

.ranking-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.ranking-icon img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.ranking-card h3 {
    
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.ranking-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: var(--text-navbar);
    letter-spacing: 2px;
}

.ranking-table {
    margin-bottom: 20px;
}

.table-header {
    display: grid;
    grid-template-columns: 40px 1fr 60px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}

.table-row {
    display: grid;
    grid-template-columns: 40px 1fr 60px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
}

.table-row .rank {
    color: var(--text-navbar);
    font-weight: 700;
}

.table-row .name {
    color: var(--text-primary);
    font-size: 14px;
}

.table-row .class-icon {
    text-align: center;
}

.btn-default {
    width: 100%;
    background: var(--gradient-gold);
    border: none;
    padding: 12px;
    border-radius: 6px;
    color: var(--text-navbar);
    font-family: 'Cinzel';
    letter-spacing: 1.5px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-default:hover {
    transform: translateY(-2px);
}

/*--------WINNER CASTLE----------*/

.castle-siege-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid #444;
    padding: 20px;
    width: 650px;
    justify-self: center;
    border-radius: 8px;
    text-align: center;
    color: white;
    transition: var(--transition-base);

    &:hover {
        transform: translateY(-10px);
    }
    
}

.cs-title {
    font-weight: bold;
    color: var(--text-navbar);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.guild-name {
    display: block;
    font-size: 20px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.6);
}


/*-----------EVENTOS------------------*/

.events-section {
    max-width: 1200px;
    margin: auto;
    padding: 60px 60px;
    
    /*background: linear-gradient(to bottom, var(--primary-bg), #0a0a12);*/
    /*backdrop-filter: blur(2px);*/
}
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-family: 'Cinzel', serif;
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 40px;
    letter-spacing: 3px;
}

.section-title.light {
    color: var(--text-primary);
}

.title-line {
    flex: 1;
    max-width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--text-navbar), transparent);
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 30px;
    align-items: start;
}

.events-list {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px var(--border-color);
    border-radius: 0 0px 12px 12px;
    padding: 25px;

}

/*----------STYLE EVENTOS -----------*/

.event-item {
    display: grid;
    grid-template-columns: 120px 1fr 70px;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.event-item:last-child {
    border-bottom: none;
}

.event-name {
    display: inline-block;
    width: 120px;
    color: var(--text-navbar);
    font-weight: 600;
    font-size: 14px;
}

.event-bar {
    height: 8px;
    width: 200px;
    /*background: rgba(255, 255, 255, 0.1);*/
    background: var(--text-muted);
    display: inline-block;
    border-radius: 4px;
    overflow: hidden;
}

.event-progress {
    height: 100%;
    width: 0%;
    background: var(--accent-red);
    border-radius: 4px;
    transition: width 1s linear;
}

.event-time {
    color: var(--text-muted);
    font-size: 12px;
    text-align: right;
}

/*-----------DONACIONES----------------*/
.community-boxes {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.community-box,
.donation-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.community-box {
    background: var(--gradient-purple);
    border: 1px solid var(--text-navbar);
}

.donation-box {
    background: var(--gradient-red);
    border: 1px solid var(--accent-red);
}

.box-content h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.community-box .box-content h4 {
    color: var(--text-primary);
}

.donation-box .box-content h4 {
    color: var(--accent-gold);
}

.box-content p {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.btn-community,
.btn-donation {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-community {
    border: 1px solid var(--text-navbar);
    background: transparent;
    color: var(--text-primary);
}

.btn-donation {
    border: 1px solid var(--accent-red);
    background: transparent;
    color: var(--text-primary);
}

.btn-community:hover,
.btn-donation:hover {
    transform: translateY(-2px);
}

.box-image img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
}

/*-------------------- COMMUNITY NEWS -------------------- */
.news-section {
    max-width: 1200px;
    margin: auto;
    padding: 60px;
    
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;   
}

.news-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.news-content {
    padding: 25px;   
}

.news-tag {
    display: block;
    color: var(--accent-blue);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-content h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.btn-read-more {
    background: transparent;
    border: 2px solid var(--text-navbar);
    color: var(--text-navbar);
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-read-more:hover {
    background: var(--text-navbar);
    color: var(--text-primary);
}

.news-date {
    display: block;
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 11px;
}

.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%,     #1a3a4a 0%, transparent 50%),
                radial-gradient(circle at 0% 100%, #16162a 0%, transparent 40%);
    z-index: -2;
}

/*-----------COMUNITY GLASSMORPHIN----------*/
.news-card {
    background: rgba(22, 22, 42, 0.6) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    position: relative;
    overflow: hidden;

        &::after {
            content: "";
            position: absolute;
            top: 0;
            left: -100%;
            width: 50%;
            height: 100%;
            background: linear-gradient(
            to right,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent
            );
            transform: skewX(-25deg);
            transition: 0.75s;
        }

        &:hover::after {
                left: 150%;
            }
}
/*--------------BEST CLASS-----------------*/

.class-section {
    max-width: 1200px;
    margin: auto;
    padding: 100px 0;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    /*background: linear-gradient(to bottom, #0a0a12, var(--primary-bg));*/
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px var(--border-color);
    border-radius: 12px;
}

.class-slider-container {
    position: relative;
    width: 90%;
    margin: auto;
    margin-bottom: 40px;
    
}

.class-showcase {
    display: none; /* Oculto por defecto */
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    opacity: 0;

    &.active {
        display: grid;
        animation: slideIn .6s cubic-bezier(0.23, 1, 0.320, 1) forwards;
    }
}

.class-info {
    padding: 20px;
    z-index: 2;
    
}

.class-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.class-icon-large {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--accent-blue);
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.2);
}

.class-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    color: var(--accent-blue);
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
}

.class-subtitle {
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 1px;
    margin-top: 5px;
}

.class-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 500px;
}

.class-highlight {
    color: var(--text-navbar);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.class-stats {
    display: flex;
    gap: 30px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 10px;
    display: inline-flex;
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    font-size: 20px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 12px;
}

.stat-value {
    color: var(--text-navbar);
    font-weight: 700;
    font-size: 18px;
}

/*----------- PERSONAJE Y DESCRIPCION ---------------*/
.class-character {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.class-character img {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(74, 158, 255, 0.3));
    transition: transform .5s ease;
}

.class-character img:hover {
    transform: scale(1.1);
}

.class-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.class-btn {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);

    &:hover {
        background: var(--accent-gold);
        color: #000;
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    }
}

.class-icons {
    display: flex;
    gap: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;

    & img {
        width: 50px;
        height: 50px;
        border-radius: 8px;
        cursor: pointer;
        opacity: 0.6;
        transition: all 0.3s;
        border: 2px solid transparent;
        object-fit: cover;
    }

    & img:hover,
    & img.active {
        opacity: 1;
        border-color: var(--accent-gold);
        transform: translateY(-5px) scale(1.1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}


/*------------MEDIA-------------*/

.media-images img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.media-images img:hover {
    border-color: var(--accent-red);
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .hero-content { padding: 20px; }
    .server-status-container { flex-direction: column; align-items: center; }
    .rankings-grid { grid-template-columns: 1fr; }
}

/* --- Animaciones y Extras --- */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.status-online {
    animation: pulse 2s infinite;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}