/* Grille responsive/* =============================================================================
   Woo Game Licenses - Frontend Styles
   Design épuré moderne en blanc/gris
   ============================================================================= */

.wgl-games-container {
    margin: 0;
    max-width: 100%;
    width: 100%;
}

/* Header épuré - beaucoup plus petit */
.wgl-games-header {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-align: center;
}

.wgl-games-header h2 {
    margin: 0 0 0.125rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.025em;
}

.wgl-games-count {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

/* Grille responsive - max 2 colonnes */
.wgl-games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .wgl-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Cartes épurées - encore plus compactes */
.wgl-game-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.wgl-game-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Header de la carte */
.wgl-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.wgl-game-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.2;
    flex: 1;
    margin-right: 0.5rem;
}

.wgl-player-type {
    background: #f3f4f6;
    color: #374151;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border: 1px solid #e5e7eb;
}

/* Zone code de licence avec bouton copy */
.wgl-license-code {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.wgl-code-label {
    font-size: 0.6rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.wgl-code-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wgl-code-value {
    font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: #111827;
    letter-spacing: 0.5px;
    flex: 1;
    min-width: 0;
}

.wgl-copy-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.wgl-copy-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.wgl-copy-btn.wgl-copied {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.wgl-copy-icon {
    font-size: 0.75rem;
    line-height: 1;
}

.wgl-copy-text {
    font-weight: 500;
}

/* Info session */
.wgl-session-info {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #4b5563;
    font-weight: 500;
}

/* Footer de la carte */
.wgl-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wgl-order-info {
	display:none;
    font-size: 0.75rem;
    color: #6b7280;
    flex-shrink: 0;
}

.wgl-admin-badge {
    background: #f3f4f6;
    color: #374151;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #e5e7eb;
}

/* Bouton d'accès plus compact */
.wgl-access-button {
    background: #111827;
    color: white !important;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.wgl-access-button:hover {
    background: #000000;
    color: white;
    text-decoration: none;
}

.wgl-access-button::after {
    content: "→";
    font-size: 0.9em;
    transition: transform 0.2s ease;
}

.wgl-access-button:hover::after {
    transform: translateX(2px);
}

/* État vide */
.wgl-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.wgl-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.wgl-empty-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.wgl-empty-state p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Responsive mobile */
@media (max-width: 639px) {
    .wgl-games-header {
        padding: 1rem;
        border-radius: 6px;
    }
    
    .wgl-games-header h2 {
        font-size: 1rem;
    }
    
    .wgl-games-grid {
        gap: 0.75rem;
    }
    
    .wgl-game-card {
        border-radius: 6px;
        padding: 0.875rem;
    }
    
    .wgl-card-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
        margin-bottom: 0.5rem;
    }
    
    .wgl-game-title {
        margin-right: 0;
        font-size: 0.8rem;
    }
    
    .wgl-card-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .wgl-access-button {
        text-align: center;
        justify-content: center;
        padding: 0.6rem;
    }
    
    .wgl-code-wrapper {
        flex-direction: column;
        gap: 0.375rem;
    }
    
    .wgl-copy-btn {
        align-self: center;
    }
}

/* Responsive tablette */
@media (min-width: 640px) and (max-width: 1023px) {
    .wgl-card-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .wgl-access-button {
        text-align: center;
        justify-content: center;
    }
}

/* Variante avec fond léger si vous voulez plus visible */
.wgl-important-notice-bg {
    color: #d63638;
    font-weight: 600;
    background: #fef2f2;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 4px solid #d63638;
    display: block;
    margin-bottom: 1rem;
}