/*
====================================
NUNTIUSGAMES THEME - MAIN STYLES
====================================
Arquivo principal de estilos do tema Discord Style
Responsabilidade: Layout base e componentes principais
*/

/* Importa fonte épica */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* ====================================
   VARIÁVEIS GLOBAIS DO LAYOUT
   ==================================== */
:root {
    /* Espaçamentos globais das seções */
    --section-margin-overlap: -20px; /* Sobreposição suave entre seções */
    --section-padding-top: 80px; /* Padding superior com respiro */
    --section-padding-bottom: 120px; /* Padding inferior padrão */
    
    /* Alturas da topbar */
    --topbar-height: 60px;
    --topbar-height-expanded: 80px;
}

/* ====================================
   RESET E CONFIGURAÇÕES BASE
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ====================================
   ESTILOS BASE E LAYOUT PRINCIPAL
   ==================================== */
body {
    font-family: 'Rajdhani', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e1f2e 0%, #2b2d42 15%, #1a1b26 35%, #16171f 60%, #23252f 85%, #1e1f2e 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
    padding-top: 80px; /* Espaço para a topbar épica */
    color: #dcddde;
}

/* Overlay para melhor contraste - REMOVIDO PARA CORRIGIR ESCURECIMENTO */
/* body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
} */

/* ====================================
   CONTAINER PRINCIPAL
   ==================================== */
.nuntius-main-container {
    text-align: center;
    color: white;
    position: relative;
    z-index: 3;
    max-width: 90%;
    padding: 2rem 2rem 60px 2rem;
}

/* ====================================
   TIPOGRAFIA
   ==================================== */
/* ====================================
   TÍTULOS E TEXTOS DISCORD STYLE
   ==================================== */
.nuntius-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 10px 30px rgba(88, 101, 242, 0.3);
    background: linear-gradient(45deg, #5865F2, #FEE75C, #5865F2, #FFFFFF);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #FFFFFF;
    animation: epicGradientFlow 4s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.nuntius-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 600;
    color: #99AAB5;
    margin-bottom: 2rem;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.3s both;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nuntius-description {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    text-align: center;
    color: #99AAB5;
    animation: fadeInUp 1s ease-out 0.6s both;
    font-weight: 500;
}

/* ====================================
   BOTÃO PRINCIPAL
   ==================================== */
.nuntius-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #2b2d42, #1e1f2e);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid rgba(139, 69, 19, 0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.9s both;
    box-shadow: 0 4px 15px rgba(30, 31, 46, 0.6);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.nuntius-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.nuntius-btn:hover {
    background: linear-gradient(45deg, #1a1b26, #23252f);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 27, 38, 0.8);
    color: #ffffff;
    text-decoration: none;
}

.nuntius-btn:hover:before {
    left: 100%;
}

.nuntius-btn:focus {
    outline: 2px solid rgba(107, 114, 128, 0.8);
    outline-offset: 2px;
}

/* ====================================
   ANIMAÇÕES
   ==================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes epicGradientFlow {
    0%, 100% {
        background-position: 0% 50%;
        transform: scale(1);
    }
    25% {
        background-position: 100% 25%;
        transform: scale(1.02);
    }
    50% {
        background-position: 200% 50%;
        transform: scale(1);
    }
    75% {
        background-position: 100% 75%;
        transform: scale(1.02);
    }
}

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

/* Desktop 4K/Ultra-wide */
@media (min-width: 1921px) {
    .nuntius-main-container {
        max-width: 80%;
        padding: 3rem 3rem 60px 3rem;
    }
    
    .nuntius-title {
        font-size: 7rem;
        margin-bottom: 2rem;
    }
    
    .nuntius-subtitle {
        font-size: 2.5rem;
        margin-bottom: 2.5rem;
    }
    
    .nuntius-description {
        font-size: 1.5rem;
        max-width: 900px;
        margin-bottom: 4rem;
    }
    
    .nuntius-btn {
        padding: 20px 50px;
        font-size: 1.3rem;
    }
}

/* Desktop Large */
@media (max-width: 1920px) and (min-width: 1367px) {
    .nuntius-main-container {
        max-width: 85%;
        padding: 2.5rem 2.5rem 60px 2.5rem;
    }
    
    .nuntius-description {
        max-width: 800px;
    }
}

/* Laptop Large */
@media (max-width: 1366px) and (min-width: 1025px) {
    .nuntius-main-container {
        max-width: 90%;
        padding: 2rem 2rem 60px 2rem;
    }
    
    .nuntius-title {
        font-size: 5rem;
    }
    
    .nuntius-subtitle {
        font-size: 1.8rem;
    }
    
    .nuntius-description {
        font-size: 1.2rem;
        max-width: 700px;
    }
}

/* iPad Pro 12.9" / Tablet Large */
@media (max-width: 1024px) and (min-width: 835px) {
    body {
        padding-top: 90px; /* Ajuste para topbar maior */
    }
    
    .nuntius-main-container {
        max-width: 95%;
        padding: 2rem 1.5rem 60px 1.5rem;
    }
    
    .nuntius-title {
        font-size: 4.5rem;
        margin-bottom: 1.5rem;
    }
    
    .nuntius-subtitle {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .nuntius-description {
        font-size: 1.1rem;
        max-width: 650px;
        margin-bottom: 2.5rem;
    }
    
    .nuntius-btn {
        padding: 14px 36px;
        font-size: 1rem;
    }
}

/* iPad Air / iPad 10.9" - BREAKPOINT ESPECÍFICO */
@media (max-width: 834px) and (min-width: 769px) {
    body {
        padding-top: 85px; /* Ajuste para topbar do iPad Air */
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .nuntius-main-container {
        max-width: 100%;
        padding: 1.5rem 1rem 60px 1rem;
    }
    
    .nuntius-title {
        font-size: 4rem;
        margin-bottom: 1.2rem;
        letter-spacing: 2px;
    }
    
    .nuntius-subtitle {
        font-size: 1.4rem;
        margin-bottom: 1.8rem;
        letter-spacing: 1.5px;
    }
    
    .nuntius-description {
        font-size: 1rem;
        max-width: 600px;
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    
    .nuntius-btn {
        padding: 12px 32px;
        font-size: 0.95rem;
        border-radius: 40px;
    }
    
    /* Ajuste do background para iPad Air */
    body {
        background-size: cover;
        background-attachment: scroll; /* Melhor performance em tablets */
    }
}

/* iPad Mini / Tablet Medium */
@media (max-width: 768px) and (min-width: 601px) {
    body {
        padding-top: 80px;
        padding: 1rem;
        align-items: flex-start;
        justify-content: flex-start;
        min-height: 100vh;
    }
    
    .nuntius-main-container {
        max-width: 100%;
        padding: 2rem 1rem 60px 1rem;
        margin-top: 2rem;
    }
    
    .nuntius-title {
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }
    
    .nuntius-subtitle {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .nuntius-description {
        font-size: 0.95rem;
        max-width: 550px;
        margin-bottom: 2rem;
    }
    
    .nuntius-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

/* Mobile Large - iPhone Pro Max, etc */
@media (max-width: 600px) and (min-width: 481px) {
    body {
        padding-top: 70px;
        padding: 0.8rem;
    }
    
    .nuntius-main-container {
        padding: 1.5rem 0.8rem 60px 0.8rem;
        max-width: 100%;
    }
    
    .nuntius-title {
        font-size: 3rem;
        margin-bottom: 1rem;
        letter-spacing: 1px;
    }
    
    .nuntius-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .nuntius-description {
        font-size: 0.9rem;
        margin-bottom: 2rem;
        max-width: 100%;
    }
    
    .nuntius-btn {
        padding: 11px 28px;
        font-size: 0.85rem;
        border-radius: 30px;
    }
}

/* Mobile Standard */
@media (max-width: 480px) {
    body {
        padding-top: 65px;
        padding: 0.5rem;
    }
    
    .nuntius-main-container {
        padding: 1rem 0.5rem 60px 0.5rem;
        max-width: 100%;
    }
    
    .nuntius-title {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .nuntius-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }
    
    .nuntius-description {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .nuntius-btn {
        padding: 10px 24px;
        font-size: 0.8rem;
        border-radius: 25px;
    }
}

/* Mobile Small */
@media (max-width: 360px) {
    body {
        padding-top: 60px;
    }
    
    .nuntius-main-container {
        padding: 0.8rem 0.3rem 60px 0.3rem;
    }
    
    .nuntius-title {
        font-size: 2.2rem;
        margin-bottom: 0.6rem;
    }
    
    .nuntius-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .nuntius-description {
        font-size: 0.8rem;
        margin-bottom: 1.2rem;
    }
    
    .nuntius-btn {
        padding: 9px 20px;
        font-size: 0.75rem;
    }
}

/* iPhone SE e dispositivos muito pequenos */
@media (max-width: 320px) {
    .nuntius-main-container {
        padding: 0.5rem 0.2rem 60px 0.2rem;
    }
    
    .nuntius-title {
        font-size: 2rem;
    }
    
    .nuntius-subtitle {
        font-size: 0.9rem;
    }
    
    .nuntius-description {
        font-size: 0.75rem;
    }
    
    .nuntius-btn {
        padding: 8px 18px;
        font-size: 0.7rem;
    }
}

/* ====================================
   ORIENTAÇÃO PAISAGEM
   ==================================== */

/* Paisagem em tablets */
@media (max-height: 600px) and (orientation: landscape) and (min-width: 769px) {
    body {
        padding-top: 70px;
        align-items: center;
        justify-content: center;
    }
    
    .nuntius-main-container {
        padding: 1rem 1rem 60px 1rem;
    }
    
    .nuntius-title {
        font-size: 3rem;
        margin-bottom: 0.8rem;
    }
    
    .nuntius-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .nuntius-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}

/* Paisagem em mobile */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 768px) {
    body {
        overflow-y: auto;
        min-height: auto;
        height: auto;
        align-items: flex-start;
        padding-top: 60px;
        padding-bottom: 1rem;
    }
    
    .nuntius-main-container {
        margin: 1rem auto;
        padding: 1rem 0.5rem 60px 0.5rem;
    }
    
    .nuntius-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .nuntius-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .nuntius-description {
        font-size: 0.8rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    
    .nuntius-btn {
        padding: 8px 20px;
        font-size: 0.75rem;
    }
}

/* Ajustes para melhor performance em dispositivos móveis */
@media (max-width: 768px) {
    body {
        background-attachment: scroll; /* Melhor performance */
    }
    
    /* Otimizações de animação para mobile */
    .nuntius-title,
    .nuntius-subtitle,
    .nuntius-description,
    .nuntius-btn {
        animation-duration: 0.6s; /* Animações mais rápidas */
    }
}

/* Modo escuro forçado para melhor contraste */
@media (prefers-color-scheme: dark) {
    body::before {
        background: rgba(0, 0, 0, 0.8);
    }
}

/* Redução de movimentos para acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .nuntius-title,
    .nuntius-subtitle,
    .nuntius-description,
    .nuntius-btn {
        animation: none;
    }
    
    .nuntius-title {
        background: #5865F2;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}
