/* Overview Page Styles */

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* Dashboard container uses guild-dashboard-new.css styles */
.dashboard-container {
    margin-top: 56px !important;
}

/* ============================================
   TOP NAVIGATION BAR
   ============================================ */

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    height: 56px;
    background: #1A1A1A;
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    flex-shrink: 0;
}

.top-nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100px;
}

.top-nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.top-nav-logo img {
    height: 28px;
    width: auto;
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100px;
    justify-content: flex-end;
}

.notification-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.notification-btn:hover {
    background: var(--bg-overlay);
    color: var(--text-primary);
}

/* ============================================
   GUILD SELECTOR AVATAR
   ============================================ */

.guild-selector-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    background-size: cover;
    background-position: center;
    margin: 0 auto 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.guild-selector-user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.guild-selector-divider {
    width: 32px;
    height: 2px;
    background: var(--border-light);
    margin: 0 auto 24px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    flex: 1;
    padding: 40px;
    margin-left: 352px; /* 72px guild selector + 280px nav sidebar */
    width: calc(100% - 352px);
    min-height: calc(100vh - 56px);
    background: #252525;
}

#overview-content-wrapper {
    max-width: 1200px;
    width: 100%;
}

.overview-header {
    margin-bottom: 32px;
}

.overview-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.header-description {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

.content-section {
    margin-bottom: 40px;
}

.content-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

/* ============================================
   USER STATS CARD
   ============================================ */

.user-stats-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px;
    background: var(--bg-overlay);
    border-radius: 12px;
}

.user-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-primary);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    color: white;
}

.user-info-container {
    flex: 1;
}

.user-info-container h2 {
    margin: 0 0 16px 0;
    font-size: 24px;
    color: var(--text-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 4px;
}

/* ============================================
   SERVERS GRID
   ============================================ */

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
    position: relative;
    min-height: 150px;
}

.server-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-overlay);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.server-card:hover {
    background: rgba(0, 217, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.server-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-card);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
}

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

.server-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.server-members {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.server-badge {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.server-badge.owner {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
}

.server-badge.admin {
    background: rgba(0, 217, 255, 0.2);
    color: var(--primary-color);
}

.server-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-left: auto;
}

.premium-icon {
    font-size: 16px;
}

/* ============================================
   QUICK LINKS GRID
   ============================================ */

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: var(--bg-overlay);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.quick-link-card:hover {
    background: rgba(0, 217, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.link-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 12px;
    color: var(--primary-color);
}

.link-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.link-description {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    /* Collapse sidebars on mobile */
    .guild-selector-sidebar,
    .navigation-sidebar {
        position: fixed;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
        height: calc(100vh - 56px);
    }

    .guild-selector-sidebar.open,
    .navigation-sidebar.open {
        transform: translateX(0);
    }

    .navigation-sidebar {
        left: 72px;
    }

    /* Main content takes full width on mobile */
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }

    #overview-content-wrapper {
        padding: 0;
    }

    /* Hamburger menu */
    .top-nav-left {
        cursor: pointer;
        padding: 16px;
    }

    .top-nav-left::before {
        content: '☰';
        font-size: 24px;
        color: var(--text-primary);
    }

    .top-nav {
        padding: 0 16px;
    }

    .top-nav-right {
        width: 60px;
    }

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

    .user-stats-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .overview-header h1 {
        font-size: 24px;
    }
}

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

    .stat-item {
        padding: 8px;
    }

    .stat-value {
        font-size: 16px;
    }
}

/* ============================================
   EMPTY STATE & ONBOARDING
   ============================================ */

.empty-state-card {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 40px auto;
    padding: 48px 32px;
    background: var(--bg-overlay, #1a1d29);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.empty-state-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary, #ffffff);
}

.empty-state-card > p {
    font-size: 16px;
    color: var(--text-secondary, #a0a0a0);
    margin-bottom: 32px;
    line-height: 1.6;
}

.empty-state-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
    text-align: left;
}

.step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--primary-color, #00d4ff);
    color: var(--bg-primary, #0f1117);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step-content {
    flex: 1;
}

.step-content strong {
    display: block;
    color: var(--text-primary, #ffffff);
    margin-bottom: 4px;
}

.step-content p {
    color: var(--text-secondary, #a0a0a0);
    font-size: 14px;
    margin: 0;
}

.step-content a {
    color: var(--primary-color, #00d4ff);
    text-decoration: none;
}

.step-content a:hover {
    text-decoration: underline;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary-color, #00d4ff);
    color: var(--bg-primary, #0f1117);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.button-icon {
    font-size: 18px;
}

.help-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.help-link {
    color: var(--text-secondary, #a0a0a0);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.help-link:hover {
    color: var(--primary-color, #00d4ff);
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Mobile responsive adjustments for empty state */
@media (max-width: 768px) {
    .empty-state-card {
        padding: 32px 24px;
        margin: 20px;
    }

    .empty-state-icon {
        font-size: 48px;
    }

    .empty-state-card h3 {
        font-size: 20px;
    }

    .empty-state-card > p {
        font-size: 14px;
    }

    .help-links {
        flex-direction: column;
        gap: 12px;
    }
}
