/*
Name: Viking Server - Natural Essence Mod
Description: Template modernizado para servidor Tibia 8.0
Based on: Natural Essence by Viktor Persson
Modified for: Viking Server
*/

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #1a1a1a url(img/bg.jpg);
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    padding: 20px 0;
    min-height: 100vh;
}

a {
    color: #D4AF37;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #ffd700;
    text-decoration: underline;
}

/* ========== ESTRUTURA PRINCIPAL ========== */
#wrapper {
    background: #222;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    overflow: hidden;
}

#container {
    width: 100%;
}

/* ========== CABEÇALHO PERFEITAMENTE CENTRALIZADO ========== */
.title {
    background: linear-gradient(135deg, #0a1931 0%, #1a1a2e 100%);
    padding: 50px 20px 25px 20px;
    border-bottom: 4px solid #8B4513;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Efeito de brilho no fundo */
.title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(
            circle at center,
            rgba(212, 175, 55, 0.1) 0%,
            rgba(212, 175, 55, 0.05) 30%,
            transparent 70%
        );
    pointer-events: none;
}

/* TÍTULO PERFEITAMENTE CENTRALIZADO */
.title h1 {
    color: #D4AF37;
    font-size: 4.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 10px 0;
    padding: 0;
    text-shadow: 
        0 3px 0 #6b3e0f,
        0 6px 10px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(212, 175, 55, 0.6);
    line-height: 1;
    position: relative;
    z-index: 2;
    animation: titleGlow 4s ease-in-out infinite;
    width: 100%;
    max-width: 1000px;
    display: block;
    text-align: center;
}

@keyframes titleGlow {
    0%, 100% { 
        text-shadow: 
            0 3px 0 #6b3e0f,
            0 6px 10px rgba(0, 0, 0, 0.9),
            0 0 30px rgba(212, 175, 55, 0.5);
    }
    50% { 
        text-shadow: 
            0 3px 0 #6b3e0f,
            0 6px 15px rgba(0, 0, 0, 1),
            0 0 50px rgba(212, 175, 55, 0.8);
    }
}

/* Decoração centralizada */
.title-decoration {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px auto 15px auto;
    max-width: 350px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.decoration-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    flex: 1;
    border-radius: 2px;
    animation: lineGlow 3s infinite;
}

@keyframes lineGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.decoration-icon {
    margin: 0 15px;
    color: #D4AF37;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
}

/* Subtítulo perfeitamente centralizado */
.title .tagline {
    color: #b8c1d9;
    font-size: 1.4rem;
    font-weight: 300;
    margin: 0 auto 25px auto;
    text-shadow: 0 2px 5px rgba(0,0,0,0.7);
    line-height: 1.4;
    max-width: 600px;
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease-out;
    width: 100%;
    text-align: center;
    padding: 0 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsividade */
@media (max-width: 992px) {
    .title {
        padding: 40px 15px 20px 15px;
    }
    
    .title h1 {
        font-size: 3.5rem;
        letter-spacing: 2px;
        max-width: 800px;
    }
    
    .title .tagline {
        font-size: 1.2rem;
        max-width: 500px;
    }
    
    .title-decoration {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .title h1 {
        font-size: 2.8rem;
        letter-spacing: 1px;
        max-width: 600px;
    }
    
    .title .tagline {
        font-size: 1.1rem;
        margin-bottom: 20px;
        max-width: 450px;
    }
    
    .title-decoration {
        max-width: 250px;
        margin: 5px auto 10px auto;
    }
    
    .decoration-icon {
        font-size: 1.3rem;
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    .title {
        padding: 30px 10px 15px 10px;
    }
    
    .title h1 {
        font-size: 2.3rem;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
        max-width: 400px;
    }
    
    .title .tagline {
        font-size: 1rem;
        margin-bottom: 15px;
        max-width: 350px;
        padding: 0 15px;
    }
    
    .title-decoration {
        max-width: 200px;
    }
    
    .decoration-icon {
        font-size: 1.1rem;
        margin: 0 8px;
    }
}

@media (max-width: 400px) {
    .title h1 {
        font-size: 2rem;
    }
    
    .title .tagline {
        font-size: 0.95rem;
    }
}

/* ========== BARRA DE INFORMAÇÕES ANIMADA ========== */
.info-marquee {
    background: linear-gradient(90deg, 
        rgba(15, 52, 96, 0.9) 0%, 
        rgba(26, 26, 46, 0.9) 50%, 
        rgba(15, 52, 96, 0.9) 100%);
    padding: 15px 0;
    border-top: 2px solid #8B4513;
    border-bottom: 2px solid #8B4513;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

/* Gradiente nas bordas para efeito de fade */
.info-marquee::before,
.info-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.info-marquee::before {
    left: 0;
    background: linear-gradient(90deg, 
        rgba(15, 52, 96, 1) 0%, 
        rgba(15, 52, 96, 0) 100%);
}

.info-marquee::after {
    right: 0;
    background: linear-gradient(90deg, 
        rgba(15, 52, 96, 0) 0%, 
        rgba(15, 52, 96, 1) 100%);
}

/* Container da animação */
.marquee-container {
    display: flex;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
    padding: 0 20px;
}

/* Pausa na animação ao passar o mouse */
.info-marquee:hover .marquee-container {
    animation-play-state: paused;
}

/* Animação do scroll */
@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Itens da marquee */
.marquee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e0e0e0;
    font-size: 1.2rem;
    font-weight: 500;
    white-space: nowrap;
    margin: 0 40px;
    padding: 8px 0;
}

.marquee-icon {
    color: #D4AF37;
    font-size: 1.4rem;
    filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.5));
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.marquee-value {
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(139, 69, 19, 0.2));
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    min-width: 120px;
    text-align: center;
}

/* Separador entre os itens */
.marquee-separator {
    color: #D4AF37;
    font-size: 1.5rem;
    opacity: 0.7;
    margin: 0 10px;
}

/* ========== CABEÇALHO SIMPLIFICADO ========== */
.title {
    background: linear-gradient(135deg, #0a1931 0%, #1a1a2e 100%);
    padding: 40px 20px 20px 20px;
    border-bottom: 4px solid #8B4513;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Efeito de partículas no fundo */
.title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(10px, -10px); }
    66% { transform: translate(-10px, 10px); }
}

.title h1 {
    color: #D4AF37;
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 15px 0;
    padding: 0;
    text-shadow: 
        0 3px 0 #6b3e0f,
        0 6px 10px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(212, 175, 55, 0.6);
    line-height: 1;
    position: relative;
    z-index: 2;
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { 
        text-shadow: 
            0 3px 0 #6b3e0f,
            0 6px 10px rgba(0, 0, 0, 0.9),
            0 0 30px rgba(212, 175, 55, 0.5);
    }
    50% { 
        text-shadow: 
            0 3px 0 #6b3e0f,
            0 6px 15px rgba(0, 0, 0, 1),
            0 0 50px rgba(212, 175, 55, 0.8);
    }
}

/* Decoração */
.title-decoration {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto 20px auto;
    max-width: 350px;
    position: relative;
    z-index: 2;
}

.decoration-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    flex: 1;
    border-radius: 2px;
    animation: lineGlow 3s infinite;
}

@keyframes lineGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.decoration-icon {
    margin: 0 20px;
    color: #D4AF37;
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
    animation: swordFloat 3s ease-in-out infinite;
}

@keyframes swordFloat {
    0%, 100% { 
        transform: rotate(0deg) translateY(0);
    }
    33% { 
        transform: rotate(5deg) translateY(-3px);
    }
    66% { 
        transform: rotate(-5deg) translateY(3px);
    }
}

/* Subtítulo */
.title .tagline {
    color: #b8c1d9;
    font-size: 1.4rem;
    font-weight: 300;
    margin: 0 auto 25px auto;
    text-shadow: 0 2px 5px rgba(0,0,0,0.7);
    line-height: 1.4;
    max-width: 600px;
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsividade */
@media (max-width: 992px) {
    .title h1 {
        font-size: 3.2rem;
    }
    
    .marquee-item {
        font-size: 1.1rem;
        margin: 0 25px;
    }
    
    .marquee-value {
        min-width: 100px;
        padding: 4px 10px;
    }
}

@media (max-width: 768px) {
    .title h1 {
        font-size: 2.5rem;
    }
    
    .title .tagline {
        font-size: 1.1rem;
    }
    
    .info-marquee {
        padding: 12px 0;
    }
    
    .marquee-item {
        font-size: 1rem;
        margin: 0 20px;
        gap: 8px;
    }
    
    .marquee-icon {
        font-size: 1.2rem;
    }
    
    .marquee-value {
        min-width: 80px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .title {
        padding: 30px 15px 15px 15px;
    }
    
    .title h1 {
        font-size: 2rem;
    }
    
    .title .tagline {
        font-size: 1rem;
    }
    
    .info-marquee {
        display: none; /* Em telas muito pequenas, pode esconder a marquee */
    }
    
    /* Alternativa para mobile: mostrar informações estáticas */
    .mobile-server-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 20px;
        padding: 0 10px;
    }
    
    .mobile-info-item {
        background: rgba(212, 175, 55, 0.1);
        padding: 12px;
        border-radius: 8px;
        text-align: center;
        border: 1px solid rgba(212, 175, 55, 0.3);
    }
}

/* Para telas maiores que 480px, esconder a versão mobile */
@media (min-width: 481px) {
    .mobile-server-info {
        display: none;
    }
}

/* ========== MENU DE NAVEGAÇÃO ========== */
.navigation {
    background: #222;
    border-top: 1px solid #333;
    border-bottom: 2px solid #8B4513;
    height: auto;
    min-height: 50px;
}

.navigation a {
    display: inline-block;
    padding: 15px 25px;
    color: #ddd;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-right: 1px solid #333;
    background: transparent;
    transition: all 0.3s;
    line-height: normal;
}

.navigation a:hover {
    background: #333;
    color: #D4AF37;
}

.navigation a#active {
    background: #8B4513;
    color: white;
    border-bottom: 3px solid #D4AF37;
}

.navigation .button {
    background: transparent;
}

.navigation .button:hover {
    background: #2a2a2a;
}

/* ========== LAYOUT PRINCIPAL ========== */
.main {
    background: #151515;
    min-height: 500px;
}

.main#two-columns {
    display: flex;
    flex-wrap: wrap;
    background: #151515;
}

/* ========== COLUNAS ========== */
.col2 {
    display: flex;
    width: 100%;
    min-height: 600px;
}

.left {
    flex: 1;
    padding: 25px;
    background: #1a1a1a;
    order: 1;
}

.right {
    width: 320px;
    padding: 20px;
    background: #222;
    border-left: 2px solid #333;
    order: 2;
}

/* ========== CONTEÚDO ========== */
.content {
    padding: 20px;
    background: rgba(255,255,255,0.02);
    border-radius: 5px;
    min-height: 400px;
}

.right .content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 15px;
}

/* ========== BLOCK LIST (SIDEBAR) ========== */
ul.block {
    border: none;
    margin: 10px 0;
    padding: 0;
    width: 100%;
}

.block li {
    border-bottom: 1px solid #333;
    list-style: none;
    margin: 0;
    padding: 0;
}

.block li a {
    color: #ccc;
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.block li a:hover {
    background: #2a2a2a;
    color: #D4AF37;
    border-left: 3px solid #D4AF37;
    padding-left: 20px;
}

.block li a span {
    color: #D4AF37;
    font-weight: bold;
}

.right .block li {
    border-bottom: 1px solid #444;
}

.right .block li a:hover {
    background: #2a2a2a;
}

/* ========== FORMULÁRIOS ========== */
form {
    margin: 20px 0;
}

input, select, textarea {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #e0e0e0;
    padding: 10px 12px;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 15px;
    font-family: inherit;
    font-size: 14px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

button, input[type="submit"], input[type="button"] {
    background: #8B4513;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s;
}

button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background: #A0522D;
}

label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-weight: 600;
}

/* ========== TABELAS ========== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #1a1a1a;
    border: 1px solid #333;
}

th {
    background: #2a2a2a;
    color: #D4AF37;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #8B4513;
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid #333;
    color: #ccc;
}

tr:hover {
    background: #222;
}

/* ========== BOTTOM SECTION ========== */
.bottom {
    background: #1a1a1a;
    border-top: 2px solid #333;
    color: #aaa;
    padding: 25px;
    display: flex;
    flex-wrap: wrap;
}

.bottom .left {
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
}

.bottom .right {
    width: 300px;
}

/* ========== FOOTER ========== */
.footer {
    background: #0f0f0f;
    color: #777;
    padding: 20px;
    border-top: 2px solid #8B4513;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer .left {
    flex: 1;
}

.footer .right {
    text-align: right;
    width: auto;
}

.footer a {
    color: #D4AF37;
}

.footer a:hover {
    color: #ffd700;
}

/* ========== UTILITÁRIOS ========== */
.clearer {
    clear: both;
    height: 0;
    font-size: 0;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ========== NOTÍCIAS ========== */
.news-section {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.news-section h2 {
    color: #D4AF37;
    border-bottom: 2px solid #8B4513;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.news-item {
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.03);
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.news-item:hover {
    background: rgba(255,255,255,0.05);
}

.news-date {
    color: #95a5a6;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.news-title {
    color: #f0f0f0;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.news-title a {
    color: inherit;
}

.news-title a:hover {
    color: #D4AF37;
}

.news-preview {
    color: #bdc3c7;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ========== CARDS MODERNOS ========== */
.card {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-color: #444;
}

.card-header {
    color: #D4AF37;
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 1200px) {
    #wrapper {
        margin: 0 10px;
        width: calc(100% - 20px);
    }
}

@media (max-width: 992px) {
    .col2 {
        flex-direction: column;
    }
    
    .right {
        width: 100%;
        border-left: none;
        border-top: 2px solid #333;
        order: 2;
    }
    
    .left {
        order: 1;
    }
    
    .bottom .right {
        width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px 0;
        font-size: 13px;
    }
    
    .title h1 {
        font-size: 2rem;
    }
    
    .navigation a {
        display: block;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #333;
        text-align: center;
        padding: 12px;
    }
    
    .navigation a#active {
        border-bottom: 3px solid #D4AF37;
    }
    
    .radio-container {
        position: relative;
        top: 0;
        right: 0;
        text-align: center;
        margin: 10px auto;
    }
    
    .content {
        padding: 15px;
    }
    
    .footer {
        flex-direction: column;
        text-align: center;
    }
    
    .footer .right {
        text-align: center;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .title h1 {
        font-size: 1.6rem;
    }
    
    .left, .right {
        padding: 15px;
    }
    
    .bottom {
        padding: 15px;
    }
    
    .bottom .left, .bottom .right {
        width: 100%;
        padding: 0;
    }
}

/* ========== ANIMAÇÕES ========== */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.blinking {
    animation: blink 1.5s infinite;
    color: #D4AF37 !important;
}

/* ========== BOTÕES ESPECIAIS ========== */
.btn-download {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white !important;
    font-weight: 700;
}

.btn-download:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
}

.btn-vip {
    background: linear-gradient(135deg, #D4AF37, #b8941f);
    color: #000 !important;
    font-weight: 700;
}

.btn-vip:hover {
    background: linear-gradient(135deg, #b8941f, #9c7d1a);
}

/* ========== SCROLLBAR PERSONALIZADA ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}