/* ========================================
   MU Online Season 4 - CSS Stylesheet
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B4513;
    --secondary-color: #DAA520;
    --accent-color: #FFD700;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #1a1a1a;
    --border-color: #333;
    --text-color: #e0e0e0;
    --text-muted: #999;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--secondary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(218, 165, 32, 0.3);
}

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

.logo h1 {
    font-size: 2rem;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(218, 165, 32, 0.5);
    font-weight: bold;
    letter-spacing: 2px;
}
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.25);
    z-index: 9999;
    transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 16px rgba(0,0,0,0.35);
}

.logo span {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: block;
    margin-top: -5px;
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
    position: relative;
}

.nav a:hover,
.nav a.active {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(218, 165, 32, 0.4);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.2) 0%, rgba(218, 165, 32, 0.2) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23050505" width="1200" height="600"/></svg>');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
    border-bottom: 3px solid var(--secondary-color);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
}

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

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(218, 165, 32, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.5);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--darker-bg);
    transform: translateY(-2px);
}

.btn-info {
    background: var(--info-color);
    color: #fff;
}

.btn-danger {
    background: var(--danger-color);
    color: #fff;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-large {
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
}

/* Stats Section */
.stats {
    padding: 60px 20px;
    background: var(--darker-bg);
}

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

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(218, 165, 32, 0.2);
}

.stat-icon {
    font-size: 3rem;
    color: var(--secondary-color);
}

.stat-info h3 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-online {
    border-color: var(--success-color);
}

.stat-online .stat-icon {
    color: var(--success-color);
    animation: pulse 2s infinite;
}

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

/* Features Section */
.features {
    padding: 60px 20px;
    background: var(--dark-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(218, 165, 32, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* News Section */
.news {
    padding: 60px 20px;
    background: var(--darker-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(218, 165, 32, 0.2);
}

.news-date {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.news-date .day {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}

.news-date .month {
    font-size: 0.9rem;
    color: #fff;
    text-transform: uppercase;
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.news-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.3) 0%, rgba(218, 165, 32, 0.3) 100%);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 2px solid var(--secondary-color);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Rankings */
.rankings {
    padding: 60px 20px;
    background: var(--dark-bg);
}

.ranking-section {
    margin-bottom: 3rem;
}

.ranking-header {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    padding: 1.5rem;
    border-radius: 10px 10px 0 0;
}

.ranking-header h2 {
    color: #fff;
    font-size: 1.5rem;
}

.ranking-table-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 10px 10px;
    overflow-x: auto;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table thead {
    background: rgba(218, 165, 32, 0.1);
}

.ranking-table th {
    padding: 1rem;
    text-align: left;
    color: var(--secondary-color);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

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

.ranking-table tr:hover {
    background: rgba(218, 165, 32, 0.05);
}

.rank-position {
    font-weight: bold;
    color: var(--secondary-color);
}

.rank-first {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
}

.rank-first .rank-position {
    color: #FFD700;
}

.rank-second {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.1) 0%, transparent 100%);
}

.rank-second .rank-position {
    color: #C0C0C0;
}

.rank-third {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.1) 0%, transparent 100%);
}

.rank-third .rank-position {
    color: #CD7F32;
}

.player-name,
.guild-name {
    font-weight: 600;
    color: var(--accent-color);
}

/* Forms */
.register-section,
.login-section,
.dashboard {
    padding: 60px 20px;
    background: var(--dark-bg);
}

.register-container,
.login-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.login-container {
    max-width: 500px;
    grid-template-columns: 1fr;
}

.register-card,
.login-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
}

.register-header,
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: block;
}

.register-header h2,
.login-header h2 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.register-header p,
.login-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.2);
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.register-footer,
.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.register-footer a,
.login-footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

.register-footer a:hover,
.login-footer a:hover {
    text-decoration: underline;
}

.register-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.register-info h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.info-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
}

.info-box h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.info-box ul {
    list-style: none;
}

.info-box ul li {
    padding: 0.5rem 0;
    color: var(--text-muted);
}

.info-box ul li i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    color: #fff;
    font-size: 1.2rem;
}

.card-body {
    padding: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    font-weight: 500;
}

.info-value {
    color: var(--text-color);
    font-weight: 600;
}

.status-active,
.status-online {
    color: var(--success-color);
}

.status-blocked,
.status-offline {
    color: var(--danger-color);
}

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

.stat-item {
    text-align: center;
}

.stat-details h4 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.characters-card {
    grid-column: 1 / -1;
}

.characters-table-container {
    overflow-x: auto;
}

.characters-table {
    width: 100%;
    border-collapse: collapse;
}

.characters-table th {
    padding: 1rem;
    text-align: left;
    background: rgba(218, 165, 32, 0.1);
    color: var(--secondary-color);
    border-bottom: 2px solid var(--border-color);
}

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

.char-name {
    font-weight: 600;
    color: var(--accent-color);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--secondary-color);
    opacity: 0.5;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Downloads */
.downloads-section {
    padding: 60px 20px;
    background: var(--dark-bg);
}

.main-download {
    background: var(--card-bg);
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    padding: 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.download-icon {
    font-size: 5rem;
    color: var(--secondary-color);
}

.download-info h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.download-details {
    list-style: none;
    margin-top: 1rem;
}

.download-details li {
    padding: 0.3rem 0;
    color: var(--text-muted);
}

.download-details li i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

.download-action {
    text-align: center;
}

.download-size {
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.download-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}

.download-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(218, 165, 32, 0.2);
}

.download-item-header {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    padding: 1.5rem;
    text-align: center;
}

.download-item-header i {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 0.5rem;
    display: block;
}

.download-item-header h3 {
    color: #fff;
}

.download-item-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.download-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.download-item-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.installation-guide,
.system-requirements {
    margin-bottom: 3rem;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.requirements-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
}

.requirements-card.recommended {
    border-color: var(--success-color);
}

.requirements-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.requirements-card ul {
    list-style: none;
}

.requirements-card ul li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.requirements-card ul li:last-child {
    border-bottom: none;
}

.requirements-card ul li strong {
    color: var(--text-color);
}

/* Footer */
.footer {
    background: var(--darker-bg);
    border-top: 2px solid var(--secondary-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .register-container {
        grid-template-columns: 1fr;
    }
    
    .main-download {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .ranking-table {
        font-size: 0.85rem;
    }
    
    .ranking-table th,
    .ranking-table td {
        padding: 0.5rem;
    }
}

