/*
 * Discord Control Panel — Styles
 *
 * Discord-inspired dark theme with blurple accents.
 * Self-contained — no dependencies on the main site CSS.
 */

/* ── Reset & base ─────────────────────────────────────── */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.dc-body {
    font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #1e1f22;
    color: #dbdee1;
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ── Container ────────────────────────────────────────── */

.dc-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.dc-container--narrow {
    max-width: 480px;
}

/* ── Profile header ───────────────────────────────────── */

.dc-profile {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #2b2d31;
    border-radius: 1rem;
    flex-wrap: wrap;
}

.dc-avatar-wrap {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    padding: 3px;
    background: #5865f2;
}

.dc-avatar-wrap--booster {
    background: linear-gradient(135deg, #f47fff, #f0b232);
}

.dc-avatar {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2b2d31;
}

.dc-profile-info {
    flex: 1;
    min-width: 0;
}

.dc-profile-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f2f3f5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dc-profile-sub {
    font-size: 0.85rem;
    color: #949ba4;
    margin-top: 0.25rem;
}

/* ── Badges ───────────────────────────────────────────── */

.dc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.dc-badge--booster {
    background: linear-gradient(135deg, #f47fff, #f0b232);
    color: #fff;
}

/* ── Logout button ────────────────────────────────────── */

.dc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
}

.dc-btn--logout {
    background: #4e5058;
    color: #dbdee1;
    margin-left: auto;
}

.dc-btn--logout:hover {
    background: #ed4245;
    color: #fff;
    transform: scale(1.03);
}

/* ── Stats strip ──────────────────────────────────────── */

.dc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.dc-stat {
    background: #2b2d31;
    border-radius: 0.75rem;
    padding: 1rem 0.75rem;
    text-align: center;
    transition: transform 0.15s, box-shadow 0.15s;
}

.dc-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.2);
}

.dc-stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #f2f3f5;
}

.dc-stat-label {
    display: block;
    font-size: 0.7rem;
    color: #949ba4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.2rem;
}

/* ── Section title ────────────────────────────────────── */

.dc-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #949ba4;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-left: 0.25rem;
}

/* ── Action cards ─────────────────────────────────────── */

.dc-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
}

.dc-action-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 1.25rem;
    background: #2b2d31;
    border: 2px solid transparent;
    border-radius: 0.75rem;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: #dbdee1;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.dc-action-card:hover {
    border-color: #5865f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.18);
}

.dc-action-card:active {
    transform: translateY(0);
}

.dc-action-emoji {
    font-size: 2rem;
    line-height: 1;
}

.dc-action-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f2f3f5;
}

.dc-action-desc {
    font-size: 0.8rem;
    color: #949ba4;
}

/* ── Error page ───────────────────────────────────────── */

.dc-error-card {
    background: #2b2d31;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.dc-error-icon {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.dc-error-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f2f3f5;
    margin-bottom: 0.75rem;
}

.dc-error-body {
    font-size: 0.95rem;
    color: #b5bac1;
    max-width: 360px;
    margin: 0 auto 1rem;
}

.dc-error-details {
    text-align: left;
    margin: 1.5rem auto 0;
    max-width: 380px;
    font-size: 0.85rem;
    color: #b5bac1;
}

.dc-error-details ul {
    margin: 0.5rem 0 1rem 1.25rem;
}

.dc-error-details li {
    margin-bottom: 0.5rem;
}

.dc-error-hint {
    font-size: 0.8rem;
    color: #949ba4;
    margin-top: 1.5rem;
}

/* ── Channel mention ──────────────────────────────────── */

.dc-channel {
    display: inline;
    padding: 0 0.15rem;
    color: #c9cdfb;
    background: rgba(88, 101, 242, 0.15);
    border-radius: 3px;
    font-weight: 500;
}

.dc-channel::before {
    content: '#';
}

/* ── Footer ───────────────────────────────────────────── */

.dc-footer-text {
    text-align: center;
    font-size: 0.7rem;
    color: #5c6170;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #3f4147;
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 600px) {
    .dc-profile {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .dc-profile-name {
        justify-content: center;
        font-size: 1.2rem;
    }

    .dc-btn--logout {
        margin-left: 0;
    }

    .dc-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .dc-actions-grid {
        grid-template-columns: 1fr;
    }

    .dc-error-card {
        margin-top: 2rem;
        padding: 2rem 1.25rem;
    }
}

@media (max-width: 380px) {
    .dc-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
