/* =====================================================
   discord.css — C2Jam Custom Discord Panel (Gamer Edition)
   ===================================================== */

/* ── Main Panel Container ── */
.dc-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ── Dynamic Header ── */
.dc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(13, 17, 23, 0.6) 100%);
    border-bottom: 1px solid var(--border-color);
}

.dc-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dc-header-icon {
    font-size: 1.8rem;
    color: var(--accent-primary);
    text-shadow: 0 0 14px rgba(0, 229, 255, 0.5);
}

.dc-server-name {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
}

.dc-server-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 1px;
}

/* ── Status Breakdown Bar ── */
.dc-status-breakdown {
    padding: 10px 20px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dc-status-breakdown-bar {
    display: flex;
    height: 6px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    gap: 2px;
    margin-bottom: 7px;
}

.dc-sb-segment {
    border-radius: 6px;
    transition: width 0.5s ease;
    cursor: default;
}

.dc-status-breakdown-legend {
    display: flex;
    gap: 16px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.dc-sb-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dc-sb-legend-item .fa-circle {
    font-size: 7px;
}

.dc-sb-legend-item strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* ── Currently Playing Section ── */
.dc-playing-section {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 229, 255, 0.03);
}

.dc-playing-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dc-playing-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-elevated, rgba(0, 0, 0, 0.2));
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.04));
    border-radius: 8px;
    padding: 7px 10px;
    transition: background 0.2s, border-color 0.2s;
}

.dc-playing-row:hover {
    background: rgba(0, 229, 255, 0.05);
    border-color: rgba(0, 229, 255, 0.2);
}

.dc-playing-game-icon {
    color: var(--accent-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}

.dc-playing-info {
    flex: 1;
    overflow: hidden;
}

.dc-playing-game-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dc-playing-count {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.dc-playing-avatars {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
}

.dc-playing-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-main, #0b0e14);
    margin-left: -6px;
}

.dc-playing-avatar:first-child {
    margin-left: 0;
}

.dc-playing-extra {
    font-size: 0.65rem;
    color: var(--accent-primary);
    font-weight: 700;
    margin-left: 4px;
}


/* ── Stats Bar ── */
.dc-stats-bar {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    background: rgba(0, 229, 255, 0.04);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}

.dc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.dc-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1;
}

.dc-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 3px;
}

.dc-stat-divider {
    width: 1px;
    height: 28px;
    background: var(--border-color);
    margin: 0 4px;
}

.dc-join-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    background: var(--accent-primary);
    color: #000;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    box-shadow: 0 0 0 rgba(88, 101, 242, 0);
}

.dc-join-btn:hover {
    color: #000;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ── Toggle Button ── */
.dc-toggle-btn {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: background 0.2s, color 0.2s, transform 0.3s;
    flex-shrink: 0;
}

.dc-toggle-btn:hover {
    background: rgba(0, 229, 255, 0.12);
    color: #fff;
    border-color: rgba(0, 229, 255, 0.3);
}

/* ── Collapsible animation ── */
.dc-collapsible {
    overflow: hidden;
    max-height: 2000px;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 1;
}

.dc-collapsible.dc-collapsed {
    max-height: 0;
    opacity: 0;
}

/* ── Members Area ── */
.dc-members-area {
    padding: 16px 20px 20px;
}

/* ── Section Label ── */
.dc-section-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dc-count-badge {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 20px;
    padding: 1px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: auto;
}

/* ── Members Grid ── */
.dc-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 6px;
}

/* ── Member Card ── */
.dc-member-card {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.05));
    background: var(--bg-elevated, rgba(0, 0, 0, 0.2));
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.dc-member-card:hover {
    background: rgba(0, 229, 255, 0.06);
    border-color: rgba(0, 229, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 229, 255, 0.1);
}

/* status-tinted left border on hover */
.dc-member-card.dc-status-online:hover {
    border-left: 3px solid #43b581;
}

.dc-member-card.dc-status-idle:hover {
    border-left: 3px solid #faa61a;
}

.dc-member-card.dc-status-dnd:hover {
    border-left: 3px solid #f04747;
}

.dc-member-card.dc-status-offline:hover {
    border-left: 3px solid #747f8d;
}

/* ── Avatar ── */
.dc-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
}

.dc-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.dc-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid var(--bg-main, #0b0e14);
}

/* ── Member Info ── */
.dc-member-info {
    overflow: hidden;
    flex: 1;
}

.dc-member-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dc-member-game {
    font-size: 0.68rem;
    color: var(--accent-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.dc-member-status-txt {
    font-size: 0.68rem;
    margin-top: 1px;
    font-weight: 500;
}

/* ── Empty State ── */
.dc-empty {
    grid-column: 1 / -1;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 6px 2px;
    opacity: 0.6;
}

/* ── Modal ── */
#discord-modal-custom {
    display: none;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.82);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.dc-modal-card {
    background: var(--bg-main, #0b0e14);
    max-width: 340px;
    width: 90%;
    border-radius: 12px;
    border: 1px solid rgba(88, 101, 242, 0.5);
    box-shadow: 0 0 40px rgba(88, 101, 242, 0.35), 0 20px 60px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    position: relative;
    text-align: center;
}

.dc-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.1rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.dc-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.dc-modal-banner {
    height: 90px;
    background: url('/images/ecualizador.gif') center/cover;
    position: relative;
}

.dc-modal-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(88, 101, 242, 0.25), rgba(11, 14, 20, 0.65));
}

.dc-modal-avatar-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: -40px auto 0;
    z-index: 5;
}

.dc-modal-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-main, #0b0e14);
    display: block;
    background: #202225;
}

.dc-modal-status-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 3px solid var(--bg-main, #0b0e14);
    display: block;
}

.dc-modal-body {
    padding: 12px 22px 22px;
}

.dc-modal-name {
    margin: 8px 0 6px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

/* Role badge */
.dc-modal-role {
    margin-bottom: 8px;
}

.dc-modal-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dc-role-staff {
    background: rgba(255, 215, 0, 0.12);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.dc-role-member {
    background: rgba(0, 170, 255, 0.1);
    color: #00aaff;
    border: 1px solid rgba(0, 170, 255, 0.25);
}

.dc-modal-status-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted, #888);
    margin-bottom: 2px;
}

.dc-modal-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 14px 0;
}

.dc-modal-activity {
    background: rgba(88, 101, 242, 0.08);
    border: 1px solid rgba(88, 101, 242, 0.22);
    border-radius: 8px;
    padding: 10px 14px;
    text-align: left;
}

.dc-modal-activity-label {
    font-size: 0.6rem;
    color: #5865F2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dc-modal-activity-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.dc-modal-no-activity {
    font-size: 0.76rem;
    color: var(--text-muted, #888);
    font-style: italic;
}

.admin-badge {
    color: #ffd700;
    font-size: 0.9em;
    margin-left: 5px;
}

/* ═══════════════════════════════════════════
   PARTNER SERVERS MARQUEE
═══════════════════════════════════════════ */
.dc-partners-section {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 0 12px;
    background: rgba(0, 0, 0, 0.15);
}

.dc-partners-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff;
    padding: 0 20px 12px;
}

.dc-partners-label i {
    font-size: 1.3rem;
    color: var(--accent-highlight);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* The overflow-hidden container that masks the track */
.dc-partners-track-wrap {
    width: 100%;
}



/* The moving track */
.dc-partners-track {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 4px 10px;
    flex-wrap: wrap;
}

@keyframes dc-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* 2 copies → move 1 set = -50% */
}

/* Each partner link */
.dc-partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 200px;
    transition: transform 0.2s ease;
    cursor: pointer;
}


.dc-partner-item:hover .dc-partner-logo {
    box-shadow: 0 0 7px currentColor;
    border-width: 2px;
}

/* Logo square */
.dc-partner-logo {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 900;
    transition: box-shadow 0.25s ease, border-width 0.2s;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
}

.dc-partner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.dc-partner-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Server name label */
.dc-partner-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    max-width: 120px;
    word-break: break-word;
    line-height: 1.3;
    margin-top: 2px;
    transition: color 0.2s;
}

.dc-partner-item:hover .dc-partner-name {
    color: #fff;
}