/*
Theme Name: MU Online Server Theme
Theme URI: https://yourmuserver.com
Author: Your Name
Author URI: https://yourmuserver.com
Description: Custom WordPress theme for MU Online private server with real-time rankings, player stats, and community features
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mu-online-theme
Tags: gaming, mmorpg, mu-online, server

This theme is designed specifically for MU Online private servers.
*/

/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c57211;
    --primary-dark: #874002;
    --secondary-color: #d4af37;
    --background-dark: #0a0a0a;
    --background-light: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --border-color: #333333;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* ========================================
   HEADER
   ======================================== */

.top-bar {
    background-color: var(--background-light);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.server-status {
    display: flex;
    gap: 20px;
    align-items: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--success-color);
    animation: pulse 2s infinite;
}

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

.user-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 8px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-primary);
}

.main-header {
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-light) 100%);
    padding: 20px 0;
    border-bottom: 2px solid var(--primary-color);
}

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

.site-logo img {
    max-height: 120px;
    width: auto;
    object-fit: contain;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

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

.hero-section {
    background: url('images/hero-bg.gif') center/cover no-repeat;
    padding: 100px 0;
    text-align: center;
    position: relative;
    background-attachment: fixed; /* Efecto parallax */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Reducido de 0.7 a 0.5 para ver mejor el GIF */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ========================================
   STATS SECTION
   ======================================== */

.stats-section {
    background-color: var(--background-light);
    padding: 60px 0;
}

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

.stat-card {
    background: linear-gradient(135deg, var(--background-dark) 0%, #2a2a2a 100%);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(197, 114, 17, 0.3);
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ========================================
   RANKINGS
   ======================================== */

.rankings-section {
    padding: 60px 0;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.rankings-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 30px;
    background-color: var(--background-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.ranking-table {
    width: 100%;
    background-color: var(--background-light);
    border-collapse: collapse;
}

.ranking-table th {
    background-color: var(--primary-dark);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.ranking-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.ranking-table tr:hover {
    background-color: rgba(197, 114, 17, 0.1);
}

.player-name {
    font-weight: 600;
    color: var(--secondary-color);
}

.player-class {
    color: var(--info-color);
}

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

.main-footer {
    background-color: var(--background-light);
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 2px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .rankings-tabs {
        flex-direction: column;
    }
}
