/* Classes utilitaires */

/* Effets de texte */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.glow-text {
    text-shadow: 0 0 10px var(--glow-blue);
}

.glow-text-green {
    text-shadow: 0 0 10px var(--glow-green);
}

.text-overflow {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Effets de bordure */
.glow-border {
    border: 1px solid var(--primary-medium);
    box-shadow: 0 0 10px var(--glow-blue);
}

.glow-border-green {
    border: 1px solid var(--accent-green);
    box-shadow: 0 0 10px var(--glow-green);
}

.glow-border-rp {
    border: 1px solid var(--roleplay-primary);
    box-shadow: 0 0 10px var(--roleplay-glow);
}

.glow-border-hrp {
    border: 1px solid var(--hrp-primary);
    box-shadow: 0 0 10px var(--hrp-glow);
}

/* Effets de fond */
.bg-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bg-glass {
    background-color: rgba(12, 45, 72, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bg-glass-dark {
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Sections rapides d'action */
.quick-actions, .join-community {
    background-color: rgba(12, 45, 72, 0.5);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* Classes de marge et padding */
.mt-section { margin-top: 3rem; }
.mb-section { margin-bottom: 3rem; }
.my-section { 
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* Classes de flexbox */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

/* Classes d'espacement */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-5 { gap: 2rem; }

/* Classes d'opacité */
.opacity-75 { opacity: 0.75; }
.opacity-50 { opacity: 0.50; }
.opacity-25 { opacity: 0.25; }

/* Classes de bordure */
.border-bottom {
    border-bottom: 1px solid rgba(220, 225, 227, 0.1);
}

.border-top {
    border-top: 1px solid rgba(220, 225, 227, 0.1);
}

/* Classes de transition */
.transition-all {
    transition: all 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

/* États d'interaction */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(0px);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Classes de visibilité */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Classes d'arrière-plan thématiques */
.bg-roleplay {
    background-color: rgba(92, 45, 145, 0.15);
}

.bg-hrp {
    background-color: rgba(44, 110, 73, 0.15);
}

/* Classes de statut */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-dot.online {
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--glow-green);
}

.status-dot.offline {
    background-color: var(--light-gray);
}

/* Character cards utilities */
.character-card {
    height: 100%;
    overflow: hidden;
    position: relative;
    padding-top: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.character-header {
    position: relative;
    height: 150px;
    overflow: hidden;
    background-color: rgba(10, 10, 10, 0.8);
}

.character-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
}

.character-powers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-bottom: 1rem;
}

.power-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background-color: rgba(10, 10, 10, 0.5);
    border-radius: 1rem;
    border: 1px solid var(--primary-medium);
}

/* Universe et Location cards */
.universe-card {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.universe-header {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.universe-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: all 0.5s ease;
}

.universe-card:hover .universe-bg {
    transform: scale(1.1);
}

.universe-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(12, 45, 72, 0.9));
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.universe-name {
    font-family: var(--font-title);
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin: 0;
}

/* Classes utilitaires pour les effets de survol */
.hover-effect {
    transition: all var(--transition-normal);
}

.hover-glow-rp:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 5px var(--roleplay-glow);
}

.hover-glow-hrp:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 5px var(--hrp-glow);
}

/* Classes utilitaires pour les bordures et fonds */
.bg-translucent-dark {
    background-color: rgba(12, 45, 72, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.border-subtle {
    border: var(--border-width-sm) solid rgba(255, 255, 255, 0.05);
}

.border-rp {
    border: var(--border-width-sm) solid rgba(156, 85, 211, 0.2);
}

.border-hrp {
    border: var(--border-width-sm) solid rgba(76, 149, 108, 0.2);
}

/* Animation pour les badges de notification */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.7s ease-in-out;
}