/**
 * PRE-REGISTER PAGE STYLES - SkalRO
 * Estilos específicos da página de pré-registro
 */

/* =============================================
   HERO SECTION
   ============================================= */

.hero-form-bg {
    position: relative;
    /* Fallback para navegadores sem suporte a WebP */
    background-image: url('../assets/images/bgskal.png');
    background-size: contain; /* cobre hero+form sem cortar */
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #2C1810; /* fallback para áreas vazias */
}

/* Usar WebP quando disponível e suportado (com fallback PNG) */
.webp-supported .hero-form-bg {
    background-image: 
        url('../assets/images/bgskal.webp'),
        url('../assets/images/bgskal.png');
}

.hero-form-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(20,10,5,0.55), rgba(20,10,5,0.65));
    z-index: 0;
}

.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 0 1.5rem;
    overflow: hidden;
    z-index: 1; /* acima do overlay do wrapper */
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.5rem;
    background: rgba(212, 175, 55, 0.15);
    border: 2px solid var(--viking-gold);
    border-radius: var(--border-radius);
    color: var(--viking-gold);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.hero-badge .faction-icon {
    font-size: 1em;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.hero-title {
    display: block;
    font-size: clamp(2.35rem, 2.2vw, 1.9rem);
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 900;
    max-width: 700px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .hero-badge {
        margin-bottom: 6rem;
    }
    
    .hero-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
        line-height: 1.3;
        margin-top: 4rem;
        width: 100%;
        padding: 0 1rem;
    }
    
    .hero-title .highlight-gold,
    .hero-title .highlight-silver {
        font-size: 1em;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .hero-form-bg {
        background-position: center 5%;
    }
}

.hero-title .highlight-gold {
    display: block;
    background: var(--viking-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.5));
    font-size: 1.2em;
    line-height: 1.4;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
}

.hero-title .highlight-silver {
    display: block;
    color: #C0C0C0;
    text-shadow: 0 0 20px rgba(192, 192, 192, 0.6), 0 2px 10px rgba(0, 0, 0, 0.3);
    font-size: 1.2em;
    line-height: 1.4;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
}

.hero-title .faction-icon {
    display: inline-block;
    font-size: 1.2em;
    margin: 0 0.5rem;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.6));
    vertical-align: middle;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--viking-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .hero-actions {
        flex-wrap: wrap;
    }
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #B8860B 0%, #8B6914 50%, #B8860B 100%);
    border: 2px solid #8B6914;
    border-radius: var(--border-radius);
    height: 56px;
    box-shadow: 0 4px 15px rgba(139, 105, 20, 0.3);
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
    white-space: nowrap;
}

.hero-stats:hover {
    border-color: #B8860B;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 50%, #D4AF37 100%);
    transform: translateY(-2px);
}

.hero-stat-icon {
    font-size: 1.25rem;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    display: inline-flex;
    align-items: center;
}

.hero-stat-number {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #F5DEB3;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    display: inline-block;
    margin-right: 0.5rem;
}

.hero-stat-label {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: #F5DEB3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    display: inline-block;
}

/* =============================================
   STATS COUNTER
   ============================================= */

.stats-section {
    padding: 1.5rem 0;
    background: rgba(61, 36, 22, 0.5);
    backdrop-filter: blur(10px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-card {
    text-align: center;
    padding: 1.25rem;
    background: var(--viking-bg-card);
    border: 2px solid var(--viking-border);
    border-radius: var(--border-radius-large);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--viking-glow);
    border-color: var(--viking-gold);
}

.stat-number {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--viking-gold);
    display: block;
    margin-bottom: 0.35rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.stat-label {
    font-size: 1rem;
    color: var(--viking-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* =============================================
   FORMULÁRIO DE PRÉ-REGISTRO
   ============================================= */

.pre-register-form-section {
    padding: 2.5rem 0;
    position: relative;
    z-index: 2; /* acima do overlay e das partículas */
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--viking-bg-card);
    border: 2px solid var(--viking-border);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px var(--viking-shadow-strong);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--viking-gradient-gold);
    border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    margin-bottom: 0.75rem;
}

.form-header p {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    color: var(--viking-text-secondary);
    line-height: 1.6;
}

.label-icon {
    margin-right: 0.35rem;
    font-size: 0.9em;
    opacity: 0.8;
}

.pre-register-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pre-register-form .form-group {
    margin-bottom: 0;
}

.pre-register-form .form-group.full-width {
    grid-column: 1 / -1;
}

.form-help {
    font-size: 0.875rem;
    color: var(--viking-text-dark);
    margin-top: 0.375rem;
}

.form-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-footer {
    text-align: center;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.form-footer p {
    font-size: 0.875rem;
    color: var(--viking-text-dark);
}

.form-footer a {
    color: var(--viking-gold);
    text-decoration: underline;
}

.registration-disabled {
    text-align: center;
    padding: 3rem 2rem;
}

.disabled-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: grayscale(1) opacity(0.6);
}

.registration-disabled h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--viking-text-primary);
}

.registration-disabled p {
    margin-bottom: 2rem;
    color: var(--viking-text-secondary);
}

/* =============================================
   SEÇÃO DE BENEFÍCIOS
   ============================================= */

.benefits-section {
    padding: 2.5rem 0;
    background: rgba(61, 36, 22, 0.3);
}

.section-title .mobile-break {
    display: none;
}

@media (max-width: 768px) {
    .section-title {
        display: block;
        flex-direction: column;
        line-height: 1.2;
    }
    
    .section-title .mobile-break {
        display: block;
        line-height: 0.8;
        margin: 0;
    }
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 1.5rem 1.25rem;
    position: relative;
}

.benefit-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--viking-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon-wrapper {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--viking-gold);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
    transform: scale(1.1) rotate(5deg);
}

.benefit-icon {
    font-size: 2.25rem;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.benefit-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon-img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.7));
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--viking-text-dark);
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */

#toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.toast {
    background: var(--viking-bg-card);
    border: 2px solid var(--viking-border);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px var(--viking-shadow-strong);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateX(100%);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.toast.success::before {
    background: #10b981;
}

.toast.error::before {
    background: #dc2626;
}

.toast.info::before {
    background: #3b82f6;
}

/* =============================================
   LOADING OVERLAY
   ============================================= */

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--viking-bg-overlay);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

#loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-text {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    color: var(--viking-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* =============================================
   FIRE CANVAS BACKGROUND
   ============================================= */

#fire-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    pointer-events: none;
    opacity: 0.6;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
    background: var(--viking-bg-secondary);
    border-top: 2px solid var(--viking-border);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-img {
    max-height: 60px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

.footer-logo .logo-icon {
    font-size: 2.25rem;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--viking-text-secondary);
    transition: color var(--transition-normal);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--viking-gold);
}

.footer-social {
    display: none !important;
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--viking-text-dark);
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

/* =============================================
   RESPONSIVIDADE
   ============================================= */

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-container {
        padding: 1.5rem 1rem;
    }
    
    .pre-register-form {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    #toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 4rem 0 3rem;
    }
    
    .form-container {
        padding: 1.5rem 1rem;
    }
}

