/* Ocleiria Forum - Styles spécifiques aux pages */
/* Styles pour les pages membres, profil, settings et messages */

/* ---------- Page Membres ---------- */
.members-container {
    padding: var(--spacing-lg) 0;
}

.members-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.member-card {
    background: rgba(18, 4, 88, 0.7);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    display: flex;
    gap: var(--spacing-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.member-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 0, 255, 0.1),
            transparent,
            rgba(0, 255, 255, 0.1),
            transparent);
    transform: rotate(45deg);
    animation: member-card-shine 6s linear infinite;
    z-index: -1;
}

@keyframes member-card-shine {
    0% {
        transform: rotate(45deg) translateY(-100%);
    }
    100% {
        transform: rotate(45deg) translateY(100%);
    }
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(153, 0, 255, 0.3);
}

.member-avatar {
    flex: 0 0 100px;
}

.member-avatar img {
    border-radius: 50%;
    border: 2px solid var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
    transition: all 0.3s ease;
}

.member-card:hover .member-avatar img {
    box-shadow: 0 0 15px var(--primary);
    transform: scale(1.05);
}

.member-info {
    flex: 1;
}

.member-name {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.member-name a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.member-name a:hover {
    color: var(--secondary);
    text-shadow: 0 0 8px var(--secondary);
}

.role-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: bold;
}

.role-badge.admin {
    background: linear-gradient(90deg, #ff00ff, #9900ff);
    color: white;
    box-shadow: 0 0 5px rgba(255, 0, 255, 0.7);
}

.role-badge.moderator {
    background: linear-gradient(90deg, #00ffff, #0099ff);
    color: white;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.7);
}

.member-stats {
    display: flex;
    gap: var(--spacing-md);
    margin: var(--spacing-xs) 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.member-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ---------- Page Profil ---------- */
.profile-container {
    padding: var(--spacing-lg) 0;
}

.profile-header {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    background: rgba(18, 4, 88, 0.7);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 0, 255, 0.1),
            transparent,
            rgba(0, 255, 255, 0.1),
            transparent);
    transform: rotate(45deg);
    animation: profile-header-shine 6s linear infinite;
    z-index: -1;
}

@keyframes profile-header-shine {
    0% {
        transform: rotate(45deg) translateY(-100%);
    }
    100% {
        transform: rotate(45deg) translateY(100%);
    }
}

.profile-avatar-container {
    flex: 0 0 150px;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--secondary);
    box-shadow: 0 0 15px var(--secondary);
    object-fit: cover;
    transition: all 0.5s ease;
}

.profile-avatar:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary);
    transform: scale(1.05) rotate(5deg);
}

.profile-info {
    flex: 1;
}

.profile-username {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-light);
    text-shadow: 0 0 10px var(--primary);
    position: relative;
    display: inline-block;
}

.profile-username::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), transparent);
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--badge-color, var(--secondary));
    border-radius: 15px;
    padding: 3px 10px;
    font-size: 0.8rem;
    box-shadow: 0 0 8px var(--badge-color, var(--secondary));
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 12px var(--badge-color, var(--primary));
}

.badge-icon {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.profile-content {
    margin-top: var(--spacing-lg);
}

.profile-tabs {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 0, 255, 0.3);
    padding-bottom: var(--spacing-xs);
}

.tab-button {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: var(--secondary);
}

.tab-button.active {
    color: var(--secondary);
    text-shadow: 0 0 5px var(--secondary);
}

.tab-button.active::after {
    width: 100%;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

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

.profile-section {
    margin-bottom: var(--spacing-lg);
    background: rgba(18, 4, 88, 0.5);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    border-left: 3px solid var(--primary);
}

.profile-bio, .profile-signature {
    line-height: 1.6;
}

.empty-text {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.activity-item {
    background: rgba(18, 4, 88, 0.3);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(24, 6, 106, 0.4);
    transform: translateX(5px);
}

.activity-title {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
}

.activity-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-xs);
}

.activity-excerpt {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.profile-form {
    max-width: 800px;
}

.form-section {
    margin-bottom: var(--spacing-xl);
}

.form-actions {
    margin-top: var(--spacing-lg);
    display: flex;
    justify-content: flex-end;
}

/* ---------- Page Settings ---------- */
.settings-container {
    padding: var(--spacing-lg) 0;
}

.settings-header {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.settings-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--spacing-lg);
}

.settings-sidebar {
    background: rgba(18, 4, 88, 0.7);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    border: 1px solid var(--accent);
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.settings-nav-item {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.settings-nav-item:hover {
    background: rgba(24, 6, 106, 0.8);
    color: var(--secondary);
}

.settings-nav-item.active {
    background: rgba(24, 6, 106, 0.8);
    color: var(--secondary);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.settings-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
}

.settings-main {
    background: rgba(18, 4, 88, 0.7);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    border: 1px solid var(--primary);
}

.settings-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.settings-section.active {
    display: block;
}

.settings-section-title {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid rgba(255, 0, 255, 0.3);
    color: var(--secondary);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(18, 4, 88, 0.7);
    transition: .4s;
    border-radius: 30px;
    border: 1px solid var(--accent);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 3px;
    background-color: var(--text-light);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
    background-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.theme-option {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.theme-option.active {
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.theme-preview {
    height: 100px;
    background-size: cover;
    background-position: center;
}

.theme-name {
    text-align: center;
    padding: var(--spacing-xs);
    background: rgba(18, 4, 88, 0.9);
    font-size: 0.9rem;
}

.avatar-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.avatar-option {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.avatar-option.active {
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-avatar-upload {
    margin-top: var(--spacing-md);
}

.notification-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Page Messages ---------- */
.messages-container {
    padding: var(--spacing-lg) 0;
}

.messages-header {
    margin-bottom: var(--spacing-xl);
}

.messages-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-lg);
    height: 600px;
}

.conversations-list {
    background: rgba(18, 4, 88, 0.7);
    border-radius: var(--border-radius);
    border: 1px solid var(--accent);
    overflow-y: auto;
    height: 100%;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.conversation-item:hover {
    background: rgba(24, 6, 106, 0.8);
}

.conversation-item.active {
    background: rgba(24, 6, 106, 0.8);
    border-left: 3px solid var(--secondary);
}

.conversation-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.conversation-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.conversation-info {
    flex: 1;
}

.conversation-name {
    font-weight: bold;
    margin-bottom: 2px;
}

.conversation-preview {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.conversation-meta {
    text-align: right;
    font-size: 0.7rem;
}

.conversation-time {
    color: rgba(255, 255, 255, 0.6);
}

.conversation-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    margin-top: 3px;
    font-size: 0.7rem;
    box-shadow: 0 0 5px var(--primary);
}

.chat-container {
    display: flex;
    flex-direction: column;
    background: rgba(18, 4, 88, 0.7);
    border-radius: var(--border-radius);
    border: 1px solid var(--primary);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid rgba(255, 0, 255, 0.3);
    background: rgba(8, 2, 36, 0.8);
}

.chat-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.chat-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-header-info {
    flex: 1;
}

.chat-header-name {
    font-weight: bold;
}

.chat-header-status {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.chat-header-actions {
    display: flex;
    gap: var(--spacing-xs);
}

.chat-header-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.chat-header-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.message {
    max-width: 80%;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 15px;
    position: relative;
    animation: message-appear 0.3s ease;
}

@keyframes message-appear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-incoming {
    align-self: flex-start;
    background: rgba(24, 6, 106, 0.8);
    border-bottom-left-radius: 0;
}

.message-outgoing {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-bottom-right-radius: 0;
}

.message-content {
    margin-bottom: 5px;
}

.message-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
}

.chat-input-container {
    padding: var(--spacing-sm);
    border-top: 1px solid rgba(255, 0, 255, 0.3);
    background: rgba(8, 2, 36, 0.8);
    display: flex;
    gap: var(--spacing-xs);
}

.chat-input {
    flex: 1;
    background: rgba(18, 4, 88, 0.4);
    border: 1px solid rgba(153, 0, 255, 0.5);
    border-radius: 20px;
    padding: var(--spacing-xs) var(--spacing-md);
    color: var(--text-light);
    font-family: 'Courier New', monospace;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.chat-send-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(153, 0, 255, 0.3);
}

.chat-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

.new-message-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(153, 0, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.new-message-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.7);
}

.new-message-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.new-message-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(18, 4, 88, 0.9);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 30px rgba(153, 0, 255, 0.5);
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.new-message-modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-title {
    margin-bottom: var(--spacing-md);
    color: var(--secondary);
    text-align: center;
}

.recipient-search {
    margin-bottom: var(--spacing-md);
}

.recipient-results {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: var(--spacing-md);
}

.recipient-item {
    display: flex;
    align-items: