* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #8B0000;
    --primary-dark: #600000;
    --primary-light: #330000;
    --secondary: #1A1A1A;
    --accent-red: #FF0000;
    --accent-pink: #CC0000;
    --text: #E0E0E0;
    --text-light: #A0A0A0;
    --border: #333333;
    --background: #0D0D0D;
    --radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    --success: #228B22;
    --warning: #FFA500;
    --info: #4285F4;
    --card-bg: rgba(26, 26, 26, 0.85);
    --border-color: rgba(51, 51, 51, 0.7);
    --accent-color: #8B0000;
    --text-color: #E0E0E0;
    --text-muted: #A0A0A0;
}


/* ΚΡΙΤΙΚΗ ΑΛΛΑΓΗ: ΕΛΑΦΡΥ OVERLAY ΓΙΑ ΝΑ ΧΑΜΗΛΩΣΟΥΜΕ ΤΗΝ ΦΩΤΕΙΝΟΤΗΤΑ ΤΟΥ BACKGROUND */

body {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('backgroundCars.jpg') center/cover fixed !important;
    color: var(--text);
    min-height: 100vh;
    touch-action: pan-y;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
    animation: backgroundSwitch 20s infinite;
}


/* 🔥 ΝΕΟ: Animation για εναλλαγή background */

@keyframes backgroundSwitch {
    0%,
    45% {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('backgroundCars.jpg') center/cover fixed;
    }
    50%,
    95% {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('motorcycle-background.jpg') center/cover fixed;
    }
    100% {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('backgroundCars.jpg') center/cover fixed;
    }
}


/* ========================================
   🔥 ΚΡΙΤΙΚΟ FIX: MOBILE NAVIGATION - ΟΛΕΣ ΟΙ ΑΛΛΑΓΕΣ ΕΔΩ
   ======================================== */


/* 🔥 ΒΕΛΤΙΩΣΗ: Δυναμική προσαρμογή του navigation container */

#main-nav {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
    min-height: 66px;
}

#main-nav::-webkit-scrollbar {
    display: none;
}


/* 🔥 ΜΕΓΑΛΗ ΑΛΛΑΓΗ: ΜΕΙΩΣΗ ΤΟΥ LOGO */

.nav-brand .nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 200px;
    /* ΜΕΙΩΣΗ ΑΠΟ 250px */
    min-width: 180px;
    /* ΜΕΙΩΣΗ ΑΠΟ 250px */
    max-width: 200px;
    /* ΜΕΙΩΣΗ ΑΠΟ 250px */
    overflow: hidden;
    flex-shrink: 0;
}

.nav-logo {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    min-width: 100%;
    min-height: 100%;
    filter: brightness(1.05) contrast(1.1);
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
}


/* 🔥 ΒΕΛΤΙΩΣΗ: Ελαστική συμπεριφορά για τα nav buttons */

.nav-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: visible;
    min-width: 0;
    flex-shrink: 0;
}

.nav-username {
    color: var(--text);
    font-weight: 600;
    padding: 0 12px;
    white-space: nowrap;
    flex-shrink: 0;
}


/* 🔥 ΒΕΛΤΙΩΣΗ: Compact nav buttons */

.nav-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 14px;
    /* ΜΕΙΩΣΗ ΑΠΟ 12px 16px */
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.85rem;
    /* ΜΕΙΩΣΗ ΑΠΟ 0.9rem */
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}


/* Icons styling */

.nav-btn i,
.btn i,
.cta-btn i,
.send-btn i,
.action-btn i {
    margin-right: 6px;
    /* ΜΕΙΩΣΗ ΑΠΟ 8px */
    font-size: 0.85em;
    /* ΜΕΙΩΣΗ ΑΠΟ 0.9em */
}

.feature-icon i {
    font-size: 2.5rem;
    color: var(--accent-red);
}

.btn-icon i {
    font-size: 1.1rem;
}

.input-action-btn i {
    font-size: 1.2rem;
}

.nav-btn i,
.btn-primary i,
.cta-btn i,
.send-btn i {
    color: inherit;
}

.btn-icon i,
.input-action-btn i {
    color: var(--text-light);
}

.btn-icon:hover i,
.input-action-btn:hover i {
    color: var(--accent-red);
}


/* ========================================
   🔥 ΚΡΙΤΙΚΕΣ ΑΛΛΑΓΕΣ ΜΟΝΟ ΓΙΑ MOBILE
   ======================================== */

@media (max-width: 768px) {
    /* 🔥 ΣΗΜΑΝΤΙΚΟ: Μεγαλώνουμε λίγο το logo για mobile */
    .nav-brand .nav-btn {
        width: 140px !important;
        /* ΑΥΞΗΣΗ ΑΠΟ 120px ΣΕ 140px */
        min-width: 140px !important;
        max-width: 140px !important;
        height: 45px !important;
        /* ΑΥΞΗΣΗ ΑΠΟ 40px ΣΕ 45px */
    }
    /* Τα υπόλοιπα παραμένουν ίδια */
    .nav-btn {
        padding: 8px 10px !important;
        font-size: 0.75rem !important;
        min-height: 36px;
    }
    .nav-actions {
        gap: 4px !important;
    }
    .nav-username {
        font-size: 0.7rem !important;
        padding: 0 6px !important;
    }
    #main-nav {
        padding: 6px 10px !important;
    }
    .nav-btn i {
        margin-right: 4px !important;
        font-size: 0.7em !important;
    }
}

@media (max-width: 600px) {
    /* 🔥 Μικρή μείωση για πολύ μικρές οθόνες αλλά παραμένει μεγαλύτερο */
    .nav-brand .nav-btn {
        width: 130px !important;
        /* ΑΥΞΗΣΗ ΑΠΟ 100px ΣΕ 130px */
        min-width: 130px !important;
        max-width: 130px !important;
        height: 42px !important;
        /* ΑΥΞΗΣΗ ΑΠΟ 35px ΣΕ 42px */
    }
    .nav-btn {
        padding: 6px 8px !important;
        font-size: 0.7rem !important;
        min-height: 34px;
    }
    .nav-actions {
        gap: 3px !important;
    }
    .nav-username {
        font-size: 0.65rem !important;
        padding: 0 4px !important;
    }
    #main-nav {
        padding: 5px 8px !important;
    }
    .nav-btn i {
        margin-right: 3px !important;
        font-size: 0.65em !important;
    }
}

@media (max-width: 480px) {
    /* 🔥 Παρόλα αυτά, παραμένουμε λίγο πιο συμπαγείς σε πολύ μικρές οθόνες */
    .nav-brand .nav-btn {
        width: 120px !important;
        /* ΑΥΞΗΣΗ ΑΠΟ 80px ΣΕ 120px */
        min-width: 120px !important;
        max-width: 120px !important;
        height: 38px !important;
        /* ΑΥΞΗΣΗ ΑΠΟ 30px ΣΕ 38px */
    }
    /* Τα υπόλοιπα παραμένουν ίδια */
    .nav-btn {
        padding: 5px 6px !important;
        font-size: 0.65rem !important;
        min-height: 32px;
        max-width: 80px;
    }
    .nav-btn span:not(.nav-badge) {
        display: none;
    }
    .nav-btn i {
        margin-right: 0 !important;
        font-size: 0.8em !important;
    }
    .nav-actions {
        gap: 2px !important;
    }
    .nav-username {
        display: none !important;
    }
    #main-nav {
        padding: 4px 6px !important;
        min-height: 60px;
    }
    .nav-btn {
        min-width: 32px;
        min-height: 32px;
        border-radius: 6px;
        touch-action: manipulation;
    }
}

@media (max-width: 360px) {
    /* 🔥 Και για το πιο μικρό κινητό, το logo παραμένει αναγνώσιμο */
    .nav-brand .nav-btn {
        width: 110px !important;
        /* ΑΥΞΗΣΗ ΑΠΟ 70px ΣΕ 110px */
        min-width: 110px !important;
        max-width: 110px !important;
        height: 35px !important;
        /* ΑΥΞΗΣΗ ΑΠΟ 28px ΣΕ 35px */
    }
    .nav-btn {
        padding: 4px 5px !important;
        font-size: 0.6rem !important;
        min-height: 30px;
        max-width: 70px;
        border-radius: 5px;
    }
    .nav-actions {
        gap: 1px !important;
    }
    #main-nav {
        padding: 3px 4px !important;
        min-height: 58px;
    }
    .nav-btn i {
        font-size: 0.75em !important;
    }
}


/* ========================================
   🔥 ΒΕΛΤΙΩΣΗ: ΚΑΛΥΤΕΡΗ ΕΙΚΟΝΑ ΤΟΥ LOGO ΣΕ MOBILE
   ======================================== */


/* 🔥 Βελτιστοποίηση της εικόνας του logo για mobile */

@media (max-width: 768px) {
    .nav-logo {
        object-fit: contain;
        /* Βέλτιστη εμφάνιση */
        padding: 2px;
        /* Λίγο padding για να μην κολλάει στα άκρα */
    }
}


/* 🔥 Βελτιστοποίηση hover για το logo */

@media (hover: hover) and (pointer: fine) {
    .nav-brand .nav-btn:hover {
        transform: scale(1.03);
        transition: transform 0.2s ease;
    }
}


/* ========================================
   ΤΟ ΥΠΟΛΟΙΠΟ CSS (ΧΩΡΙΣ ΑΛΛΑΓΕΣ)
   ======================================== */


/* Pages */

.page {
    display: none;
    min-height: calc(100vh - 66px);
}

.page.active {
    display: block;
}


/* Home Page */

#home-page {
    padding: 0;
}


/* ΚΡΙΤΙΚΗ ΑΛΛΑΓΗ: ΕΝΤΕΛΩΣ ΧΩΡΙΣ OVERLAY ΣΤΟ HERO - ΑΛΛΑ ΠΕΡΙΣΣΟΤΕΡΗ ΣΚΙΑ */

.hero-section {
    background: none !important;
    /* ΚΑΘΟΛΟΥ background */
    color: white;
    padding: 80px 30px;
    text-align: center;
    position: relative;
    z-index: 1;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.95);
    /* ΙΣΧΥΡΟΤΕΡΗ ΣΚΙΑ για καλύτερη ανάγνωση */
}

.hero-section h1 {
    font-size: 2.8rem;
    margin-bottom: 16px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}


/* 🔥 ΚΡΙΤΙΚΗ ΑΛΛΑΓΗ: ΜΕΓΑΛΗ ΑΠΟΣΤΑΣΗ 25px ΑΝΑΜΕΣΑ ΣΕ ΟΛΑ ΤΑ ΚΟΥΜΠΙΑ ΣΤΗΝ ΑΡΧΙΚΗ ΣΕΛΙΔΑ */

.hero-section #home-cta-logged-out,
.hero-section #home-cta-logged-in {
    display: flex;
    flex-direction: row;
    gap: 25px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.cta-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 0 0 auto;
    min-width: 180px;
    text-align: center;
}

.cta-btn:hover {
    background: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.cta-btn-secondary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 0 0 auto;
    min-width: 180px;
    text-align: center;
}

.cta-btn-secondary:hover {
    background: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.hero-section #home-cta-logged-out .cta-btn:hover,
.hero-section #home-cta-logged-out .cta-btn-secondary:hover,
.hero-section #home-cta-logged-in .cta-btn:hover,
.hero-section #home-cta-logged-in .cta-btn-secondary:hover {
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
    transform: translateY(-3px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 60px 30px;
    max-width: 1000px;
    margin: 0 auto;
}


/* ΚΡΙΤΙΚΗ ΑΛΛΑΓΗ: ΠΑΝΑΡΙΣΤΑ ΔΙΑΦΑΝΗ CARDS */

.feature-card {
    background: rgba(20, 20, 20, 0.3) !important;
    /* ΠΟΛΥ ΔΙΑΦΑΝΕΙΣ */
    backdrop-filter: blur(8px);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.3);
    background: rgba(38, 38, 38, 0.5) !important;
    /* Λίγο πιο σκούρο στο hover */
}

.feature-icon {
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.9rem;
}


/* ========================================
   EVENTS STYLES
   ======================================== */

.events-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.events-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.event-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.3);
    background: rgba(38, 38, 38, 0.9);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary);
}

.event-card.upcoming::before {
    background: var(--success);
}

.event-card.past::before {
    background: var(--text-light);
}

.event-card.full::before {
    background: var(--accent-red);
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.event-card-header h3 {
    font-size: 1.2rem;
    color: var(--text);
    margin: 0;
    flex: 1;
}

.event-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-status.upcoming {
    background: rgba(34, 139, 34, 0.2);
    color: var(--success);
}

.event-status.past {
    background: rgba(160, 160, 160, 0.2);
    color: var(--text-light);
}

.event-status.full {
    background: rgba(255, 0, 0, 0.2);
    color: var(--accent-red);
}

.event-details {
    margin-bottom: 15px;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.event-detail i {
    width: 16px;
    color: var(--accent-red);
}

.event-participants {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(51, 51, 51, 0.3);
}

.participant-count {
    font-size: 0.85rem;
    color: var(--text-light);
}

.participant-count strong {
    color: var(--text);
}

.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(51, 51, 51, 0.3);
}

.event-creator {
    font-size: 0.85rem;
    color: var(--text-light);
}

.event-actions {
    display: flex;
    gap: 8px;
}

.btn-event {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-event.join {
    background: var(--primary);
    color: white;
}

.btn-event.join:hover {
    background: var(--accent-red);
}

.btn-event.leave {
    background: transparent;
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}

.btn-event.leave:hover {
    background: rgba(139, 0, 0, 0.1);
}

.btn-event.details {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-color);
}

.btn-event.details:hover {
    background: rgba(51, 51, 51, 0.5);
}


/* Event Details Modal */

#event-details-content {
    padding: 10px 0;
}

.event-detail-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(51, 51, 51, 0.3);
}

.event-detail-item:last-child {
    border-bottom: none;
}

.event-detail-item h4 {
    color: var(--text);
    margin-bottom: 8px;
    font-size: 1rem;
}

.event-detail-item p {
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

.event-participants-list {
    max-height: 200px;
    overflow-y: auto;
    background: rgba(26, 26, 26, 0.5);
    border-radius: var(--radius);
    padding: 10px;
    border: 1px solid var(--border-color);
}

.participant-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.participant-item:hover {
    background: rgba(51, 51, 51, 0.3);
}

.participant-item.creator {
    background: rgba(139, 0, 0, 0.1);
    border-left: 3px solid var(--primary);
}

.participant-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

.participant-name {
    font-size: 0.9rem;
    color: var(--text);
}


/* Responsive Events */

@media (max-width: 768px) {
    .events-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .event-card {
        padding: 15px;
    }
    .event-card-header h3 {
        font-size: 1.1rem;
    }
    .event-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn-event {
        width: 100%;
        justify-content: center;
    }
}


/* No events message */

.no-events {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.no-events i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--accent-red);
    opacity: 0.5;
}

.no-events h3 {
    color: var(--text);
    margin-bottom: 10px;
}


/* ========================================
   CLEAN SOCIAL MEDIA STYLES - ΜΑΥΡΑ ΜΕ ΚΟΚΚΙΝΟ HOVER
   ======================================== */

.social-media-section {
    text-align: center;
    padding: 60px 20px;
    /* ΑΦΑΙΡΕΘΗΚΕ το background container - καθαρή εμφάνιση */
    max-width: 900px;
    margin: 60px auto 0;
}

.social-media-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.social-media-section>p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.6;
    font-size: 1rem;
}

.social-icons-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
}


/* 🔥 ΜΑΥΡΑ ΚΥΚΛΑ ΜΕ ΚΟΚΚΙΝΟ HOVER */

.social-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    /* Κύκλος */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: #000000;
    /* Μαύρο */
    border: 2px solid rgba(51, 51, 51, 0.5);
}


/* Αφαίρεση overlay */

.social-icon-circle::before {
    display: none;
}

.social-icon-circle i {
    font-size: 1.8rem;
    color: #ffffff;
    /* Λευκά icons */
    transition: all 0.3s ease;
}

.social-icon-label {
    font-size: 0.7rem;
    color: #ffffff;
    margin-top: 6px;
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}


/* ΟΛΑ ΜΑΥΡΑ - ΧΩΡΙΣ BRAND COLORS */

.social-icon-circle.instagram,
.social-icon-circle.facebook,
.social-icon-circle.twitter,
.social-icon-circle.youtube,
.social-icon-circle.tiktok,
.social-icon-circle.discord {
    background: #000000;
    border-color: rgba(51, 51, 51, 0.5);
}


/* 🔥 ΚΟΚΚΙΝΟ HOVER ΣΑΝ ΤΟ ΥΠΟΛΟΙΠΟ APP */

.social-icon-circle:hover {
    background: var(--primary);
    /* RatScape κόκκινο */
    transform: translateY(-8px) scale(1.08);
    border-color: var(--accent-red);
    box-shadow: 0 12px 28px rgba(255, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.social-icon-circle:hover i {
    color: #ffffff;
    transform: scale(1.15);
}

.social-icon-circle:hover .social-icon-label {
    opacity: 1;
    color: #ffffff;
}

.social-icon-circle:active {
    transform: translateY(-4px) scale(1.02);
}

.follow-us {
    color: var(--text-light);
    font-style: italic;
    margin-top: 30px;
    font-size: 0.95rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

@keyframes socialIconBounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}


/* Rooms Page */

.rooms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.rooms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.rooms-header h2 {
    font-size: 2rem;
    color: var(--text);
}

.rooms-actions {
    display: flex;
    gap: 10px;
}

.rooms-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.room-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.room-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.3);
    background: rgba(38, 38, 38, 0.9);
}

.room-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.room-card-header h3 {
    font-size: 1.2rem;
    color: var(--text);
}

.room-invite-code {
    background: var(--primary-light);
    color: var(--accent-red);
    padding: 8px 12px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
}

.room-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.room-created {
    font-size: 0.85rem;
    color: var(--text-light);
}

.no-rooms {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-rooms p {
    margin-bottom: 10px;
}


/* Chat Layout */

.chat-layout {
    display: flex;
    height: calc(100vh - 66px);
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

#sidebar {
    width: 280px;
    background: rgba(38, 38, 38, 0.8);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: var(--text);
}

.room-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

.room-details {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.invite-code-section label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 600;
}

.invite-code-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    padding: 12px 16px;
    border-radius: var(--radius);
}

.invite-code-display span {
    flex: 1;
    font-weight: 600;
    color: var(--accent-red);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(139, 0, 0, 0.2);
}

.room-members-section {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
}

.room-members-section h3 {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

#room-members-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.member-item:hover {
    background: rgba(51, 51, 51, 0.5);
    transform: translateX(5px);
}

.member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.member-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
}

.member-joined {
    font-size: 0.75rem;
    color: var(--text-light);
}

.user-profile {
    padding: 12px 15px;
    background: rgba(38, 38, 38, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.profile-avatar .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    overflow: hidden;
}

.profile-info {
    flex: 1;
}

.profile-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.profile-status {
    font-size: 0.75rem;
    color: var(--text-light);
}


/* Main Chat */

#main-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(26, 26, 26, 0.5);
    position: relative;
    height: 100%;
    min-width: 0;
    overflow: hidden;
}

.chat-header {
    padding: 15px 20px;
    background: rgba(38, 38, 38, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.chat-info h2 {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 2px;
}

.chat-description {
    font-size: 0.8rem;
    color: var(--text-light);
}

.chat-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    font-weight: 500;
}

.clear-btn {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

.clear-btn:hover {
    background: #CC0000;
}


/* Messages */

#messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: rgba(26, 26, 26, 0.5);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    height: calc(100% - 140px);
    min-height: 0;
}

#messages-container::after {
    content: '';
    display: block;
    height: 10px;
    flex-shrink: 0;
}

.message {
    padding: 12px 16px;
    border-radius: var(--radius);
    max-width: 75%;
    animation: messageAppear 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    flex-shrink: 0;
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.own {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 8px;
}

.message.other {
    align-self: flex-start;
    background: rgba(38, 38, 38, 0.9);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 8px;
    padding: 12px 16px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.message-sender {
    font-weight: 600;
    font-size: 0.85rem;
}

.message.own .message-sender {
    color: rgba(255, 255, 255, 0.9);
}

.message.other .message-sender {
    color: var(--accent-red);
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-left: 8px;
}

.message-text {
    line-height: 1.4;
    font-size: 0.95rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}


/* Input Area */

.message-input-container {
    padding: 15px 20px;
    background: rgba(38, 38, 38, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

#chat-form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.input-actions {
    display: flex;
    gap: 4px;
}

.input-action-btn {
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-light);
}

.input-action-btn:hover {
    background: rgba(51, 51, 51, 0.5);
}

#message-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: rgba(26, 26, 26, 0.9);
    color: var(--text);
    resize: none;
    min-height: 44px;
    max-height: 120px;
    font-family: inherit;
    line-height: 1.4;
}

#message-input:focus {
    border-color: var(--accent-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.2);
    background: rgba(38, 38, 38, 0.9);
}

.send-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.send-btn:hover {
    background: var(--accent-red);
}


/* Modals */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(38, 38, 38, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 25px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.3rem;
    color: var(--text);
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s ease;
}

.close-modal-btn:hover {
    color: var(--accent-red);
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: inherit;
    background: rgba(26, 26, 26, 0.9);
    color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.2);
    background: rgba(38, 38, 38, 0.9);
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    flex: 1;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-red);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(51, 51, 51, 0.8);
    color: var(--text);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(77, 77, 77, 0.8);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.guest-section {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.guest-section p {
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.btn-guest {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-guest:hover {
    background: var(--primary-light);
}


/* Friends Page Styles */

.friends-list-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.my-username-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.my-username-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.username-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.username-text {
    font-weight: 600;
    color: var(--accent-red);
    font-size: 1.1rem;
}

.username-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.friend-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.friend-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.3);
    background: rgba(38, 38, 38, 0.9);
}

.friend-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    overflow: hidden;
    flex-shrink: 0;
}

.friend-details {
    display: flex;
    flex-direction: column;
}

.friend-name {
    font-weight: 600;
    color: var(--text-color);
}

.friend-since {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.friend-actions {
    display: flex;
    gap: 0.5rem;
}

.no-friends {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.no-friends p {
    margin: 0.5rem 0;
}

.btn-danger {
    background: var(--accent-red);
    border: 1px solid var(--accent-red);
    color: white;
}

.btn-danger:hover {
    background: #CC0000;
}


/* Enhanced Friends System Styles */

.friends-section {
    margin-bottom: 2rem;
}

.friends-section h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.pending-requests-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.friend-card.pending {
    background: rgba(139, 0, 0, 0.2);
    border: 1px solid var(--accent-red);
}

.btn-success {
    background: var(--success);
    border: 1px solid var(--success);
    color: white;
}

.btn-success:hover {
    background: #1E7A1E;
}

.friends-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


/* ========================================
   BEAUTIFUL NOTIFICATION SYSTEM
   ======================================== */

.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.notification {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 15px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 350px;
    position: relative;
}

.notification.active {
    transform: translateX(0);
    opacity: 1;
}

.notification.hiding {
    transform: translateX(400px);
    opacity: 0;
}

.notification.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification.clickable:hover {
    transform: translateX(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    background: rgba(50, 50, 50, 0.95);
}

.notification-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
    font-size: 0.9rem;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text);
}

.notification-message {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(139, 0, 0, 0.3);
    color: var(--accent-red);
}


/* Notification Types */

.notification.success {
    border-left: 4px solid var(--success);
}

.notification.success .notification-icon {
    background: var(--success);
    color: white;
}

.notification.error {
    border-left: 4px solid var(--accent-red);
}

.notification.error .notification-icon {
    background: var(--accent-red);
    color: white;
}

.notification.warning {
    border-left: 4px solid var(--warning);
}

.notification.warning .notification-icon {
    background: var(--warning);
    color: white;
}

.notification.info {
    border-left: 4px solid var(--info);
}

.notification.info .notification-icon {
    background: var(--info);
    color: white;
}


/* Notification Count Badge */

.notification-count-badge {
    position: absolute;
    top: 10px;
    right: 35px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    min-width: 22px;
    height: 22px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    animation: badgePop 0.3s ease-out;
}


/* Unread Notification Style */

.notification.unread {
    border-left: 6px solid var(--accent-red) !important;
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.1) 0%, rgba(26, 26, 26, 0.9) 100%);
}

.notification.unread .notification-title {
    color: var(--accent-red);
    font-weight: bold;
}

.notification.unread .notification-title::after {
    content: " ●";
    color: var(--accent-red);
    animation: blink 1s infinite;
    font-size: 1.2em;
    vertical-align: middle;
    margin-left: 5px;
}


/* Offline Notification Style */

.notification.offline {
    border-left: 6px solid var(--warning);
    background: linear-gradient(90deg, rgba(255, 165, 0, 0.1) 0%, rgba(26, 26, 26, 0.9) 100%);
}

.notification.offline .notification-title {
    color: var(--warning);
}


/* ========================================
   UNREAD MESSAGES & BADGES SYSTEM
   ======================================== */

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.event-card.deleting {
    animation: fadeOut 0.5s ease forwards;
}


/* Badge Animations */

@keyframes badgePop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes badgePulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

@keyframes highlightPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(139, 0, 0, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(139, 0, 0, 0);
        transform: scale(1.02);
    }
}


/* Navigation Badges */

.nav-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-red);
    color: white;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 100;
    animation: badgePop 0.3s ease-out;
}


/* Friend List Badges */

.friend-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-red);
    color: white;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 1;
    animation: badgePop 0.3s ease-out;
}


/* Room List Badges */

.room-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-red);
    color: white;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 1;
    animation: badgePop 0.3s ease-out;
}


/* Member Item Unread Indicator */

.member-item.unread {
    background: rgba(139, 0, 0, 0.15);
    border-left: 3px solid var(--accent-red);
}

.member-item.unread::after {
    content: "●";
    color: var(--accent-red);
    font-size: 0.8rem;
    position: absolute;
    right: 15px;
    animation: blink 1s infinite;
}


/* Enhanced Hover Effects for Unread Items */

.friend-card.has-unread {
    border-left: 3px solid var(--accent-red);
    background: rgba(139, 0, 0, 0.1);
}

.room-card.has-unread {
    border-left: 3px solid var(--accent-red);
    background: rgba(139, 0, 0, 0.1);
}

.friend-card.has-unread:hover,
.room-card.has-unread:hover {
    background: rgba(139, 0, 0, 0.2);
    border-color: var(--accent-red);
}


/* Highlight Animation for Clicked Notifications */

.highlight-animation {
    animation: highlightPulse 2s ease-in-out;
    border: 2px solid var(--accent-red) !important;
}


/* ========================================
   PWA FLOATING INSTALL BUTTON
   ======================================== */

.pwa-floating-install-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-red) 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    display: none;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: scale(1);
    animation: floatPulse 3s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.pwa-floating-install-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    border-radius: 50px;
}

.pwa-floating-install-button:hover::before {
    left: 100%;
}

.pwa-floating-install-button:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 0, 0, 0.6), 0 6px 15px rgba(0, 0, 0, 0.4);
    animation: none;
    background: linear-gradient(135deg, var(--accent-red) 0%, #CC0000 100%);
}

.pwa-floating-install-button:active {
    transform: scale(0.95);
}

.pwa-floating-install-button i {
    font-size: 1.3rem;
    animation: downloadBounce 2s ease-in-out infinite;
}

.pwa-floating-install-button:hover i {
    animation: none;
    transform: translateY(-2px);
}

.pwa-floating-install-button .install-text {
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.pwa-floating-install-button.fade-in {
    display: flex !important;
    animation: fadeInSlideUp 0.5s ease-out forwards;
}

@keyframes floatPulse {
    0%,
    100% {
        transform: scale(1) translateY(0);
        box-shadow: 0 8px 25px rgba(139, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.05) translateY(-5px);
        box-shadow: 0 12px 35px rgba(139, 0, 0, 0.6), 0 6px 15px rgba(0, 0, 0, 0.4);
    }
}

@keyframes downloadBounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body.pwa-mode .pwa-floating-install-button {
    display: none !important;
}


/* ========================================
   CONFIRMATION MODAL STYLING
   ======================================== */

#confirmation-modal .modal-content {
    max-width: 400px;
    text-align: center;
}

#confirmation-modal .form-group {
    padding: 20px 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#confirmation-modal #confirmation-message {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.5;
    margin: 0;
}

#confirmation-modal .modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

#confirmation-modal .modal-buttons .btn {
    flex: 1;
    padding: 12px 24px;
    font-weight: 600;
}

#confirmation-modal .btn-primary {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

#confirmation-modal .btn-primary:hover {
    background: #CC0000;
}

#confirmation-modal .btn-secondary:hover {
    background: rgba(77, 77, 77, 0.8);
}


/* ========================================
   SCROLLBAR STYLING
   ======================================== */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 0, 0, 0.6);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 0, 0, 0.6);
}


/* ========================================
   PROFILE PAGE STYLES
   ======================================== */

.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.profile-picture-section {
    text-align: center;
    margin-bottom: 30px;
}

.profile-picture-container {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.profile-image-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 4px solid var(--primary);
    background: var(--card-bg);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-image-wrapper:hover .profile-image-overlay {
    opacity: 1;
}

#profile-username {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 5px;
}

.profile-email {
    color: var(--text-light);
    font-size: 0.9rem;
}

.profile-info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card,
.stats-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.info-card h3,
.stats-card h3 {
    color: var(--text);
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(51, 51, 51, 0.3);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}

.info-value {
    color: var(--text);
    font-weight: 500;
}

.status-online {
    color: var(--success);
}

.status-offline {
    color: var(--text-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(26, 26, 26, 0.5);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-red);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.profile-actions .btn {
    flex: 1;
}


/* Profile Picture Upload */

.profile-picture-upload {
    margin-top: 10px;
}

.upload-preview {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 26, 0.5);
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#upload-placeholder {
    text-align: center;
    color: var(--text-light);
}

#upload-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--accent-red);
}

.upload-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}


/* User Info Modal Styles */

.user-info-container {
    text-align: center;
    padding: 20px 0;
}

.user-info-picture {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
    background: var(--card-bg);
    position: relative;
}

.user-info-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.initials-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 2rem;
    color: white;
}

.user-info-details {
    margin-bottom: 20px;
    background: rgba(26, 26, 26, 0.5);
    border-radius: var(--radius);
    padding: 15px;
    border: 1px solid var(--border-color);
}

.user-info-details .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(51, 51, 51, 0.3);
}

.user-info-details .info-item:last-child {
    border-bottom: none;
}

.user-info-details .info-item label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: left;
}

.user-info-details .info-value {
    color: var(--text);
    font-weight: 500;
    text-align: right;
}

.user-info-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.user-info-actions .btn {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


/* Registration with Profile Picture */

.registration-avatar-section {
    margin: 15px 0;
    text-align: center;
}

.registration-avatar-preview {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-color);
    background: rgba(26, 26, 26, 0.5);
}

.registration-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.registration-avatar-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-light);
}

.registration-avatar-placeholder i {
    font-size: 2rem;
    margin-bottom: 5px;
}

.registration-avatar-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}


/* ========================================
   USER INFO MODAL STYLING
   ======================================== */

.member-item {
    transition: all 0.2s ease;
    cursor: pointer;
}

.member-item:hover {
    background: rgba(139, 0, 0, 0.15) !important;
    transform: translateX(5px);
}

.member-item:active {
    background: rgba(139, 0, 0, 0.25) !important;
}

#user-info-modal .modal-content {
    max-width: 420px;
    padding: 25px;
}

.user-info-container {
    text-align: center;
    padding: 10px 0;
}

.user-info-picture {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
    background: var(--card-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.user-info-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info-details {
    margin-bottom: 25px;
    background: rgba(26, 26, 26, 0.5);
    border-radius: var(--radius);
    padding: 15px;
    border: 1px solid var(--border-color);
}

.user-info-details .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(51, 51, 51, 0.3);
}

.user-info-details .info-item:last-child {
    border-bottom: none;
}

.user-info-details .info-item label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: left;
}

.user-info-details .info-value {
    color: var(--text);
    font-weight: 500;
    text-align: right;
}

.user-info-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.user-info-actions .btn {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


/* ========================================
   FIX: ΚΟΙΝΟ STYLING ΓΙΑ ΟΛΑ ΤΑ ΜΗΝΥΜΑΤΑ
   ======================================== */

.message.other {
    display: block !important;
}

.message.other .message-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 8px !important;
    flex-direction: row !important;
}

.message.other .message-sender {
    display: inline !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    color: var(--accent-red) !important;
}

.message.other .message-text {
    margin-left: 0 !important;
    margin-top: 0 !important;
    line-height: 1.4 !important;
    font-size: 0.95rem !important;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#user-info-modal.active .modal-content {
    animation: slideInUp 0.3s ease-out;
}


/* ========================================
   PRIVATE CHAT - NO INVITE CODES
   ======================================== */

#invite-code-container.hide-for-private {
    display: none !important;
}

#sidebar:has(#invite-code-container.hide-for-private) .room-members-section {
    border-top: none;
    padding-top: 20px;
}

#copy-invite-btn.hidden-for-private {
    display: none !important;
}

#room-status.private-chat {
    color: var(--accent-red);
    font-weight: 600;
}


/* ========================================
   FILE UPLOAD & EMOJI PICKER STYLES
   ======================================== */

.file-preview-container {
    background: rgba(38, 38, 38, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin: 10px 20px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    animation: slideInUp 0.3s ease-out;
}

.file-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.file-preview-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
}

.file-preview-title i {
    color: var(--accent-red);
    font-size: 1.1rem;
}

.file-preview-content {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

#preview-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.file-info {
    flex: 1;
}

.file-info-row {
    margin-bottom: 5px;
}

.file-name {
    display: block;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    word-break: break-all;
}

.file-size {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
}

.upload-progress-container {
    height: 6px;
    background: rgba(51, 51, 51, 0.5);
    border-radius: 3px;
    margin: 10px 0;
    overflow: hidden;
}

#upload-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent-red) 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
}

#upload-progress::after {
    content: attr(data-progress);
    position: absolute;
    right: 5px;
    top: -20px;
    font-size: 0.75rem;
    color: var(--text);
    font-weight: 600;
}

.upload-status {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 10px 0;
    min-height: 20px;
}

.file-upload-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.file-upload-btn,
.emoji-picker-btn {
    background: rgba(51, 51, 51, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.file-upload-btn:hover,
.emoji-picker-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.file-upload-btn:active,
.emoji-picker-btn:active {
    transform: translateY(0);
}


/* ========================================
   EMOJI PICKER MODAL STYLES
   ======================================== */

#emoji-picker-modal .modal-content {
    max-width: 380px;
    padding: 0;
    background: rgba(38, 38, 38, 0.95);
    backdrop-filter: blur(20px);
}

.emoji-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.emoji-picker-header h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin: 0;
}

.emoji-categories {
    display: flex;
    gap: 5px;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.emoji-category-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.emoji-category-btn:hover {
    background: rgba(139, 0, 0, 0.2);
    border-color: var(--border-color);
}

.emoji-category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.emoji-grid-container {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}

.emoji-item {
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 8px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-item:hover {
    background: rgba(139, 0, 0, 0.2);
    border-color: var(--border-color);
    transform: scale(1.1);
}


/* ========================================
   HOME PAGE EVENTS STYLES
   ======================================== */

.home-events-section {
    margin: 60px auto;
    padding: 40px 20px;
    max-width: 1200px;
    animation: fadeIn 0.5s ease-out;
}

.events-container {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(15px);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--accent-red);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.home-events-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.home-event-card {
    background: rgba(26, 26, 26, 0.8);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.home-event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary);
}

.home-event-card.upcoming::before {
    background: var(--success);
}

.home-event-card.past::before {
    background: var(--text-light);
}

.home-event-card.full::before {
    background: var(--accent-red);
}

.home-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(139, 0, 0, 0.3);
    border-color: var(--accent-red);
}

.home-event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.home-event-card-header h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin: 0;
    flex: 1;
}

.home-event-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.home-event-badge.upcoming {
    background: rgba(34, 139, 34, 0.2);
    color: var(--success);
}

.home-event-badge.past {
    background: rgba(160, 160, 160, 0.2);
    color: var(--text-light);
}

.home-event-badge.full {
    background: rgba(255, 0, 0, 0.2);
    color: var(--accent-red);
}

.home-event-details {
    margin-bottom: 15px;
}

.home-event-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.home-event-detail i {
    width: 16px;
    color: var(--accent-red);
}

.home-event-participants {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0;
    padding-top: 10px;
    border-top: 1px solid rgba(51, 51, 51, 0.3);
}

.home-event-participants span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.home-event-participants strong {
    color: var(--text);
}

.home-event-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 15px;
}

.home-event-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.home-event-btn.details {
    background: var(--primary);
    color: white;
}

.home-event-btn.details:hover {
    background: var(--accent-red);
}

.home-event-btn.join {
    background: var(--success);
    color: white;
}

.home-event-btn.join:hover {
    background: #1E7A1E;
}

.home-event-btn.leave {
    background: transparent;
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}

.home-event-btn.leave:hover {
    background: rgba(139, 0, 0, 0.1);
}

.home-event-creator {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(51, 51, 51, 0.2);
}

.home-event-creator i {
    color: var(--accent-red);
    margin-right: 5px;
}

.events-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.loading-events {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.loading-events i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--accent-red);
}

.no-events-home {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.no-events-home i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--accent-red);
    opacity: 0.5;
}

.no-events-home h3 {
    color: var(--text);
    margin-bottom: 10px;
}

.no-events-home p {
    margin-bottom: 20px;
}


/* ========================================
   ANIMATION STYLES
   ======================================== */


/* Προσθήκη animation για fade out */

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}


/* Προσθήκη animation για fade in */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive για home events */

@media (max-width: 768px) {
    .home-events-section {
        padding: 30px 15px;
        margin: 40px auto;
    }
    .events-container {
        padding: 20px;
    }
    .section-header h2 {
        font-size: 1.6rem;
    }
    .home-events-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .home-event-card {
        padding: 15px;
    }
    .events-actions {
        flex-direction: column;
    }
    .events-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .home-events-section {
        padding: 20px 10px;
    }
    .home-event-actions {
        flex-direction: column;
        gap: 8px;
    }
    .home-event-btn {
        width: 100%;
    }
}


/* ========================================
   RESPONSIVE STYLES - ΟΙ ΥΠΟΛΟΙΠΕΣ ΑΛΛΑΓΕΣ
   ======================================== */

@media (max-width: 768px) {
    body {
        touch-action: pan-y;
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        text-size-adjust: 100%;
        overflow-x: hidden;
    }
    /* Η ΚΑΤΩΤΕΡΗ ΓΡΑΜΜΗ ΕΙΝΑΙ ΓΙΑ MOBILE NAVIGATION ΚΑΙ ΕΧΕΙ ΤΡΟΠΟΠΟΙΗΘΕΙ ΠΙΟ ΠΑΝΩ */
    .hero-section {
        padding: 60px 20px 40px !important;
        min-height: auto;
        margin-top: 66px;
    }
    .hero-section h1 {
        font-size: 1.8rem !important;
        margin-bottom: 12px;
    }
    .hero-section p {
        font-size: 0.9rem;
        margin-bottom: 20px;
        padding: 0;
    }
    .hero-section #home-cta-logged-out,
    .hero-section #home-cta-logged-in {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    .hero-section #home-cta-logged-out .cta-btn,
    .hero-section #home-cta-logged-out .cta-btn-secondary,
    .hero-section #home-cta-logged-in .cta-btn,
    .hero-section #home-cta-logged-in .cta-btn-secondary {
        width: 100%;
        max-width: 280px;
        margin: 0 auto !important;
        padding: 12px 20px;
        font-size: 0.9rem;
        min-width: auto;
    }
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
        padding: 30px 20px !important;
        margin-bottom: 0;
    }
    .feature-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 20px !important;
        min-height: auto;
    }
    .feature-icon i {
        font-size: 2rem !important;
    }
    .feature-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 8px;
    }
    .feature-card p {
        font-size: 0.85rem !important;
        line-height: 1.4;
        margin: 0;
    }
    /* Social Media Responsive */
    .social-media-section {
        padding: 40px 15px;
    }
    .social-media-section h2 {
        font-size: 1.6rem;
    }
    .social-media-section>p {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    .social-icons-grid {
        gap: 15px;
    }
    .social-icon-circle {
        width: 60px;
        height: 60px;
    }
    .social-icon-circle i {
        font-size: 1.5rem;
    }
    .social-icon-label {
        font-size: 0.6rem;
    }
    /* Chat Layout */
    .chat-layout {
        flex-direction: row;
        height: calc(100vh - 66px);
        margin-top: 66px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: hidden;
    }
    #sidebar {
        width: 70px;
        min-width: 70px;
        max-width: 70px;
        height: 100%;
        overflow-y: auto;
        border-right: 1px solid var(--border-color);
        transition: all 0.3s ease;
        z-index: 2;
    }
    .sidebar-header h2,
    .room-info span,
    .invite-code-section label,
    .room-members-section h3,
    .member-info,
    .profile-info,
    .invite-code-display span {
        display: none;
    }
    .sidebar-header,
    .room-details,
    .room-members-section,
    .user-profile {
        padding: 10px;
    }
    .invite-code-display {
        justify-content: center;
        padding: 8px;
    }
    .member-item {
        justify-content: center;
        padding: 8px;
    }
    .member-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.65rem;
    }
    #sidebar.mobile-expanded {
        width: 280px;
        max-width: 280px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.7);
    }
    #sidebar.mobile-expanded .member-info,
    #sidebar.mobile-expanded .profile-info,
    #sidebar.mobile-expanded .sidebar-header h2,
    #sidebar.mobile-expanded .room-info span,
    #sidebar.mobile-expanded .invite-code-section label,
    #sidebar.mobile-expanded .invite-code-display span,
    #sidebar.mobile-expanded .room-members-section h3 {
        display: block;
    }
    #sidebar.mobile-expanded .member-info,
    #sidebar.mobile-expanded .profile-info {
        display: flex;
    }
    body:has(#chat-page.active) .sidebar-overlay {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    body:has(#chat-page.active) #sidebar.mobile-expanded+.sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }
    body:not(:has(#chat-page.active)) .sidebar-overlay {
        display: none !important;
    }
    #main-chat {
        flex: 1;
        display: flex;
        flex-direction: column;
        height: 100%;
        position: relative;
        min-width: 0;
        overflow: hidden;
    }
    #messages-container {
        flex: 1;
        padding: 15px 12px;
        height: 100% !important;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    #messages-container::after {
        content: '';
        display: block;
        height: 20px;
        flex-shrink: 0;
    }
    .message {
        max-width: 85%;
        padding: 10px 12px;
        flex-shrink: 0;
    }
    .message-header {
        margin-bottom: 4px;
    }
    .message-sender {
        font-size: 0.8rem;
    }
    .message-time {
        font-size: 0.65rem;
    }
    .message-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    .message-input-container {
        position: relative;
        padding: 10px 12px;
        background: rgba(38, 38, 38, 0.95);
        border-top: 1px solid var(--border-color);
        flex-shrink: 0;
        height: 140px;
    }
    #chat-form {
        gap: 6px;
        height: 100%;
        align-items: stretch;
    }
    .input-actions {
        flex-direction: column;
        gap: 4px;
        justify-content: flex-start;
    }
    .input-action-btn {
        padding: 6px;
        font-size: 0.9rem;
    }
    #message-input {
        min-height: 50px;
        max-height: 80px;
        flex: 1;
        font-size: 0.9rem;
        padding: 10px 14px;
    }
    .send-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        height: 44px;
        align-self: flex-end;
    }
    /* Rooms page */
    .rooms-container {
        padding: 20px 15px;
        margin-top: 66px;
    }
    .rooms-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        margin-bottom: 20px;
    }
    .rooms-actions {
        justify-content: space-between;
        gap: 8px;
    }
    .rooms-list {
        grid-template-columns: 1fr !important;
        gap: 15px;
        padding-bottom: 20px;
    }
    /* Friends page */
    .friends-list-page {
        margin-top: 66px;
        padding: 20px 15px;
    }
    .friend-card {
        padding: 12px;
        flex-direction: column;
        gap: 12px;
    }
    .friend-info {
        width: 100%;
        justify-content: flex-start;
    }
    .friend-actions {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }
    .btn-sm {
        padding: 6px 12px;
        font-size: 0.75rem;
        flex: 1;
    }
    /* Profile page */
    .profile-container {
        padding: 20px 15px;
        margin-top: 66px;
    }
    .profile-image-wrapper {
        width: 100px;
        height: 100px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stat-item {
        padding: 10px;
    }
    .stat-value {
        font-size: 1.3rem;
    }
    .profile-actions {
        flex-direction: column;
        gap: 8px;
    }
    .upload-preview {
        width: 100px;
        height: 100px;
    }
    .user-info-picture {
        width: 80px;
        height: 80px;
    }
    /* Notifications */
    .notification-container {
        top: 70px;
        right: 8px;
        left: 8px;
        max-width: calc(100% - 16px);
    }
    .notification {
        max-width: 100%;
        padding: 10px 14px;
    }
    .notification-count-badge {
        top: 6px;
        right: 25px;
        min-width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }
    /* Badges */
    .nav-badge {
        min-width: 16px;
        height: 16px;
        font-size: 0.5rem;
        top: -3px;
        right: -3px;
    }
    .friend-badge,
    .room-badge {
        top: 5px;
        right: 5px;
        min-width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }
    /* PWA Button */
    .pwa-floating-install-button {
        bottom: 15px;
        right: 15px;
        padding: 10px 14px;
        font-size: 0.8rem;
        border-radius: 40px;
    }
    .pwa-floating-install-button .install-text {
        font-size: 0.75rem;
    }
    .pwa-floating-install-button i {
        font-size: 1rem;
    }
    /* File upload preview */
    .file-preview-container {
        margin: 10px 15px;
        padding: 12px;
    }
    .file-preview-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    #preview-image {
        width: 80px;
        height: 80px;
    }
    /* Emoji picker */
    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 6px;
    }
    .emoji-item {
        padding: 6px;
        font-size: 1.3rem;
    }
    .emoji-categories {
        padding: 8px 12px;
    }
    .emoji-category-btn {
        padding: 6px 10px;
        font-size: 1.1rem;
    }
    #invite-code-container.hide-for-private {
        display: none !important;
    }
    .hero-section #home-cta-logged-out .cta-btn,
    .hero-section #home-cta-logged-out .cta-btn-secondary,
    .hero-section #home-cta-logged-in .cta-btn,
    .hero-section #home-cta-logged-in .cta-btn-secondary {
        margin-bottom: 20px !important;
    }
    .hero-section #home-cta-logged-out .cta-btn:last-child,
    .hero-section #home-cta-logged-out .cta-btn-secondary:last-child,
    .hero-section #home-cta-logged-in .cta-btn:last-child,
    .hero-section #home-cta-logged-in .cta-btn-secondary:last-child {
        margin-bottom: 0 !important;
    }
    .page.active {
        padding-bottom: 0;
    }
}

@media (max-width: 480px) {
    /* Η ΚΑΤΩΤΕΡΗ ΓΡΑΜΜΗ ΕΙΝΑΙ ΓΙΑ MOBILE NAVIGATION ΚΑΙ ΕΧΕΙ ΤΡΟΠΟΠΟΙΗΘΕΙ ΠΙΟ ΠΑΝΩ */
    .hero-section {
        padding: 50px 15px 30px !important;
    }
    .hero-section h1 {
        font-size: 1.5rem !important;
    }
    .hero-section p {
        font-size: 0.85rem;
    }
    .hero-section #home-cta-logged-out .cta-btn,
    .hero-section #home-cta-logged-out .cta-btn-secondary,
    .hero-section #home-cta-logged-in .cta-btn,
    .hero-section #home-cta-logged-in .cta-btn-secondary {
        padding: 10px 16px;
        font-size: 0.85rem;
        max-width: 220px;
    }
    .features-grid {
        padding: 25px 15px !important;
        gap: 12px;
    }
    .feature-card {
        padding: 18px 15px !important;
    }
    .feature-icon i {
        font-size: 1.8rem !important;
    }
    .feature-card h3 {
        font-size: 1rem !important;
    }
    .feature-card p {
        font-size: 0.8rem !important;
        line-height: 1.3;
    }
    /* Social Media */
    .social-icons-grid {
        gap: 12px;
    }
    .social-icon-circle {
        width: 55px;
        height: 55px;
    }
    .social-icon-circle i {
        font-size: 1.3rem;
    }
    .social-icon-label {
        display: none;
    }
    .follow-us {
        font-size: 0.8rem;
        padding: 0 10px;
    }
    /* Chat improvements */
    #sidebar {
        width: 60px;
        min-width: 60px;
        max-width: 60px;
    }
    .member-item {
        padding: 6px;
    }
    .member-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.6rem;
    }
    #sidebar.mobile-expanded {
        width: 240px;
        max-width: 240px;
    }
    .message {
        max-width: 90%;
        padding: 8px 10px;
    }
    .message-text {
        font-size: 0.85rem;
    }
    /* Rooms page */
    .rooms-list {
        grid-template-columns: 1fr !important;
    }
    .room-card {
        padding: 15px;
    }
    /* Profile page */
    .profile-image-wrapper {
        width: 80px;
        height: 80px;
    }
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }
    .stat-item {
        padding: 10px;
    }
    .upload-preview {
        width: 80px;
        height: 80px;
    }
    .user-info-picture {
        width: 60px;
        height: 60px;
    }
    .user-info-actions {
        flex-direction: column;
    }
    .user-info-actions .btn {
        width: 100%;
    }
    /* PWA Button mobile */
    .pwa-floating-install-button {
        bottom: 12px;
        right: 12px;
        padding: 8px 10px;
        font-size: 0.75rem;
    }
    .pwa-floating-install-button .install-text {
        display: none;
    }
    .pwa-floating-install-button i {
        font-size: 1.1rem;
        margin: 0;
    }
    .pwa-floating-install-button {
        width: 48px;
        height: 48px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        align-items: center;
    }
    .notification-count-badge {
        display: none;
    }
    .friend-badge,
    .room-badge {
        min-width: 14px;
        height: 14px;
        font-size: 0.5rem;
        top: 3px;
        right: 3px;
    }
    /* Emoji picker για πολύ μικρές οθόνες */
    .emoji-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .emoji-item {
        font-size: 1.2rem;
    }
    .file-upload-btn,
    .emoji-picker-btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 360px) {
    /* Η ΚΑΤΩΤΕΡΗ ΓΡΑΜΜΗ ΕΙΝΑΙ ΓΙΑ MOBILE NAVIGATION ΚΑΙ ΕΧΕΙ ΤΡΟΠΟΠΟΙΗΘΕΙ ΠΙΟ ΠΑΝΩ */
    .notification-container {
        right: 5px;
        left: 5px;
        max-width: calc(100% - 10px);
    }
    .notification {
        max-width: 100%;
        padding: 8px 12px;
    }
    /* Social Media */
    .social-icons-grid {
        gap: 10px;
    }
    .social-icon-circle {
        width: 50px;
        height: 50px;
    }
    .social-icon-circle i {
        font-size: 1.2rem;
    }
    .social-icon-label {
        display: none;
    }
}


/* Tablet responsive (landscape) */

@media (max-width: 1024px) and (orientation: landscape) {
    .pwa-floating-install-button {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    .pwa-floating-install-button i {
        font-size: 1rem;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
        padding: 40px 20px !important;
    }
    .features-grid .feature-card:nth-child(3):last-child {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }
    #sidebar {
        width: 80px;
    }
    #sidebar.mobile-expanded {
        width: 300px;
    }
}


/* Special case: Avoid overlap with notification container */

.notification-container~.pwa-floating-install-button {
    bottom: 25px;
}


/* Ensure buttons with badges have proper spacing */

.nav-btn.has-badge {
    padding-right: 30px;
}


/* Loading states */

.loading {
    opacity: 0.6;
    pointer-events: none;
}


/* Empty states styling */

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-red);
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.empty-state p {
    margin-bottom: 1.5rem;
}


/* Error states */

.error-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--accent-red);
}

.error-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-state h3 {
    margin-bottom: 0.5rem;
}


/* Success states */

.success-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--success);
}

.success-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-state h3 {
    margin-bottom: 0.5rem;
}


/* Connection status indicator */

.connection-status {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(26, 26, 26, 0.9);
    padding: 5px 10px;
    border-radius: var(--radius);
    font-size: 0.8rem;
    color: var(--text-light);
}

.connection-status.connected {
    color: var(--success);
}

.connection-status.disconnected {
    color: var(--accent-red);
}

.connection-status.connecting {
    color: var(--warning);
}

.connection-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.connection-dot.connected {
    background: var(--success);
    animation: pulse 2s infinite;
}

.connection-dot.disconnected {
    background: var(--accent-red);
}

.connection-dot.connecting {
    background: var(--warning);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}


/* Better message text wrapping */

.message-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.5;
}

#chat-page.active {
    height: calc(100vh - 66px);
    overflow: hidden;
}

#messages-container {
    scroll-behavior: smooth;
}

.message:last-of-type {
    margin-bottom: 10px;
}

@supports (-webkit-touch-callout: none) {
    body {
        min-height: -webkit-fill-available;
    }
    #chat-page.active {
        height: -webkit-fill-available;
    }
    #messages-container {
        height: -webkit-fill-available;
    }
}


/* ========================================
   FILE UPLOAD STYLES
   ======================================== */

.message-file {
    margin-top: 8px;
}

.file-preview {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(51, 51, 51, 0.3);
    padding: 10px;
    border-radius: var(--radius);
}

.file-image-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.file-image-preview:hover {
    transform: scale(1.05);
}

.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.file-name {
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}

.file-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    width: fit-content;
}

.file-download-btn:hover {
    background: var(--accent-red);
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(51, 51, 51, 0.3);
    padding: 10px;
    border-radius: var(--radius);
}

.file-item i {
    font-size: 1.5rem;
    color: var(--accent-red);
}

.file-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.file-download-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-red);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.file-download-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.message.own .file-download-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
}

.message.own .file-download-btn:hover {
    background: white;
    color: var(--accent-red);
}

.message.other .file-download-btn {
    background: var(--primary);
    color: white;
}

.message.other .file-download-btn:hover {
    background: var(--accent-red);
}

.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-preview-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.full-size-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-image-preview {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease;
}

.close-image-preview:hover {
    color: var(--accent-red);
}

.image-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}


/* 🔥 ΒΕΛΤΙΩΣΗ: Smooth fade transition μεταξύ των backgrounds */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('motorcycle-background.jpg') center/cover fixed;
    z-index: -1;
    opacity: 0;
    animation: fadeInOut 20s infinite;
    pointer-events: none;
}

@keyframes fadeInOut {
    0%,
    45% {
        opacity: 0;
    }
    50%,
    95% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* ========================================
   PREMIUM EVENTS STYLES
   ======================================== */

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.premium-event-info {
    text-align: center;
    padding: 15px;
    background: rgba(139, 0, 0, 0.1);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.premium-benefits {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: left;
}

.premium-benefits li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.premium-benefits li:last-child {
    border-bottom: none;
}

.premium-benefits li i {
    color: var(--accent-red);
    width: 20px;
}

.premium-price {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid var(--accent-red);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-red);
    display: block;
}

.price-note {
    font-size: 0.8rem;
    color: var(--text-light);
}

.secure-payment-note {
    text-align: center;
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Premium event card styling */
.event-card.premium {
    border: 2px solid #FFD700;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
}

.event-card.premium::before {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.event-card.premium .event-status {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
}

.premium-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FFD700;
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Payment success page */
.payment-success-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    text-align: center;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.payment-success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 20px;
}

/* ========================================
   HOME EVENT DELETE BUTTON STYLING
   ======================================== */

.home-event-delete-btn {
    background: rgba(255, 0, 0, 0.1) !important;
    border: 1px solid rgba(255, 0, 0, 0.3) !important;
    color: var(--accent-red) !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
    font-size: 0.75rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    min-width: 30px !important;
    min-height: 30px !important;
}

.home-event-delete-btn:hover {
    background: rgba(255, 0, 0, 0.2) !important;
    border-color: var(--accent-red) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3) !important;
}

.home-event-delete-btn i {
    font-size: 0.8rem !important;
}

.home-event-creator {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(51, 51, 51, 0.2) !important;
    margin-top: 10px !important;
}

.home-event-creator>div {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

@media (max-width: 768px) {
    .home-event-delete-btn {
        padding: 4px 8px !important;
        min-width: 26px !important;
        min-height: 26px !important;
    }
    .home-event-delete-btn i {
        font-size: 0.7rem !important;
    }
}


/* ========================================
   EVENT PHOTO STYLES
   ======================================== */

.event-photo-upload-section {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    background: rgba(26, 26, 26, 0.5);
    transition: all 0.3s ease;
}

.event-photo-upload-section:hover {
    border-color: var(--accent-red);
    background: rgba(38, 38, 38, 0.5);
}

.event-photo-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.event-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.event-photo-placeholder i {
    font-size: 2.5rem;
    color: var(--text-light);
}

.event-photo-display {
    margin-bottom: 20px;
    text-align: center;
}

.event-photo-display img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}


/* Event card with photo */

.event-card.has-photo {
    position: relative;
    overflow: hidden;
}

.event-card.has-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 0;
}

.event-card.has-photo .event-card-header,
.event-card.has-photo .event-details,
.event-card.has-photo .event-participants,
.event-card.has-photo .event-card-footer {
    position: relative;
    z-index: 1;
}


/* Home event card with photo */

.home-event-card.has-photo {
    position: relative;
    overflow: hidden;
}

.home-event-card.has-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

.home-event-card.has-photo .home-event-card-header,
.home-event-card.has-photo .home-event-details,
.home-event-card.has-photo .home-event-actions,
.home-event-card.has-photo .home-event-creator {
    position: relative;
    z-index: 1;
}


/* ========================================
   HOME EVENT PHOTO FIX - ΝΕΕΣ ΚΛΑΣΕΙΣ
   ======================================== */


/* Βελτιωμένη επικάλυψη φωτογραφίας για home events */

.home-event-card.has-photo {
    position: relative;
    overflow: hidden;
}


/* 🔥 ΑΛΛΑΓΗ: Αυτό είναι το κύριο fix - Πλήρης επικάλυψη */

.home-event-card.has-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 0.2;
    /* Διαφάνεια για καλύτερη ανάγνωση κειμένου */
    z-index: 0;
}


/* Βελτιωμένο φίλτρο για καλύτερη ανάγνωση */

.home-event-card.has-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 0;
}


/* Για να μπεί το περιεχόμενο ΜΠΡΟΣΤΑ από το background */

.home-event-card.has-photo .home-event-card-header,
.home-event-card.has-photo .home-event-details,
.home-event-card.has-photo .home-event-actions,
.home-event-card.has-photo .home-event-creator {
    position: relative;
    z-index: 1;
}


/* Βελτίωση χρωμάτων για καλύτερη ανάγνωση πάνω σε φωτογραφία */

.home-event-card.has-photo .home-event-card-header h3 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.home-event-card.has-photo .home-event-detail span {
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}


/* Βελτίωση του κουμπιού */

.home-event-card.has-photo .home-event-btn {
    background: var(--primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.home-event-card.has-photo .home-event-btn:hover {
    background: var(--accent-red);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}


/* ========================================
   ΒΕΛΤΙΩΣΗ ΓΙΑ RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .home-event-card.has-photo::before {
        opacity: 0.15;
        /* Λίγο πιο ανοιχτό για mobile */
    }
    .home-event-card.has-photo .home-event-card-header h3 {
        font-size: 1.1rem;
    }
}


/* ========================================
   FIX ΓΙΑ REGULAR EVENT CARDS ΣΤΟ ROOMS PAGE
   ======================================== */

.event-card.has-photo {
    position: relative;
    overflow: hidden;
}

.event-card.has-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 0.2;
    z-index: 0;
}

.event-card.has-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 0;
}

.event-card.has-photo .event-card-header h3 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.event-card.has-photo .event-detail span {
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.event-card.has-photo .btn-event {
    background: var(--primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: bold;
}


/* ========================================
   EVENT DETAILS MODAL FIX - ADD SCROLLBAR
   ======================================== */

#event-details-content {
    max-height: 400px;
    /* Ορίζουμε μέγιστο ύψος */
    overflow-y: auto;
    /* Ενεργοποιούμε το κάθετο σκρολάρισμα */
    padding-right: 10px;
    /* Χώρος για το scrollbar */
    margin-bottom: 20px;
}


/* Καλύτερο styling για το event details modal */

#event-details-content .event-detail-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}


/* Participants list scrolling */

.event-participants-list {
    max-height: 200px;
    overflow-y: auto;
    background: rgba(26, 26, 26, 0.5);
    border-radius: var(--radius);
    padding: 10px;
    border: 1px solid var(--border-color);
}


/* Εφαρμογή scrollbar styling */

#event-details-content::-webkit-scrollbar {
    width: 6px;
}

#event-details-content::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.3);
}

#event-details-content::-webkit-scrollbar-thumb {
    background: rgba(139, 0, 0, 0.6);
    border-radius: 3px;
}

#event-details-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 0, 0, 0.8);
}


/* Responsive adjustments */

@media (max-width: 768px) {
    #event-details-content {
        max-height: 350px;
        /* Μικρότερο ύψος για mobile */
    }
    .event-participants-list {
        max-height: 150px;
    }
}

