/* Data-GG Hub Dashboard - Version complète refaite de zéro */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a1a;
    color: #ffffff;
    overflow-x: hidden;
}

/* Container principal */
.pn-dashboard-v2 {
    min-height: 100vh;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
}

/* Header */
.pn-header {
    background: #1a1a1a;
    padding: 24px 32px;
    border-bottom: 1px solid #404040;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pn-header-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pn-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #404040;
    object-fit: cover;
}

.pn-user-info h2 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.pn-user-info p {
    font-size: 13px;
    color: #b0b0b0;
}

.pn-logout {
    background: #2d2d2d;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: 1px solid #404040;
}

.pn-logout:hover {
    background: #404040;
    color: #ffffff;
}

/* Layout principal */
.pn-main {
    display: flex;
    flex: 1;
    height: calc(100vh - 96px);
    border: 1px solid #1a1a1a;
    border-radius: 5px;
    overflow: hidden;
}

/* Navigation sidebar */
.pn-nav {
    width: 280px;
    background: #1a1a1a;
    border-right: 1px solid #404040;
    padding: 24px 0;
    overflow-y: auto;
}

.pn-nav-btn {
    width: 100%;
    background: none;
    border: none;
    color: #b0b0b0;
    padding: 16px 24px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.pn-nav-btn:hover {
    background: #2a2a2a !important;
    color: #ffffff;
}

.pn-nav-btn.active {
    background: #2a2a2a !important;
    color: #F1C95B !important;
}

.pn-nav-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #ffffff;
}

.pn-nav-divider {
    height: 1px;
    background: #404040;
    margin: 20px 16px;
}

.pn-nav-section {
    padding: 12px 24px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #808080;
}

/* Zone de contenu */
.pn-content {
    flex: 1;
    background: #1a1a1a;
    padding: 32px;
    overflow-y: auto;
}

/* Onglets */
.pn-tab {
    display: none;
}

.pn-tab.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards */
.pn-card {
    background: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pn-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

/* Boutons */
.pn-btn-primary {
    background: #F1C95B;
    color: #1a1a1a;
    border: 1px solid #F1C95B;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pn-btn-primary:hover {
    background: #2a2a2a !important;
    color: #F1C95B !important;
    border-color: #F1C95B;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

/* État vide */
.pn-empty-state {
    text-align: center;
    padding: 80px 40px;
    color: #b0b0b0;
}

.pn-empty-state h3 {
    font-size: 24px;
    color: #ffffff;
    margin: 16px 0;
}

.pn-empty-icon {
    font-size: 64px;
    opacity: 0.6;
    margin-bottom: 16px;
}

/* Grille des jeux */
.pn-games-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.pn-game-item {
    background: #202020;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.pn-game-item:hover {
    border-color: #606060;
}

.pn-game-item.active {
    border-color: #F1C95B;
}

.pn-game-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pn-game-icon-small {
    font-size: 32px;
}

.pn-game-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.pn-game-item p {
    font-size: 13px;
    color: #b0b0b0;
    margin: 0;
}

.pn-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.pn-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pn-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #404040;
    transition: 0.3s;
    border-radius: 26px;
}

.pn-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.pn-switch input:checked + .pn-slider {
    background-color: #F1C95B;
}

.pn-switch input:checked + .pn-slider:before {
    transform: translateX(24px);
}

/* Profil */
.pn-profile-info {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.pn-profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #404040;
    object-fit: cover;
}

.pn-profile-details {
    flex: 1;
}

.pn-profile-details p {
    margin: 8px 0;
    font-size: 14px;
    color: #b0b0b0;
}

.pn-profile-details strong {
    color: #ffffff;
    font-weight: 600;
}

/* Typographie */
h1 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.pn-muted {
    color: #808080;
}

/* Responsive */
@media (max-width: 768px) {
    .pn-main {
        flex-direction: column;
    }
    
    .pn-nav {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #404040;
    }
    
    .pn-content {
        padding: 20px;
    }
    
    .pn-games-grid {
        grid-template-columns: 1fr;
    }
}
