/* ==========================================================================
   MODULE: Dynamic Player Server Banner Studio (560x95)
   Replicates serverstats.eu banner studio & interactive game collector
   ========================================================================== */

/* Showcase Container */
.player-banner-module-wrap {
    margin-top: 18px;
    background: rgba(11, 15, 25, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

/* Header & Server Selector */
.pb-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pb-title-wrap h3 {
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pb-title-wrap p {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}
.pb-server-select-wrap {
    min-width: 260px;
    max-width: 380px;
    flex: 1;
}
.pb-server-select {
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 12px;
    outline: none;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
    transition: all 0.2s ease;
}
.pb-server-select:hover, .pb-server-select:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.35);
}

/* Banner Image Preview Stage */
.pb-preview-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 18px;
    overflow-x: auto;
}
.pb-banner-img {
    width: 560px;
    height: 95px;
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 1px rgba(255, 255, 255, 0.2);
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pb-banner-img:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85), 0 0 20px rgba(56, 189, 248, 0.25);
}

/* Embed Tabs & Code Input */
.pb-embed-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.pb-tab-btn {
    background: transparent;
    border: none;
    border-radius: 20px;
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pb-tab-btn.active {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid #f59e0b;
    color: #fbbf24;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}
.pb-tab-btn:hover:not(.active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.pb-embed-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 12px;
}
.pb-embed-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fbbf24;
    font-family: var(--font-mono, monospace);
    font-size: 12px;
    font-weight: 600;
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pb-copy-btn {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.pb-copy-btn:hover {
    background: #0284c7;
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}
.pb-copy-btn.copied {
    background: #10b981;
    border-color: #34d399;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
}

/* ==========================================================================
   Interactive Game Collector Server Browser with AJAX Pagination
   ========================================================================== */
.collector-game-banner-card {
    cursor: pointer;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    border: 2px solid transparent;
}
.collector-game-banner-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.3);
    border-color: rgba(56, 189, 248, 0.6);
}
.collector-game-banner-card.active-game {
    border-color: #38bdf8;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
}

/* Active Game Bar */
.collector-active-game-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
    margin-bottom: 14px;
}
.cag-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cag-img {
    width: 60px;
    height: 28px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.cag-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #fff;
}
.cag-back-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.cag-back-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* Server List Grid */
.collector-servers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.collector-server-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}
.collector-server-item:hover, .collector-server-item.selected {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateX(2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.collector-server-item.selected {
    border-left: 3px solid #f59e0b;
}

.csi-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}
.csi-map-thumb {
    width: 44px;
    height: 32px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}
.csi-details {
    min-width: 0;
}
.csi-name {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.csi-sub {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.csi-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 11.5px;
}
.csi-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #cbd5e1;
    font-weight: 700;
}
.csi-stat-chip strong {
    color: #38bdf8;
    font-family: var(--font-mono, monospace);
}

.csi-action-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
    position: relative;
}
.csi-action-btn:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.45);
    transform: translateY(-1px);
}

/* AJAX Pagination */
.collector-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}
.cp-btn {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.cp-btn:hover:not(:disabled) {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #fff;
}
.cp-btn.active {
    background: #38bdf8;
    border-color: #38bdf8;
    color: #0b101b;
    font-weight: 900;
}
.cp-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Empty State */
.collector-empty-servers {
    text-align: center;
    padding: 24px 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 12.5px;
}
