/* ===================================
   WHO IS ONLINE - MODERN STYLE
   Account Management Style v1
   =================================== */

/* Container Principal */
.whoisonline-modern {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header */
.whoisonline-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInScale 0.6s ease-out;
}

.whoisonline-logo {
    font-size: 4rem;
    margin-bottom: 15px;
}

.whoisonline-title {
    font-size: 3rem;
    color: #e6f8ff;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.whoisonline-subtitle {
    font-size: 1.3rem;
    color: #a8b3c2;
    margin: 0;
}

/* World Selection Card */
.world-selection-card {
    background: linear-gradient(135deg, #1a2332 0%, #0f141a 100%);
    border: 1px solid #2a3440;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.6s ease-out;
}

.world-selection-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2a3440;
}

.world-selection-icon {
    font-size: 1.8rem;
}

.world-selection-title {
    font-size: 1.5rem;
    color: #00ffaa;
    margin: 0;
    font-weight: 600;
}

.world-form-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.world-form-label {
    font-size: 1.2rem;
    color: #e6f8ff;
    font-weight: 500;
    min-width: 120px;
}

.world-select {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    background: #0f141a;
    border: 2px solid #2a3440;
    border-radius: 8px;
    color: #e6f8ff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.world-select:hover {
    border-color: #00ffaa;
    background: #1a2332;
}

.world-select:focus {
    outline: none;
    border-color: #00ffaa;
    box-shadow: 0 0 0 3px rgba(0, 255, 170, 0.1);
}

/* Server Info Grid */
.server-info-card {
    background: linear-gradient(135deg, #1a2332 0%, #0f141a 100%);
    border: 1px solid #2a3440;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.6s ease-out 0.1s both;
}

.server-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2a3440;
}

.server-info-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.server-info-icon {
    font-size: 1.8rem;
}

.server-info-title {
    font-size: 1.5rem;
    color: #00ffaa;
    margin: 0;
    font-weight: 600;
}

.server-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.server-status-badge.online {
    background: rgba(122, 249, 114, 0.15);
    color: #7AF972;
    border: 1px solid rgba(122, 249, 114, 0.3);
}

.server-status-badge.offline {
    background: rgba(255, 68, 68, 0.15);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.status-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.server-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.server-info-item {
    display: flex;
    padding: 12px 0;
}

.server-info-label {
    font-weight: 600;
    color: #a8b3c2;
    min-width: 140px;
    font-size: 1.1rem;
}

.server-info-value {
    color: #e6f8ff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.server-info-value img {
    vertical-align: middle;
    max-height: 16px;
}

.server-info-highlight {
    color: #00ffaa;
    font-weight: 600;
}

/* Players Online Section */
.players-section {
    background: linear-gradient(135deg, #1a2332 0%, #0f141a 100%);
    border: 1px solid #2a3440;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.6s ease-out 0.2s both;
}

.players-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2a3440;
    flex-wrap: wrap;
}

.players-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.players-section-icon {
    font-size: 1.8rem;
}

.players-section-title {
    font-size: 1.5rem;
    color: #00ffaa;
    margin: 0;
    font-weight: 600;
}

/* Alphabet Navigation */
.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
    background: rgba(15, 20, 26, 0.5);
    border-radius: 8px;
    margin-bottom: 20px;
}

.alphabet-nav a {
    color: #00ffaa;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.alphabet-nav a:hover {
    background: rgba(0, 255, 170, 0.15);
    transform: translateY(-2px);
}

/* Players Table */
.players-table-container {
    overflow-x: auto;
    border-radius: 8px;
}

.players-table {
    width: 100%;
    border-collapse: collapse;
}

.players-table-header {
    background: linear-gradient(135deg, #2a3440 0%, #1a2332 100%);
}

.players-table-header th {
    padding: 15px;
    text-align: left;
    color: #00ffaa;
    font-weight: 600;
    font-size: 1.2rem;
    border-bottom: 2px solid #00ffaa;
}

.sort-link {
    color: #a8b3c2;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    margin-left: 8px;
    transition: color 0.3s ease;
}

.sort-link:hover {
    color: #00ffaa;
}

.sort-arrow {
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
}

.players-table-body tr {
    border-bottom: 1px solid rgba(42, 52, 64, 0.5);
    transition: all 0.3s ease;
}

.players-table-body tr:nth-child(even) {
    background: rgba(26, 35, 50, 0.3);
}

.players-table-header th:first-child {
    width: 60%;
}

.players-table-body td:first-child {
    width: 60%;
}

.players-table-body td {
    padding: 15px;
    color: #e6f8ff;
    font-size: 0.95rem;
}

.player-name-link {
    color: #00ffaa;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.player-name-link:hover {
    color: #7AF972;
    text-decoration: underline;
}

.players-table-body .player-level {
    color: #a8b3c2;
    font-size: 1.2rem !important;
}

.players-table-body .player-vocation {
    color: #e6f8ff;
    font-size: 1.2rem !important;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #a8b3c2;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1.1rem;
    font-style: italic;
}

/* Search Character Section */
.search-character-card {
    background: linear-gradient(135deg, #1a2332 0%, #0f141a 100%);
    border: 1px solid #2a3440;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.6s ease-out 0.3s both;
}

.search-character-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2a3440;
}

.search-character-icon {
    font-size: 1.8rem;
}

.search-character-title {
    font-size: 1.5rem;
    color: #00ffaa;
    margin: 0;
    font-weight: 600;
}

.search-form-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.search-form-label {
    font-size: 1.2rem;
    color: #e6f8ff;
    font-weight: 500;
    min-width: 140px;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 15px;
    background: #0f141a;
    border: 2px solid #2a3440;
    border-radius: 8px;
    color: #e6f8ff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:hover {
    border-color: #00ffaa;
    background: #1a2332;
}

.search-input:focus {
    outline: none;
    border-color: #00ffaa;
    box-shadow: 0 0 0 3px rgba(0, 255, 170, 0.1);
}

.search-input::placeholder {
    color: #a8b3c2;
    opacity: 0.6;
}

/* Buttons */
.button-primary-online {
    padding: 12px 30px;
    background: linear-gradient(135deg, #00ffaa 0%, #7AF972 100%);
    color: #0f141a;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 255, 170, 0.3);
}

.button-primary-online:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 255, 170, 0.4);
}

.button-primary-online:active {
    transform: translateY(0);
}

.button-icon-online {
    font-size: 1.2rem;
}

/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .whoisonline-modern {
        padding: 15px;
    }
    
    .server-info-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .whoisonline-title {
        font-size: 2rem;
    }
    
    .whoisonline-subtitle {
        font-size: 1rem;
    }
    
    .world-selection-card,
    .server-info-card,
    .players-section,
    .search-character-card {
        padding: 20px;
    }
    
    .world-form-group,
    .search-form-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .world-form-label,
    .search-form-label {
        min-width: auto;
    }
    
    .world-select,
    .search-input {
        min-width: auto;
        width: 100%;
    }
    
    .alphabet-nav {
        gap: 6px;
        padding: 12px;
    }
    
    .alphabet-nav a {
        padding: 5px 8px;
        font-size: 0.85rem;
    }
    
    .players-table-header th,
    .players-table-body td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .server-info-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .players-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (max-width: 480px) {
    .whoisonline-logo {
        font-size: 3rem;
    }
    
    .whoisonline-title {
        font-size: 1.6rem;
    }
    
    .whoisonline-subtitle {
        font-size: 0.9rem;
    }
    
    .world-selection-card,
    .server-info-card,
    .players-section,
    .search-character-card {
        padding: 15px;
    }
    
    .world-selection-title,
    .server-info-title,
    .players-section-title,
    .search-character-title {
        font-size: 1.1rem;
    }
    
    .server-info-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .server-info-label {
        min-width: auto;
    }
    
    .players-table-header th,
    .players-table-body td {
        padding: 10px 5px;
        font-size: 0.85rem;
    }
    
    .alphabet-nav {
        gap: 4px;
        padding: 10px;
    }
    
    .alphabet-nav a {
        padding: 4px 6px;
        font-size: 0.8rem;
    }
    
    .button-primary-online {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}
