/* ===== VARIABLES DE COLORES ===== */
:root {
    --primary-brown: #8B4513;
    --light-brown: #A0522D;
    --lighter-brown: #D2B48C;
    --accent-gold: #D4AF37;
    --dark-bg: #1a1a1a;
    --card-bg: #2a2a2a;
    --text-light: #f5f5f5;
    --text-muted: #aaaaaa;
}

/* ===== ESTILOS GENERALES ===== */
body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.container-fluid {
    padding: 0 15px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    margin-bottom: 30px;
    padding: 20px 0;
}

.hero-slider-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.action-button {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 80px;
}

.action-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    position: relative;
    z-index: 2;
    font-size: 1.1em;
    height: 100%;
}

.download-btn {
    background: linear-gradient(135deg, var(--primary-brown), var(--light-brown));
}

.register-btn {
    background: linear-gradient(135deg, var(--accent-gold), #B8860B);
}

.btn-hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.action-button:hover .btn-hover-effect {
    left: 100%;
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.action-button i {
    margin-right: 10px;
    font-size: 1.2em;
}

/* ===== SERVER TIME WIDGET ===== */
.server-time-widget {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    min-height: 100px;
}

.time-icon {
    font-size: 2em;
    margin-right: 15px;
    color: var(--accent-gold);
}

.time-content h5 {
    margin: 0;
    font-size: 0.9em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.time-content span {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--accent-gold);
}

/* ===== INFO CARDS ===== */
.info-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-brown), var(--light-brown));
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--accent-gold);
}

.card-header i {
    margin-right: 10px;
    font-size: 1.2em;
    color: var(--accent-gold);
}

.card-header h3 {
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
}

.card-body {
    padding: 20px;
}

/* ===== SERVER STATS ===== */
.server-stats {
    margin-bottom: 20px;
}

.server-stats p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.stat-value {
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.1em;
}

.progress-bar-container {
    height: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), #B8860B);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s ease;
    position: relative;
}

.progress-text {
    font-size: 0.8em;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ===== SERVER RATES ===== */
.server-rates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.rate-label {
    color: var(--text-muted);
}

.rate-value {
    font-weight: bold;
    color: var(--accent-gold);
}

/* ===== RANKING TABS ===== */
.ranking-tabs {
    margin-top: 10px;
}

.tab-buttons {
    display: flex;
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.tab-button {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.tab-button.active {
    background: var(--primary-brown);
    color: white;
}

.tab-button:hover:not(.active) {
    background: rgba(139, 69, 19, 0.3);
}

.tab-content {
    min-height: 200px;
}

/* ===== NEWS SECTION ===== */
.news-section {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-bottom: 25px;
}

.section-header {
    background: linear-gradient(135deg, var(--primary-brown), var(--light-brown));
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--accent-gold);
}

.section-header i {
    margin-right: 10px;
    font-size: 1.5em;
    color: var(--accent-gold);
}

.section-header h2 {
    margin: 0;
    font-weight: bold;
}

.news-article {
    padding: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.3s ease;
}

.news-article:hover {
    background: rgba(255,255,255,0.05);
}

.news-article:last-child {
    border-bottom: none;
}

.article-header {
    margin-bottom: 15px;
}

.article-title {
    margin: 0 0 10px 0;
}

.article-title a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.3em;
    font-weight: bold;
}

.article-title a:hover {
    color: var(--accent-gold);
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
}

.meta-category, .meta-date {
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.meta-category i, .meta-date i {
    margin-right: 5px;
}

.article-content {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-light);
}

.article-footer {
    text-align: right;
}

.read-more {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border: 1px solid var(--accent-gold);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    background: var(--accent-gold);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* ===== USER PANEL ===== */
.user-panel-card .user-welcome h4 {
    margin: 0 0 15px 0;
    text-align: center;
    color: var(--accent-gold);
    font-size: 1.3em;
    font-weight: bold;
}

.user-quick-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.nav-item:hover {
    background: var(--primary-brown);
    transform: translateY(-3px);
    border-color: var(--accent-gold);
}

.nav-item i {
    font-size: 1.5em;
    margin-bottom: 5px;
    color: var(--accent-gold);
}

.nav-item span {
    font-size: 0.8em;
    text-align: center;
}

.user-balance {
    margin-bottom: 15px;
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 5px;
}

.balance-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.balance-item:last-child {
    border-bottom: none;
}

.balance-label {
    color: var(--text-muted);
}

.balance-value {
    font-weight: bold;
    color: var(--accent-gold);
}

.user-logout {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn-logout:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
}

.btn-logout i {
    margin-right: 5px;
}

/* ===== LOGIN FORM ===== */
.login-form .form-group {
    margin-bottom: 15px;
}

.login-form .form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    outline: none;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-brown), var(--light-brown));
    border: none;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, var(--light-brown), var(--primary-brown));
}

.btn-login i {
    margin-right: 8px;
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.login-links a {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: var(--lighter-brown);
    text-decoration: underline;
}

/* ===== FORTRESS ITEMS ===== */
.fortress-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.3s ease;
}

.fortress-item:hover {
    background: rgba(255,255,255,0.05);
    border-radius: 5px;
    padding: 15px;
    margin: 0 -10px;
}

.fortress-item:last-child {
    border-bottom: none;
}

.fortress-icon {
    margin-right: 15px;
    flex-shrink: 0;
}

.fortress-icon img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
}

.fortress-info {
    flex: 1;
}

.fortress-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    color: var(--accent-gold);
}

.fortress-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

.guild-name a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.guild-name a:hover {
    color: var(--accent-gold);
}

.tax-rate {
    color: var(--text-muted);
    background: rgba(0,0,0,0.3);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8em;
}

/* ===== EVENT LIST ===== */
.event-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.event-list li:hover {
    background: rgba(255,255,255,0.05);
    border-radius: 5px;
    padding: 12px 10px;
    margin: 0 -10px;
}

.event-list li:last-child {
    border-bottom: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .server-rates {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .hero-slider-container {
        margin-bottom: 20px;
    }
    
    .action-buttons {
        flex-direction: row;
        margin-bottom: 20px;
    }
    
    .action-button {
        flex: 1;
    }
    
    .server-time-widget {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container-fluid {
        padding: 0 10px;
    }
    
    .hero-section {
        padding: 10px 0;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .user-quick-nav {
        grid-template-columns: 1fr 1fr;
    }
    
    .fortress-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .server-rates {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 15px;
    }
    
    .news-article {
        padding: 15px;
    }
    
    .section-header, .card-header {
        padding: 12px 15px;
    }
    
    .user-quick-nav {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-button {
        padding: 12px;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-20 {
    margin-top: 20px;
}

.pb-0 {
    padding-bottom: 0 !important;
}

/* ===== LOADING ANIMATION ===== */
@keyframes loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--accent-gold);
    animation: loading 1s ease-in-out infinite;
    margin-right: 10px;
}

.element-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}