/* Rencontre Lille - Styles personnalisés */

/* Auth pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 2em;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 3em 2.5em;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 2em;
}

.auth-header h1 {
    font-size: 1.8em;
    color: #e91e63;
    margin-bottom: 0.3em;
}

.auth-header h1 i {
    margin-right: 0.2em;
}

.auth-header p {
    color: #666;
    font-size: 0.95em;
}

.auth-error {
    background: #ffebee;
    color: #c62828;
    padding: 0.8em 1em;
    border-radius: 8px;
    margin-bottom: 1.5em;
    font-size: 0.9em;
    border-left: 4px solid #c62828;
}

.auth-form .form-group {
    margin-bottom: 1.2em;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 0.4em;
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

.auth-form .form-group input,
.auth-form .form-group select,
.auth-form .form-group textarea {
    width: 100%;
    padding: 0.75em 1em;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
    font-family: inherit;
}

.auth-form .form-group input:focus,
.auth-form .form-group select:focus,
.auth-form .form-group textarea:focus {
    border-color: #e91e63;
    outline: none;
}

.auth-submit {
    width: 100%;
    padding: 0.85em;
    font-size: 1.05em;
    margin-top: 0.5em;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5em;
    color: #666;
}

.auth-footer a {
    color: #e91e63;
    font-weight: 600;
    text-decoration: none;
}

.form-row {
    display: flex;
    gap: 1em;
}

.form-row .form-group {
    flex: 1;
}

/* Header enhancements */
#header .online-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    background: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
    padding: 0.35em 0.8em;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.header-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.4em;
    right: 10px;
}

.header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e91e63;
}

.btn-profile:hover .header-avatar {
    border-color: #c2185b;
}

.btn-logout {
    color: #e91e63;
    font-size: 1.1em;
    text-decoration: none;
    transition: transform 0.2s;
}

.btn-logout:hover {
    transform: rotate(-15deg);
}

/* Stats */
.stats {
    display: flex;
    gap: 2em;
    margin-top: 2.5em;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: 700;
    color: #e91e63;
}

.stat-label {
    font-size: 0.85em;
    color: #666;
}

/* Theme tags */
.theme-tag {
    display: inline-block;
    padding: 0.3em 0.8em;
    border-radius: 20px;
    color: #fff;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 0.8em;
}

.badge-count {
    background: #e91e63;
    color: #fff;
    border-radius: 10px;
    padding: 0.1em 0.5em;
    font-size: 0.8em;
    margin-left: 0.3em;
}

/* Events */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5em;
    margin-top: 1.5em;
}

.event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: #fff;
    padding: 1em;
}

.event-day {
    font-size: 1.8em;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.85em;
    text-transform: uppercase;
    opacity: 0.9;
}

.event-info {
    padding: 1em 1.2em;
    flex: 1;
}

.event-info .event-tag {
    display: inline-block;
    padding: 0.2em 0.6em;
    border-radius: 12px;
    color: #fff;
    font-size: 0.75em;
    font-weight: 600;
    margin-bottom: 0.5em;
}

.event-info h3 {
    font-size: 1.05em;
    margin-bottom: 0.5em;
    color: #222;
}

.event-meta {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 0.2em;
}

.event-meta i {
    margin-right: 0.3em;
    width: 14px;
}

.event-actions {
    display: flex;
    gap: 0.5em;
    margin-top: 0.8em;
}

.btn-join {
    background: #e91e63;
    color: #fff;
    border: none;
    padding: 0.5em 1.2em;
    border-radius: 20px;
    font-size: 0.85em;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-join:hover {
    background: #c2185b;
}

.btn-fav {
    background: none;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.btn-fav:hover {
    border-color: #e91e63;
    color: #e91e63;
}

.btn-fav.active {
    color: #e91e63;
    border-color: #e91e63;
}

/* Community */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5em;
    margin-top: 1.5em;
}

.community-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1em 1.2em;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.panel-header h3 {
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 0.4em;
}

.panel-count {
    background: #e91e63;
    color: #fff;
    border-radius: 10px;
    padding: 0.1em 0.6em;
    font-size: 0.8em;
    font-weight: 600;
}

.panel-body {
    padding: 0.5em 0;
    max-height: 350px;
    overflow-y: auto;
}

.panel-footer {
    padding: 0.8em 1.2em;
    border-top: 1px solid #eee;
}

.view-all {
    color: #e91e63;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.panel-empty {
    padding: 1.5em;
    text-align: center;
    color: #999;
}

.panel-empty a {
    color: #e91e63;
    text-decoration: none;
}

/* Online users */
.user-online {
    display: flex;
    align-items: center;
    gap: 0.8em;
    padding: 0.7em 1.2em;
    transition: background 0.2s;
}

.user-online:hover {
    background: #f9f0f3;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9em;
    color: #333;
}

.user-status {
    font-size: 0.8em;
    color: #4caf50;
}

.user-meta {
    font-size: 0.8em;
    color: #999;
}

.btn-chat {
    background: none;
    border: none;
    color: #e91e63;
    cursor: pointer;
    font-size: 0.95em;
    padding: 0.3em;
    border-radius: 50%;
    transition: background 0.2s;
}

.btn-chat:hover {
    background: #fce4ec;
}

/* Friends */
.user-friend {
    display: flex;
    align-items: center;
    gap: 0.8em;
    padding: 0.7em 1.2em;
    transition: background 0.2s;
}

.user-friend:hover {
    background: #f9f0f3;
}

.friend-badge {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
}

.friend-badge.online {
    background: #4caf50;
    box-shadow: 0 0 6px rgba(76,175,80,0.5);
}

/* Neighbors */
.user-neighbor {
    display: flex;
    align-items: center;
    gap: 0.8em;
    padding: 0.7em 1.2em;
    transition: background 0.2s;
}

.user-neighbor:hover {
    background: #f0f4ff;
}

.neighbor-icon {
    width: 36px;
    height: 36px;
    background: #e3f2fd;
    color: #2196f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.neighbor-badge {
    background: #2196f3;
    color: #fff;
    border-radius: 10px;
    padding: 0.1em 0.5em;
    font-size: 0.75em;
    font-weight: 600;
    flex-shrink: 0;
}

/* Chat */
.chat-container {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 1.5em;
    height: 500px;
    background: #fff;
}

.chat-sidebar {
    width: 280px;
    min-width: 280px;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    background: #fafafa;
}

.chat-search {
    padding: 0.8em;
    position: relative;
    border-bottom: 1px solid #eee;
}

.chat-search input {
    width: 100%;
    padding: 0.6em 0.8em 0.6em 2.2em;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 0.9em;
    background: #fff;
}

.chat-search input:focus {
    border-color: #e91e63;
    outline: none;
}

.chat-search i {
    position: absolute;
    left: 1.4em;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.chat-contacts {
    flex: 1;
    overflow-y: auto;
}

.chat-contact {
    display: flex;
    align-items: center;
    gap: 0.7em;
    padding: 0.8em 1em;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.chat-contact:hover {
    background: #f0e6eb;
}

.chat-contact.active {
    background: #fce4ec;
}

.chat-contact.online-member {
    border-left: 3px solid #4caf50;
}

.contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contact-name {
    font-weight: 600;
    font-size: 0.9em;
    color: #333;
}

.contact-last-msg {
    font-size: 0.8em;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-time {
    font-size: 0.75em;
    color: #aaa;
    flex-shrink: 0;
}

.contact-unread {
    background: #e91e63;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: 700;
    flex-shrink: 0;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8em 1.2em;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.8em;
}

.chat-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-header-info h3 {
    font-size: 1em;
}

.chat-header-status {
    font-size: 0.8em;
    color: #4caf50;
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #4caf50;
    border-radius: 50%;
    display: inline-block;
}

.chat-header-actions {
    display: flex;
    gap: 0.5em;
}

.chat-header-actions button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.1em;
    padding: 0.3em;
    border-radius: 50%;
    transition: all 0.2s;
}

.chat-header-actions button:hover {
    background: #f0f0f0;
    color: #e91e63;
}

.chat-empty {
    color: #999;
    text-align: center;
    padding: 2em 1em;
    font-size: 0.9em;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1em 1.2em;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}

.message {
    display: flex;
    max-width: 70%;
}

.message.received {
    align-self: flex-start;
}

.message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

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

.message.sent .message-content {
    align-items: flex-end;
}

.message-name {
    font-size: 0.8em;
    font-weight: 600;
    color: #e91e63;
    margin-bottom: 0.2em;
}

.message-bubble {
    background: #fff;
    padding: 0.7em 1em;
    border-radius: 16px;
    font-size: 0.9em;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.message.sent .message-bubble {
    background: #e91e63;
    color: #fff;
}

.message-time {
    font-size: 0.7em;
    color: #aaa;
    margin-top: 0.2em;
}

.chat-input-area {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.8em 1.2em;
    border-top: 1px solid #eee;
    background: #fff;
}

.chat-input-icon {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.1em;
    padding: 0.3em;
}

.chat-input-area input {
    flex: 1;
    padding: 0.7em 1em;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 0.9em;
}

.chat-input-area input:focus {
    border-color: #e91e63;
    outline: none;
}

.chat-send {
    background: #e91e63;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.chat-send:hover {
    background: #c2185b;
}

.chat-login-prompt {
    text-align: center;
    padding: 3em;
    color: #666;
}

.chat-login-prompt i {
    font-size: 3em;
    color: #ccc;
    margin-bottom: 1em;
}

.chat-login-prompt p {
    font-size: 1.1em;
    margin-bottom: 1.5em;
}

.chat-login-prompt .button {
    margin: 0 0.3em;
}

/* Profile */
.profile-header {
    display: flex;
    gap: 2em;
    align-items: center;
    flex-wrap: wrap;
    padding: 1em 0;
}

.profile-avatar {
    position: relative;
    flex-shrink: 0;
}

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

.online-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    background: #4caf50;
    border-radius: 50%;
    border: 3px solid #fff;
}

.avatar-uploader {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-top: 0.5em;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0e0e0;
}

.avatar-upload-label {
    display: inline-block;
    padding: 0.5em 1em;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
}

.avatar-upload-label:hover {
    background: #e91e63;
    color: #fff;
}

.form-hint {
    font-size: 0.8em;
    color: #999;
    margin-top: 0.3em;
}

.profile-info h1 {
    font-size: 1.8em;
    margin-bottom: 0.5em;
}

.profile-meta {
    display: flex;
    gap: 1.2em;
    flex-wrap: wrap;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 0.5em;
}

.profile-meta span {
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.profile-bio {
    color: #555;
    margin-bottom: 1em;
}

.profile-stats {
    display: flex;
    gap: 2em;
}

.profile-stat {
    text-align: center;
}

.profile-stat strong {
    display: block;
    font-size: 1.4em;
    color: #e91e63;
}

.profile-stat span {
    font-size: 0.85em;
    color: #666;
}

/* Friends grid */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2em;
    margin-top: 1.5em;
}

.friend-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.2em;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
}

.friend-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.8em;
}

.friend-info h3 {
    font-size: 1em;
    margin-bottom: 0.2em;
}

.friend-info p {
    font-size: 0.85em;
    color: #999;
}

.friend-online {
    display: inline-block;
    margin-top: 0.5em;
    padding: 0.2em 0.8em;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: 600;
}

.friend-offline {
    display: inline-block;
    margin-top: 0.5em;
    padding: 0.2em 0.8em;
    background: #f5f5f5;
    color: #999;
    border-radius: 10px;
    font-size: 0.8em;
}

.friend-actions {
    margin-top: 0.8em;
}

/* Members */
.search-bar {
    display: flex;
    gap: 0.5em;
    margin: 1.5em 0;
}

.search-bar input {
    flex: 1;
    padding: 0.7em 1em;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 0.95em;
}

.search-bar input:focus {
    border-color: #e91e63;
    outline: none;
}

.search-bar button {
    background: #e91e63;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-bar button:hover {
    background: #c2185b;
}

.search-bar.large {
    position: relative;
}

.search-bar.large input {
    padding-left: 2.5em;
}

.search-bar.large i {
    position: absolute;
    left: 1.2em;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-results {
    margin-top: 1em;
}

.member-card {
    display: flex;
    gap: 1em;
    background: #fff;
    border-radius: 12px;
    padding: 1em;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 1em;
    transition: transform 0.2s;
}

.member-card:hover {
    transform: translateY(-2px);
}

.member-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.member-info h3 {
    font-size: 1em;
    margin-bottom: 0.2em;
}

.member-username {
    font-size: 0.85em;
    color: #e91e63;
    font-weight: 600;
}

.member-quartier {
    font-size: 0.85em;
    color: #666;
}

.member-bio {
    font-size: 0.85em;
    color: #888;
    margin: 0.5em 0;
}

.member-actions {
    margin-top: 0.5em;
}

/* Flash messages */
.flash-msg {
    padding: 0.8em 1em;
    border-radius: 8px;
    margin-bottom: 1.5em;
    font-size: 0.9em;
}

.flash-msg.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.flash-msg.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

/* Inner heading for spotlights */
.inner-heading {
    padding-bottom: 1em;
}

.inner-heading h2 {
    font-size: 1.8em;
    margin-bottom: 0.3em;
}

.inner-heading p {
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .chat-container {
        flex-direction: column;
        height: auto;
    }

    .chat-sidebar {
        width: 100%;
        min-width: auto;
        max-height: 200px;
    }

    .chat-main {
        height: 400px;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .community-grid {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-meta {
        justify-content: center;
    }

    .stats {
        justify-content: center;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .header-actions {
        gap: 0.5em;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar,
.panel-body::-webkit-scrollbar,
.chat-contacts::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track,
.panel-body::-webkit-scrollbar-track,
.chat-contacts::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb,
.panel-body::-webkit-scrollbar-thumb,
.chat-contacts::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

/* ===== Base styles ===== */
html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    /* background: #f5f5f5; */
    overflow-x: hidden;
}

a {
    color: #e91e63;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em 0;
    color: #222;
    line-height: 1.2;
}

p {
    margin-bottom: 1em;
}

/* ===== Wrapper ===== */
.wrapper {
    display: block;
    position: relative;
    /* margin-bottom: 4em; */
}

.wrapper .inner {
    padding: 8em 3em;
    max-width: 1100px;
    margin: 0 auto;
}

.wrapper.style1 {
    /* background: #fff; */
}

.wrapper.style2 {
    background: #fafafa;
}

.wrapper.style3 {
    background: #fff;
}

.wrapper.style1-alt {
    background: #f8f8f8;
}

/* ===== Header ===== */
#header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    box-sizing: border-box;
    padding: 0.5em 1em;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    flex-wrap: wrap;
    gap: 0.5em;
    min-height: 60px;
}

#header .title {
    /* font-size: 1.3em; */
    font-weight: 700;
    color: #e91e63;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3em;
    white-space: nowrap;
}

@media only all and (max-width:799px)  { 

#header .title p { display:none;  }


}

#header nav ul {
    display: flex;
    list-style: none;
    gap: 0.3em;
    margin: 0;
    padding: 0;
}

#header nav a {
    display: block;
    padding: 0.5em 0.8em;
    border-radius: 6px;
    color: #555;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9em;
}

#header nav a:hover,
#header nav a.active {
    background: #fce4ec;
    color: #e91e63;
}

#header nav a:focus-visible,
.menu-toggle:focus-visible {
    outline: 2px solid #e91e63;
    outline-offset: 2px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-sizing: border-box;
    background: #fff;
    color: #e91e63;
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    order: 1;
    transition: background 0.2s, border-color 0.2s;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    background: #fce4ec;
    border-color: #e91e63;
}

.menu-toggle-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle-box span {
    display: block;
    width: 25px;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-box span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-box span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-box span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Buttons ===== */
.button {
    display: inline-block;
    padding: 0.7em 1.5em;
    background: #f0f0f0;
    color: #555;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.button:hover {
    background: #e0e0e0;
    text-decoration: none;
}

.button.primary {
    background: #e91e63;
    color: #fff;
}

.button.primary:hover {
    background: #c2185b;
}

.button.small {
    padding: 0.4em 1em;
    font-size: 0.8em;
}

.button.scrolly {
    display: inline-block;
}

/* ===== Actions ===== */
.actions {
    display: flex;
    gap: 0.5em;
    list-style: none;
    padding: 0;
    margin: 1.5em 0 0 0;
    flex-wrap: wrap;
}

.actions li {
    margin: 0;
}

/* ===== Tag ===== */
.tag {
    display: inline-block;
    padding: 0.3em 0.8em;
    background: #fce4ec;
    color: #c2185b;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 1em;
}

/* ===== Fade up animation ===== */
.fade-up {
    /* opacity: 0; */
    /* transform: translateY(57px); */
    /* transition: opacity 0.6s ease, transform 0.6s ease; */
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.is-preload .fade-up {
    /* opacity: 0; */
    transform: translateY(30px);
}

.is-preload.loaded .fade-up {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

/* ===== Footer ===== */
#footer {
    background: #f8f8f8;
    padding: 2em 3em;
    border-top: 1px solid #eee;
}

#footer .inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

#footer .menu {
    display: flex;
    gap: 1.5em;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    font-size: 0.85em;
    color: #888;
    align-items: center;
}

#footer .menu a {
    color: #888;
}

/* ===== Fullscreen ===== */
.fullscreen {
    min-height: 110vh;
    min-height: 110dvh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    background-image: url(https://i.ibb.co/Cs6nqJgB/Parc-Matisse-news-image-top.png);
    background-attachment: fixed;
}

.fullscreen .inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Mobile: smooth parallax via JS-driven transform on absolute background */
@media (max-width: 860px) {
    .fullscreen {
        background-image: none;
        background-attachment: scroll;
        min-height: calc(var(--hero-vh, 1vh) * 100);
        position: relative;
        overflow: hidden;
        transform: none !important;
    }

    .fullscreen::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: calc(100% + 120px);
        background-image: url(https://i.ibb.co/Cs6nqJgB/Parc-Matisse-news-image-top.png);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center top;
        transform: translateY(var(--parallax-y, 0px));
    }

    .fullscreen .inner {
        position: relative;
        z-index: 1;
    }
}

/* ===== Spotlights ===== */
.spotlights > section {
    display: flex;
    gap: 2em;
    padding: 3em;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.spotlights > section:last-child {
    border-bottom: none;
}

.spotlights .image {
    flex: 1;
    display: block;
    position: relative;
    min-height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
}

.spotlights .image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlights .content {
    flex: 1;
}

/* ===== Inner heading ===== */
.inner-heading {
    padding: 3em 3em 0 3em;
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== Inner heading ===== */
.inner-heading {
    padding: 8em 3em 0 3em;
    max-width: 1100px;
    margin: 0 auto;
}

.inner-heading h2 {
    font-size: 1.8em;
    margin-bottom: 0.3em;
}

.inner-heading p {
    color: #666;
}
.form-group {
    margin-bottom: 1.2em;
}

.form-group label {
    display: block;
    margin-bottom: 0.4em;
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75em 1em;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #e91e63;
    outline: none;
}

/* ===== Notifications ===== */
.notifications-list {
    margin-top: 1.5em;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 1em 1.2em;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 0.8em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #fafafa;
}

.notification-item.unread {
    border-left: 3px solid #e91e63;
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: #fce4ec;
    color: #e91e63;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1em;
}

.notification-content {
    flex: 1;
}

.notification-content p {
    margin: 0;
    font-size: 0.95em;
}

.notification-time {
    font-size: 0.8em;
    color: #aaa;
}

.notification-dot {
    width: 10px;
    height: 10px;
    background: #e91e63;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===== Scroll behavior ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Preload ===== */
.is-preload {
    /* opacity: 0; */
    transition: opacity 0.3s ease-in;
}

.is-preload.loaded {
    opacity: 1;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
    #header {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.6em 1em;
        padding: 0.5em 1em;
    }

    #header .title {
        font-size: 1.15em;
    }

    .js .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .js #header nav {
        display: none;
        flex-basis: 100%;
        order: 2;
        width: 100%;
        box-sizing: border-box;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        border-top: 1px solid #eeeeee;
        margin-top: 0.3em;
        padding-top: 0.6em;
    }

    .js #header nav.open {
        display: block;
    }

    #header nav ul {
        align-items: stretch;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.25em;
        justify-content: flex-start;
        width: 100%;
    }

    #header nav a {
        font-size: 1em;
        padding: 0.7em 0.9em;
    }

    .header-actions {
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5em;
        justify-content: flex-end;
        margin-left: auto;
        order: 3;
        right: auto;
    }

    .header-actions .online-badge {
        display: none;
    }

    .header-actions .button {
        font-size: 0.72em;
        padding: 1.45em 0.7em;
    }

    .header-avatar {
        height: 30px;
        width: 30px;
    }

    .wrapper .inner {
        padding: 6em 1.5em;
    }

    .spotlights > section {
        flex-direction: column;
        padding: 2em;
    }

    .fullscreen .inner {
        padding: 3em 1.5em;
    }

    .inner-heading {
        padding: 2em 1.5em 0 1.5em;
    }
}

/* ===== Theme filter ===== */
.theme-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin: 1.5em 0;
}

.theme-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.5em 1em;
    border-radius: 20px;
    border: 2px solid #e0e0e0;
    color: #555;
    font-size: 0.85em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    background: #fff;
}

.theme-filter-btn:hover {
    border-color: #e91e63;
    color: #e91e63;
    text-decoration: none;
}

.theme-filter-btn.active {
    color: #fff;
    border-color: transparent;
}

/* ===== Create event ===== */
.create-event-toggle {
    margin: 1.5em 0;
    text-align: center;
}

.create-event-form {
    background: #fafafa;
    border-radius: 12px;
    padding: 2em;
    margin: 1.5em 0;
    border: 2px dashed #e0e0e0;
}

.create-event-form h3 {
    margin-top: 0;
    margin-bottom: 1em;
    color: #e91e63;
}

/* ===== Activity themes ===== */
.activity-theme {
    margin-bottom: 3em;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.activity-theme-header {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 1.5em 2em;
    color: #fff;
}

.activity-theme-header h2 {
    color: #fff;
    margin: 0;
    flex: 1;
}

.activity-count {
    background: rgba(255,255,255,0.2);
    padding: 0.2em 0.8em;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.activity-events {
    padding: 1.5em;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5em;
    background: #fff;
}

/* ===== Friend request ===== */
.friend-request-item {
    display: flex;
    align-items: center;
    gap: 0.8em;
    padding: 0.7em 1.2em;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 0.5em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.friend-request-actions {
    display: flex;
    gap: 0.3em;
    margin-left: auto;
    flex-shrink: 0;
}

.friend-request-actions .btn-accept {
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 0.3em 0.8em;
    border-radius: 12px;
    font-size: 0.8em;
    cursor: pointer;
    font-weight: 600;
}

.friend-request-actions .btn-decline {
    background: #f5f5f5;
    color: #999;
    border: 1px solid #e0e0e0;
    padding: 0.3em 0.8em;
    border-radius: 12px;
    font-size: 0.8em;
    cursor: pointer;
}

/* ===== Add friend search ===== */
.add-friend-section {
    margin-top: 2em;
    padding: 1.5em;
    background: #fafafa;
    border-radius: 12px;
}

.add-friend-section h3 {
    margin-top: 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.8em;
    padding: 0.7em 1em;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 0.5em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .theme-filter {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: column;
    }

    .activity-theme-header {
        flex-direction: column;
        text-align: center;
    }

    .activity-events {
        grid-template-columns: 1fr;
    }
}

/* DB error banner */
.db-error-banner {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    border-radius: 8px;
    margin: 1em auto;
    max-width: 1200px;
    padding: 1em 1.5em;
    font-size: 0.95em;
    text-align: center;
}

.db-error-banner i {
    color: #dc3545;
    margin-right: 0.5em;
}

.event-description {
    color: #555;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0.4em 0 0.7em;
}

.event-empty {
    color: #666;
    grid-column: 1 / -1;
    padding: 2em;
    text-align: center;
}

.faq-list {
    display: grid;
    gap: 1em;
    margin-top: 1.5em;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    padding: 1.2em 1.5em;
}

.faq-item h3 {
    color: #222;
    font-size: 1.05em;
    margin: 0 0 0.4em;
}

.faq-item p {
    color: #666;
    margin: 0;
}

/* Admin link in header */
.admin-link {
    color: #e91e63 !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25em;
}

.admin-link i {
    color: #e91e63;
}
