/**
 * EXO Structure CSS
 * Layout structure with red/crimson professional theme
 */

/* ============================================
   HEADER STRUCTURE
============================================ */
.exo-header {
    background: rgba(21, 7, 7, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 114, 114, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.exo-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 30px;
}

/* Logo */
.exo-header-logo a {
    display: flex;
    align-items: center;
}

.exo-header-logo img {
    max-height: 50px;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
}

.exo-header-logo img:hover {
    filter: drop-shadow(0 4px 20px rgba(220, 38, 38, 0.5));
    transform: translateY(-2px);
}

/* Server Selector */
.exo-server-selector {
    position: relative;
    flex: 1;
    max-width: 350px;
}

.exo-server-current {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: rgba(36, 13, 13, 0.8);
    border: 1px solid rgba(226, 114, 114, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exo-server-current:hover {
    border-color: rgba(220, 38, 38, 0.4);
    background: rgba(36, 13, 13, 0.95);
}

.exo-server-bg {
    width: 60px;
    height: 40px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

.exo-server-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exo-server-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.exo-server-online {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #28a745;
    font-weight: 600;
}

.exo-online-badge {
    width: 6px;
    height: 6px;
    background: #28a745;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.exo-server-players {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #cecece;
    font-weight: 600;
}

.exo-server-dropdown {
    color: #888;
    transition: transform 0.3s ease;
}

.exo-server-selector.exo-server-open .exo-server-dropdown {
    transform: rotate(180deg);
}

.exo-server-list {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(21, 7, 7, 0.98);
    border: 1px solid rgba(226, 114, 114, 0.1);
    border-radius: 12px;
    padding: 10px;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 1001;
}

.exo-server-selector.exo-server-open .exo-server-list {
    display: block;
}

.exo-server-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.exo-server-item:hover {
    background: rgba(220, 38, 38, 0.12);
}

.exo-server-item.exo-server-active {
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.4);
}

.exo-server-item img {
    width: 50px;
    height: 35px;
    border-radius: 6px;
    object-fit: cover;
}

.exo-server-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.exo-server-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.exo-server-bar {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.exo-server-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc2626, #b91c1c);
    border-radius: 2px;
}

/* Navigation */
.exo-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    justify-content: center;
}

.exo-nav::-webkit-scrollbar {
    display: none;
}

.exo-nav-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    white-space: nowrap;
}

.exo-nav-item i {
    font-size: 12px;
}

.exo-nav-item:hover {
    color: #ef4444;
    background: rgba(220, 38, 38, 0.12);
}

.exo-nav-item.exo-nav-blue:hover,
.exo-nav-item.exo-nav-red:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

.exo-nav-item.exo-nav-green:hover {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.exo-nav-arrow {
    font-size: 8px;
    margin-left: 2px;
    transition: transform 0.3s ease;
}

.exo-nav-dropdown.exo-nav-open .exo-nav-arrow {
    transform: rotate(180deg);
}

.exo-nav-submenu {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: rgba(21, 7, 7, 0.98);
    border: 1px solid rgba(226, 114, 114, 0.1);
    border-radius: 10px;
    padding: 6px;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 1001;
}

.exo-nav-dropdown.exo-nav-open .exo-nav-submenu {
    display: block;
}

.exo-nav-submenu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.exo-nav-submenu a:hover {
    background: rgba(220, 38, 38, 0.12);
    color: #ef4444;
}

.exo-nav-submenu a i {
    width: 16px;
    text-align: center;
    font-size: 12px;
}

.exo-nav-submenu span {
    font-size: 12px;
    font-weight: 500;
}

.exo-nav-desc {
    display: none;
}

/* Header Right Buttons */
.exo-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.exo-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Red button equivalent */
.exo-btn-blue,
.exo-btn-red {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
}

.exo-btn-blue:hover,
.exo-btn-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.5);
}

.exo-btn-silver {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    border: none;
}

.exo-btn-silver:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(100, 116, 139, 0.4);
}

.exo-lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(36, 13, 13, 0.8);
    border: 1px solid rgba(226, 114, 114, 0.1);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exo-lang-selector:hover {
    border-color: rgba(220, 38, 38, 0.4);
    color: #ef4444;
}

/* ============================================
   MAIN LAYOUT
============================================ */
.exo-layout {
    background: linear-gradient(180deg, #150707 0%, #1f0a0a 50%, #240d0d 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

.exo-layout-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.exo-page-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.exo-page-main {
    min-height: 500px;
}

.exo-page-sidebar {
    position: sticky;
    top: 100px;
}

/* ============================================
   FOOTER
============================================ */
.exo-footer {
    background: linear-gradient(135deg, #150707 0%, #1f0a0a 100%);
    border-top: 3px solid #dc2626;
    padding: 40px 20px;
    margin-top: 60px;
    color: #cbd5e1;
}

.exo-footer a {
    color: #94a3b8;
    transition: all 0.3s ease;
}

.exo-footer a:hover {
    color: #ef4444;
}

/* ============================================
   EXO INFO MODULE SPECIFICS
============================================ */
.exo-info-module {
    max-width: 1200px;
    margin: 0 auto;
}

.exo-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.exo-info-full {
    grid-column: 1 / -1;
}

.exo-stat-card {
    background: linear-gradient(145deg, var(--exo-bg-card) 0%, var(--exo-bg-card-hover) 100%);
    border: 1px solid var(--exo-border);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--exo-shadow);
}

.exo-stat-card:hover {
    border-color: rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.exo-stat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    background: var(--exo-gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    box-shadow: var(--exo-glow);
}

.exo-stat-label {
    color: var(--exo-text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.exo-stat-value {
    color: var(--exo-text-primary);
    font-size: 24px;
    font-weight: 800;
}

.exo-stat-sub {
    color: var(--exo-text-muted);
    font-size: 13px;
    margin-top: 4px;
}

/* FULL WIDTH */
.exo-page-grid.full-width {
    grid-template-columns: 1fr;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1200px) {
    .exo-page-grid { grid-template-columns: 1fr; }
    .exo-page-sidebar { position: static; }
    .exo-header-main { gap: 15px; padding: 12px 20px; }
    .exo-nav-item { font-size: 10px; padding: 6px 7px; }
    .exo-nav-item i { font-size: 10px; }
    .exo-server-selector { max-width: 250px; }
    .exo-btn { padding: 7px 14px; font-size: 11px; }
    .exo-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
    .exo-header-main { flex-wrap: wrap; gap: 15px; }
    .exo-server-selector { order: 3; max-width: 100%; }
    .exo-nav { order: 2; flex-wrap: wrap; justify-content: center; }
    .exo-header-right { order: 1; }
    .exo-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .exo-header-main { padding: 15px; }
    .exo-nav { display: none; }
    .exo-server-selector { display: none; }
    .exo-layout-content { padding: 15px; }
}