/* ==================== WYD PRIME PREMIUM THEME ==================== */
/* Visual premium com efeitos cinematográficos e animações suaves */

/* ==================== CORREÇÃO BODY/HTML ==================== */

html, body {
    min-height: 100%;
    background: transparent !important;
}

body {
    background: transparent !important;
    position: relative;
}

/* ==================== CONTEÚDO ACIMA DO BACKGROUND ==================== */

header,
main,
section,
footer,
.container {
    position: relative;
    z-index: 1;
}

/* ==================== PERFORMANCE OPTIMIZATIONS ==================== */

/* Will-change for animated elements */
.cinematic-bg {
    will-change: transform;
}

/* Reduce particles on mobile */
@media (max-width: 768px) {
    .fire-particle:nth-child(n+6) {
        display: none;
    }
    
    .magic-particle:nth-child(n+5) {
        display: none;
    }
}

/* ==================== LOGO WYD PRIME PROFESSIONAL ==================== */

.logo {
    position: relative;
    display: inline-block;
}

.logo h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 25%, #FFD700 50%, #FFA500 75%, #FFD700 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoShimmer 4s linear infinite, logoPulse 2s ease-in-out infinite;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 215, 0, 0.6),
        0 0 60px rgba(255, 165, 0, 0.4),
        0 0 80px rgba(255, 140, 0, 0.2);
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* Fantasy Emblem/Crest Behind Text */
.logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: 
        radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, transparent 30%),
        conic-gradient(from 0deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.3), rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.2));
    border-radius: 50%;
    animation: crestRotate 20s linear infinite;
    z-index: 1;
}

/* Light Rays/Aura Glow */
.logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at center, rgba(255, 215, 0, 0.15) 0%, transparent 40%),
        linear-gradient(45deg, transparent 40%, rgba(255, 215, 0, 0.05) 50%, transparent 60%),
        linear-gradient(135deg, transparent 40%, rgba(255, 165, 0, 0.05) 50%, transparent 60%),
        linear-gradient(225deg, transparent 40%, rgba(255, 215, 0, 0.05) 50%, transparent 60%),
        linear-gradient(315deg, transparent 40%, rgba(255, 165, 0, 0.05) 50%, transparent 60%);
    animation: auraGlow 3s ease-in-out infinite;
    z-index: 0;
}

/* Subtle Particles Around Logo */
.particles-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250%;
    height: 250%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.8) 0%, rgba(255, 165, 0, 0.4) 50%, transparent 100%);
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 30%; left: 85%; animation-delay: 1s; }
.particle:nth-child(3) { top: 70%; left: 15%; animation-delay: 2s; }
.particle:nth-child(4) { top: 80%; left: 90%; animation-delay: 3s; }
.particle:nth-child(5) { top: 50%; left: 5%; animation-delay: 4s; }
.particle:nth-child(6) { top: 45%; left: 95%; animation-delay: 5s; }

/* Logo Animations */
@keyframes logoShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes logoPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    }
    50% { 
        transform: scale(1.02);
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }
}

@keyframes crestRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes auraGlow {
    0%, 100% { 
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0) scale(0.5);
        opacity: 0;
    }
    25% {
        opacity: 1;
        transform: translate(10px, -10px) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-5px, -20px) scale(0.8);
    }
    75% {
        opacity: 0.4;
        transform: translate(5px, -30px) scale(0.6);
    }
    100% {
        transform: translate(0, -40px) scale(0.3);
        opacity: 0;
    }
}

/* Site Logo CSS - Clean and Visible */
.site-logo {
    height: 120px;
    max-width: 450px;
    width: auto;
    object-fit: contain;
    display: flex;
    align-items: center;
    padding: 10px 0;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.45));
    animation: none !important;
    transform: none !important;
    transition: none !important;
}

.site-logo:hover {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.55));
    transform: none !important;
}

/* Logo Wrapper */
.logo-wrapper {
    min-width: 450px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* Header adjustments */
.header {
    min-height: 140px;
    display: flex;
    align-items: center;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Additional header adjustments for larger logo */
header,
.header-container {
    min-height: 140px;
}

/* Disable all logo pseudo-elements and effects */
.logo-wrapper::before,
.logo-wrapper::after,
.site-logo::before,
.site-logo::after {
    display: none !important;
    content: none !important;
}

/* Disable particles around logo */
.particles-logo,
.particle {
    display: none !important;
}

/* Disable logo glow effects */
.logo::before,
.logo::after {
    display: none !important;
    content: none !important;
}

/* HEADER PROFISSIONAL DEFINITIVO - LOGO ESQUERDA, MENU DIREITA */

/* 1) CONTAINER PRINCIPAL */
.header-container,
.nav-container,
.header .container {
    display: flex !important;
    align-items: center;
    justify-content: space-between !important;
    padding: 10px 60px !important;
    width: 100%;
}

/* 2) LOGO (ESQUERDA COM RESPIRO) */
.logo,
.site-logo,
.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo img,
.site-logo img {
    height: 110px !important;
    width: auto;
    max-width: 500px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 200, 0, 0.4));
}

/* 3) MENU (DIREITA LIMPO) */
.navbar,
.menu,
.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
}

/* 4) ESPAÇAMENTO VISUAL PREMIUM */
header,
.site-header,
.header {
    min-height: 110px;
    padding: 10px 0;
    display: block;
}

/* 5) REMOVER GRID ANTERIOR */
.header-container,
.nav-container,
.header .container {
    grid-template-columns: unset !important;
    grid-column: unset !important;
}

.logo,
.site-logo,
.logo-wrapper {
    grid-column: unset !important;
}

.navbar,
.menu,
.nav {
    grid-column: unset !important;
}

/* 6) Override any conflicting rules */
header img[src*="logo"],
header img[src*="Logo"],
header img[src*="logo_prime"],
img[src*="logo_prime.PNG"],
img[src*="logo_prime.png"] {
    height: 110px !important;
    width: auto;
    max-width: 500px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 200, 0, 0.4));
}

/* 7) RESPONSIVO */
@media (max-width: 768px) {
    .header-container,
    .header .container {
        flex-direction: column;
        gap: 20px;
        padding: 10px 20px !important;
        text-align: center;
    }
    
    .logo,
    .site-logo,
    .logo-wrapper {
        justify-content: center;
        order: 1;
    }
    
    .navbar,
    .menu,
    .nav {
        justify-content: center;
        flex-wrap: wrap;
        order: 2;
    }
    
    .logo img,
    .site-logo img,
    header img[src*="logo_prime"],
    img[src*="logo_prime.PNG"],
    img[src*="logo_prime.png"] {
        height: 70px !important;
        max-width: 220px !important;
    }
    
    header,
    .site-header,
    .header {
        min-height: 100px;
        padding: 10px 0;
    }
}

@keyframes logoGlow {
    0%, 100% { 
        background-position: 0% 50%;
        filter: brightness(1);
    }
    50% { 
        background-position: 100% 50%;
        filter: brightness(1.2);
    }
}

/* ==================== CARDS PREMIUM ==================== */

.theme-card,
.premium-card,
.donate-form,
.download-card,
.requirements-card,
.ranking-table-container,
.store-card,
.dashboard-card,
.panel-actions .panel-action-btn {
    background: rgba(15, 15, 30, 0.92);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-card:hover,
.premium-card:hover,
.donate-form:hover,
.download-card:hover,
.requirements-card:hover,
.ranking-table-container:hover,
.store-card:hover,
.dashboard-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 0, 0.75);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.18);
}

/* ==================== EFEITO SHIMMER ==================== */

.theme-card::before,
.premium-card::before,
.donate-form::before,
.download-card::before,
.requirements-card::before,
.ranking-table-container::before,
.store-card::before,
.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 215, 0, 0.1),
        rgba(255, 255, 255, 0.05),
        rgba(255, 215, 0, 0.1),
        transparent
    );
    transition: left 0.6s ease;
    pointer-events: none;
}

.theme-card:hover::before,
.premium-card:hover::before,
.donate-form:hover::before,
.download-card:hover::before,
.requirements-card:hover::before,
.ranking-table-container:hover::before,
.store-card:hover::before,
.dashboard-card:hover::before {
    left: 100%;
}

/* ==================== BOTÕES PREMIUM ==================== */

.btn-primary,
.btn-donate,
.btn-download,
.btn-guildmark,
.btn-submit,
.btn-primary-theme {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #0f0f1e;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover,
.btn-donate:hover,
.btn-download:hover,
.btn-guildmark:hover,
.btn-submit:hover,
.btn-primary-theme:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    filter: brightness(1.1);
}

.btn-secondary,
.btn-danger {
    background: linear-gradient(135deg, #ef2222, #b70000);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-secondary:hover,
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 34, 34, 0.4);
    filter: brightness(1.1);
}

/* ==================== TABELA RANKING PREMIUM ==================== */

.ranking-table tbody tr:nth-child(1) {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border-left: 3px solid #FFD700;
}

.ranking-table tbody tr:nth-child(2) {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.1), rgba(192, 192, 192, 0.05));
    border-left: 3px solid #C0C0C0;
}

.ranking-table tbody tr:nth-child(3) {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.1), rgba(205, 127, 50, 0.05));
    border-left: 3px solid #CD7F32;
}

.ranking-table tbody tr:hover {
    background: rgba(255, 215, 0, 0.08);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

.ranking-table tbody tr:nth-child(1):hover {
    background: rgba(255, 215, 0, 0.15);
}

.ranking-table tbody tr:nth-child(2):hover {
    background: rgba(192, 192, 192, 0.15);
}

.ranking-table tbody tr:nth-child(3):hover {
    background: rgba(205, 127, 50, 0.15);
}

/* ==================== EVENTOS PREMIUM ==================== */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 30px 0;
}

.event-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(20, 10, 5, 0.8));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    animation: shimmer 3s linear infinite;
}

.event-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.event-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    align-self: flex-start;
}

.status-active {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid rgba(0, 255, 0, 0.4);
}

.status-soon {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    border: 1px solid rgba(255, 165, 0, 0.4);
}

.status-ended {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
    border: 1px solid rgba(255, 0, 0, 0.4);
}

.event-info {
    flex: 1;
}

.event-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFD700;
    margin: 0 0 8px 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.event-card h3 i {
    margin-right: 8px;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.event-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFA500;
    font-weight: 600;
}

.event-time i {
    color: #FFD700;
}

.event-content {
    margin-top: 15px;
}

.event-description {
    color: #E0E0E0;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.event-rewards h4 {
    color: #FFD700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-rewards ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-rewards li {
    color: #E0E0E0;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.event-rewards li::before {
    content: '💎';
    position: absolute;
    left: 0;
    color: #FFA500;
}

.event-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

/* ==================== LOJA DE DOAÇÕES PREMIUM ==================== */

.store-grid {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    gap: 25px;
    justify-content: center;
    margin: 40px auto;
    max-width: 1000px;
}

.store-card.popular {
    border-color: rgba(255, 215, 0, 0.6);
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.3);
}

.store-card.popular:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 16px 50px rgba(255, 215, 0, 0.4);
}

.store-img-left img {
    transition: all 0.3s ease;
}

.store-card:hover .store-img-left img {
    transform: scale(1.1) rotate(5deg);
}

/* ==================== PAINEL PREMIUM ==================== */

.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
    max-width: 1150px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dashboard-card {
    min-height: auto;
    padding: 25px;
}

.panel-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.panel-action-btn {
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.45);
    color: #FFD700;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.panel-action-btn:hover {
    background: #FFD700;
    color: #111;
    transform: translateY(-3px);
    text-decoration: none;
}

.panel-action-btn.danger {
    background: linear-gradient(135deg, #ef2222, #b70000);
    color: white;
    border: none;
}

.panel-action-btn.danger:hover {
    background: linear-gradient(135deg, #b70000, #ef2222);
    color: white;
}

/* ==================== DOWNLOAD PREMIUM ==================== */

.download-section {
    padding: 80px 20px;
}

.download-container {
    max-width: 1100px;
    margin: 0 auto;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.download-card {
    padding: 30px;
    text-align: center;
}

.requirements-card {
    padding: 30px;
}

/* ==================== HOME PAGE PREMIUM ==================== */

.features {
    max-width: 1100px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.feature-card {
    padding: 25px;
    text-align: center;
}

.news {
    max-width: 900px;
    margin: 60px auto;
    padding: 30px;
}

/* ==================== RESPONSIVO PREMIUM ==================== */

@media (max-width: 900px) {
    .store-grid {
        grid-template-columns: repeat(2, 300px);
    }
    
    .panel-grid {
        grid-template-columns: 1fr;
    }
    
    .panel-actions {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .store-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news {
        margin: 40px 20px;
        padding: 20px;
    }
    
    .panel-grid {
        padding: 20px 15px;
    }
    
    .dashboard-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-danger {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .store-grid {
        max-width: 350px;
    }
    
    .store-card {
        width: 100%;
        height: auto;
        min-height: 380px;
    }
}

/* ==================== ANIMAÇÕES ADICIONAIS ==================== */

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.premium-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #0f0f1e;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    animation: pulse 2s ease-in-out infinite;
}

/* ==================== MELHORIAS VISUAIS GERAIS ==================== */

body {
    background-attachment: fixed;
}

.header {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #FFD700;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: #FFD700;
    transform: translateY(-2px);
}

/* ==================== SCROLLBAR PREMIUM ==================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700);
}
