/* INICIO (HOME) STYLES */

.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 15vh;
        /* Espacio para el indicador de scroll */
    }
}


.hero-bg-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.season-tag {
    color: var(--gold);
    font-family: var(--font-title);
    letter-spacing: 5px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: block;
}

.hero-desc {
    color: #bbb;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    font-family: var(--font-title);
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-indicator span {
    font-family: var(--font-title);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: #666;
    margin-bottom: 10px;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

/* ROSTER */
.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.roster-card {
    position: relative;
    aspect-ratio: 1/1.4;
    background-size: cover;
    background-position: center;
    border: 1px solid #222;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    text-decoration: none;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.roster-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 60%);
    z-index: 1;
}

.roster-card .card-inner {
    position: relative;
    z-index: 2;
    transition: 0.3s;
}

.roster-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.roster-card.active-card:hover .card-inner {
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.9);
    padding: 10px;
    border-radius: 4px;
}

.archetype-name {
    display: block;
    color: #fff;
    font-family: var(--font-title);
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 1) !important;
}

.archetype-class {
    display: block;
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 3px;
    font-family: var(--font-title);
}

/* CODICE SECTION */
.codice-no-smoke-section {
    background: #000;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(198, 168, 114, 0.1);
    border-bottom: 1px solid rgba(198, 168, 114, 0.1);
}

.codice-no-smoke-section .content-wrapper {
    font-family: var(--font-title);
    position: relative;
    z-index: 2;
    padding: 6rem 1rem;
}

.codice-no-smoke-section h2 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    color: var(--color-gold);
    text-shadow: 0 0 15px rgba(198, 168, 114, 0.3);
    margin-bottom: 1rem;
}

.codice-no-smoke-section p {
    letter-spacing: 1.5px;
    color: #ddd;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* STONE OF OATHS */
.monolith-surface {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding: 2rem;
}

.engraved-name {
    color: var(--gold);
    font-family: var(--font-title);
    font-size: 0.85rem;
    letter-spacing: 2px;
    cursor: default;
    transition: 0.6s ease;
    opacity: 0.9;
}

.engraved-name:hover {
    color: var(--gold);
    font-size: 1rem;
    opacity: 1;
    text-shadow: 0 0 10px var(--gold);
}

/* INFLUENCE PODIUM */
.podio-section {
    padding: 6rem 0;
    border-top: 1px solid rgba(198, 168, 114, 0.1);
    position: relative;
    overflow: hidden;
}

.podio-bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(198, 168, 114, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.podio-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.dominion-wrapper {
    margin-bottom: 3.5rem;
}

.dominion-labels {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-family: var(--font-title);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 0.6rem;
    gap: 10px;
}

.label-rheikan {
    color: var(--gold);
}

.label-aethelgard {
    color: #8bbcd4;
}

.dominion-bar-container {
    height: 8px;
    background: #111;
    border: 1px solid #222;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

.dominion-bar-rheikan {
    background: linear-gradient(90deg, #c6a872, #8a6d3b);
    transition: width 1s ease;
    border-radius: 4px 0 0 4px;
    width: var(--rheikan-pct, 50%);
}

.dominion-bar-aethelgard {
    background: linear-gradient(90deg, #4a80a0, #8bbcd4);
    border-radius: 0 4px 4px 0;
    width: var(--aethelgard-pct, 50%);
}

.dominion-stats {
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    color: #555;
}

.dominion-winner-msg {
    font-family: var(--font-title);
    letter-spacing: 2px;
    font-size: 0.75rem;
}

.podium-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.podium-side {
    padding: 2rem;
    border-radius: 4px;
}

.podium-side.rheikan {
    border: 1px solid rgba(198, 168, 114, 0.2);
    background: rgba(198, 168, 114, 0.02);
}

.podium-side.aethelgard {
    border: 1px solid rgba(139, 188, 212, 0.2);
    background: rgba(139, 188, 212, 0.02);
}

.podium-title {
    font-family: var(--font-title);
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(198, 168, 114, 0.15);
    padding-bottom: 0.8rem;
}

.combatant-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.combatant-row.no-border {
    border-bottom: none;
}

.rank-indicator {
    font-family: var(--font-title);
    font-size: 1.2rem;
    width: 2rem;
    text-align: center;
}

.rank-gold {
    color: var(--gold);
    text-shadow: 0 0 8px rgba(198, 168, 114, 0.4);
}

.rank-silver {
    color: #c0c0c0;
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.4);
}

.rank-bronze {
    color: #cd7f32;
    text-shadow: 0 0 8px rgba(205, 127, 50, 0.4);
}

.combatant-info .nick {
    font-family: var(--font-title);
    color: #eee;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.combatant-info .pts {
    font-size: 0.8rem;
    font-family: monospace;
}

.color-rheikan {
    color: var(--gold) !important;
}

.color-aethelgard {
    color: #8bbcd4 !important;
}

.podio-action {
    text-align: center;
    margin-top: 2.5rem;
}

/* TOP GUERREROS */
.permanent-ranking-container {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #111;
}

.ranking-label {
    font-family: var(--font-title);
    color: #555;
    letter-spacing: 3px;
    font-size: 0.8rem;
    margin-bottom: 1.2rem;
    text-align: center;
}

.warrior-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1rem;
    background: #0a0a0a;
    border: 1px solid #141414;
    border-radius: 4px;
    transition: 0.3s;
}

.warrior-rank {
    font-family: var(--font-title);
    font-size: 1.1rem;
    width: 1.6rem;
    text-align: center;
    color: #555;
}

.warrior-main {
    flex: 1;
}

.warrior-nick {
    font-family: var(--font-title);
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.warrior-level {
    color: #333;
    font-size: 0.7rem;
    font-family: monospace;
    margin-left: 0.5rem;
}

.warrior-xp {
    font-family: monospace;
    font-size: 0.8rem;
    color: #444;
}

/* SCHISM TEASER */
.the-schism-section {
    padding: 10rem 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(198, 168, 114, 0.1);
}

.schism-split-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 1;
}

.schism-split-rheikan {
    flex: 1;
    background: linear-gradient(90deg, #1a1510 0%, #000 100%);
    border-right: 1px solid rgba(198, 168, 114, 0.2);
}

.schism-split-aethelgard {
    flex: 1;
    background: linear-gradient(-90deg, #150a1a 0%, #000 100%);
}

.schism-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.schism-tag {
    color: var(--color-gold);
    font-family: var(--font-title);
    letter-spacing: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.schism-title {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: #fff;
    letter-spacing: 10px;
    margin: 1.5rem 0;
    text-shadow: 0 0 30px rgba(198, 168, 114, 0.2);
}

.schism-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 4rem 0;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
}

.faction-teaser-side {
    max-width: 500px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 4px;
}

.faction-teaser-side.rheikan {
    border: 1px solid rgba(198, 168, 114, 0.1);
}

.faction-teaser-side.aethelgard {
    border: 1px solid rgba(139, 188, 212, 0.1);
}

.faction-teaser-side h3 {
    font-family: var(--font-title);
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
    font-size: 1.2rem;
}

.faction-teaser-side.rheikan h3 {
    color: var(--color-gold);
}

.faction-teaser-side.aethelgard h3 {
    color: #8bbcd4;
}

.faction-teaser-side p {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.6;
    font-family: var(--font-body);
}

.schism-desc {
    color: #888;
    font-family: var(--font-body);
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
    line-height: 1.8;
    font-size: 1.1rem;
}

.btn-primary-ghost {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    letter-spacing: 3px;
    text-decoration: none;
    font-family: var(--font-title);
    transition: 0.3s;
}

.btn-primary-ghost:hover {
    background: var(--color-gold);
    color: #000;
}

/* ARMORY BANNER */
.section-no-padding {
    padding: 0;
}

.armory-banner-container {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-top: 1px solid rgba(198, 168, 114, 0.2);
}

.armory-banner-container .overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(8, 8, 8, 1) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(8, 8, 8, 1) 100%);
}

.banner-content {
    position: relative;
    z-index: 2;
    font-family: var(--font-title);
    max-width: 900px;
    padding: 2rem;
}

.banner-tag {
    color: var(--color-gold);
    font-size: 1.1rem;
    letter-spacing: 4px;
    border-bottom: 1px solid rgba(198, 168, 114, 0.4);
    padding-bottom: 8px;
    display: inline-block;
    margin-bottom: 2rem;
}

.banner-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.9);
    line-height: 1.1;
}

.banner-desc {
    color: #bbb;
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0 auto 3rem auto;
    max-width: 700px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.btn-banner {
    font-size: 1.3rem;
    padding: 1.2rem 3.5rem;
    background: transparent;
    color: var(--color-gold);
    font-weight: bold;
    border: 1px solid var(--color-gold);
    letter-spacing: 3px;
    box-shadow: inset 0 0 20px rgba(198, 168, 114, 0.1), 0 0 20px rgba(198, 168, 114, 0.1);
    transition: 0.4s;
    backdrop-filter: blur(5px);
    text-decoration: none;
}

/* ANIMACIONES UTILITARIAS */
.reveal-on-scroll {
    opacity: 1;
    /* TEMPORARY FIX: Was 0 */
    transform: translateY(30px);
    transition: 0.8s var(--ease-out);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* UTILS */
.empty-msg {
    color: #333;
    font-family: var(--font-title);
    letter-spacing: 1px;
    font-size: 0.8rem;
    padding: 1rem 0;
}

.section-desc {
    color: #666;
    margin-top: 1rem;
    font-family: var(--font-title);
    letter-spacing: 1px;
}

/* RESPONSIVE */
@media (min-width: 1024px) {
    .schism-grid {
        flex-direction: row;
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .podium-grid {
        grid-template-columns: 1fr;
    }
}

/**
 * QUICK START GUIDE - ONBOARDING STYLES
 * disruptive trigger button and timeline enhancements.
 */

.btn-quick-guide {
    display: inline-block;
    text-decoration: none;
    background: #fbbf24;
    /* amber-400 */
    color: #111;
    font-family: var(--font-title);
    font-weight: bold;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
    animation: pulse-glow 2s infinite;
}

@media (max-width: 768px) {

    .btn-quick-guide,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        margin: 0.5rem 0;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}


.btn-quick-guide:hover {
    background: #f59e0b;
    /* amber-500 */
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.6);
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px rgba(251, 191, 36, 0.4);
    }

    50% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.7);
    }

    100% {
        box-shadow: 0 0 5px rgba(251, 191, 36, 0.4);
    }
}

/**
 * Ensure vertical line connection on mobile
 */

#quickGuideModal .relative.pl-8::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #991b1b, transparent);
    z-index: 0;
}

/* Modal visibility utilities */
.hidden {
    display: none !important;
}

.flex {
    display: flex !important;
}

/**
 * QUICK START GUIDE MODAL - PURE CSS
 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 1, 0.95);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal-content {
    background: #0f172a;
    /* slate-900 */
    border: 1px solid rgba(153, 27, 27, 0.4);
    /* red-900/40 */
    border-radius: 8px;
    padding: 2rem;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(153, 27, 27, 0.2);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    margin: auto;
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--bone);
    font-size: 2rem;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    color: #b91c1c;
    /* red-700 */
}

.timeline-container {
    position: relative;
    padding-left: 2rem;
    border-left: 1px solid rgba(153, 27, 27, 0.3);
    margin: 1.5rem 0 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-step {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -2.4rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    background: #991b1b;
    border: 3px solid #0f172a;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(153, 27, 27, 0.8);
}

.timeline-title {
    color: #b91c1c;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.timeline-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    line-height: 1.5;
}

.modal-footer {
    margin-top: 2rem;
    text-align: center;
    position: sticky;
    bottom: -2rem;
    /* Matches padding */
    background: #0f172a;
    padding: 1.5rem 0 0.5rem 0;
    border-top: 1px solid rgba(153, 27, 27, 0.1);
}

.btn-modal-accept {
    background: #7f1d1d;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn-modal-accept:hover {
    background: #991b1b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(153, 27, 27, 0.3);
}

.text-gold {
    color: var(--gold);
}

/* Custom Scrollbar for the Modal Content */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #000;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #7f1d1d;
    border-radius: 4px;
}

/**
 * Custom Dark Scrollbar for the Guide Modal
 */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #0f172a;
    /* slate-900 */
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #7f1d1d;
    /* red-900 */
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #991b1b;
    /* red-800 */
}
