﻿/* ==========================================
   UO SHARD BRASIL - STYLE.CSS
   Design Medieval Moderno
   ========================================== */

/* Reset e Variáveis */
:root {
    --primary-color: #1a5f1a;      /* Verde UO */
    --secondary-color: #d4af37;    /* Dourado */
    --accent-color: #ffcc00;       /* Amarelo */
    --dark-bg: #0a0a0a;            /* Preto quase total */
    --dark-secondary: #1a1a1a;     /* Cinza escuro */
    --dark-tertiary: #2d2d2d;      /* Cinza médio */
    --text-light: #e0e0e0;         /* Texto claro */
    --text-muted: #a0a0a0;         /* Texto suave */
    --success: #00ff00;            /* Verde sucesso */
    --font-medieval: 'Cinzel', serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
    background: linear-gradient(180deg, var(--dark-secondary) 0%, var(--dark-bg) 100%);
    border-bottom: 3px solid var(--secondary-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 2px 15px rgba(212, 175, 55, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-family: var(--font-medieval);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.logo .highlight {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu a i {
    color: var(--secondary-color);
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.discord-btn {
    background: linear-gradient(135deg, #5865F2, #4752C4) !important;
    color: #fff !important;
    border: 2px solid #5865F2;
}

.discord-btn:hover {
    background: linear-gradient(135deg, #4752C4, #3c45a8) !important;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.6);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    margin-top: 70px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%231a1a1a" width="1200" height="600"/><path fill="%232d2d2d" d="M0 300L50 325L100 300L150 275L200 300L250 325L300 300L350 275L400 300L450 325L500 300L550 275L600 300L650 325L700 300L750 275L800 300L850 325L900 300L950 275L1000 300L1050 325L1100 300L1150 275L1200 300V600H0V300Z"/></svg>');
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 4px solid var(--secondary-color);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.hero-logo {
    margin-bottom: 30px;
}

.main-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-family: var(--font-medieval);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: var(--accent-color);
}

/* Server Status */
.server-status {
    background: linear-gradient(135deg, var(--dark-secondary), var(--dark-tertiary));
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px 40px;
    display: inline-flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    box-shadow: 0 0 30px rgba(26, 95, 26, 0.3);
}

.status-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
}

.status-box.online {
    background: rgba(0, 255, 0, 0.1);
    color: var(--success);
    border: 2px solid var(--success);
}

.status-box.online i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-info {
    text-align: left;
}

.status-info p {
    margin: 5px 0;
    color: var(--text-muted);
}

.status-info strong {
    color: var(--secondary-color);
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #2d8f2d);
    color: #fff;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(26, 95, 26, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 45px;
    font-size: 1.2rem;
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features {
    padding: 80px 0;
    background: var(--dark-secondary);
}

.section-title {
    font-family: var(--font-medieval);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: linear-gradient(135deg, var(--dark-tertiary), var(--dark-secondary));
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    border-color: var(--secondary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), #2d8f2d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--secondary-color);
}

.feature-icon i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.feature-card h3 {
    font-family: var(--font-medieval);
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================
   NEWS SECTION
   ========================================== */
.news {
    padding: 80px 0;
    background: var(--dark-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: linear-gradient(135deg, var(--dark-secondary), var(--dark-tertiary));
    border: 2px solid var(--dark-tertiary);
    border-radius: 10px;
    padding: 25px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
}

.news-card:hover {
    border-color: var(--secondary-color);
    transform: translateX(5px);
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.5);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #2d8f2d);
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    padding: 15px;
    min-width: 80px;
}

.news-date .day {
    font-size: 2rem;
    font-weight: 900;
    color: var(--secondary-color);
    line-height: 1;
}

.news-date .month {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-top: 5px;
}

.news-content h3 {
    font-family: var(--font-medieval);
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.news-content p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
    gap: 10px;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta {
    padding: 100px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%231a5f1a" width="1200" height="400" opacity="0.3"/></svg>');
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
    border-top: 3px solid var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
}

.cta h2 {
    font-family: var(--font-medieval);
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--dark-secondary);
    border-top: 4px solid var(--secondary-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: var(--font-medieval);
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-section ul li a i {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--dark-tertiary);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    color: #fff;
}

.footer-section p i {
    color: var(--success);
    margin-right: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid var(--dark-tertiary);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 968px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--dark-secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 20px 0;
        border-bottom: 3px solid var(--secondary-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .server-status {
        flex-direction: column;
        gap: 15px;
    }

    .status-info {
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .news-card {
        flex-direction: column;
    }

    .news-date {
        flex-direction: row;
        gap: 10px;
        min-width: auto;
    }
}

@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .features-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}