/* Public Rooms Specific Styles */

.room-card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.room-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.03),
            transparent);
    transition: 0.5s;
}

.room-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5),
        0 0 20px -5px rgba(16, 185, 129, 0.1);
    background: rgba(15, 23, 42, 0.6);
}

.room-card:hover::before {
    left: 100%;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-waiting {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-ongoing {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.category-tag {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.65rem;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Skeleton Loading Animation */
.skeleton-card {
    background: linear-gradient(90deg, #0f172a 25%, #1e293b 50%, #0f172a 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Mobile Specific Improvements */
@media (max-width: 640px) {
    .max-w-6xl {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 1rem;
    }

    header {
        margin-bottom: 1rem !important;
        padding: 0.75rem 1rem !important;
    }

    h1 {
        font-size: 1.5rem !important;
        line-height: 1.2;
    }

    .room-card {
        padding: 1.25rem !important;
    }

    .status-badge {
        padding: 0.15rem 0.5rem;
        font-size: 0.6rem;
    }

    .category-tag {
        font-size: 0.6rem;
        padding: 0.1rem 0.4rem;
    }

    #rooms-grid {
        gap: 1rem !important;
    }

    .grid {
        gap: 0.75rem !important;
    }

    /* Fix filter controls on mobile */
    .max-w-2xl {
        margin-bottom: 1.5rem !important;
    }

    #search-input {
        font-size: 1rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        height: 52px;
        border-radius: 1.25rem;
    }

    .icon-\[mdi--magnify\] {
        left: 1.25rem !important;
    }


    #login-warning {
        padding: 0.75rem;
        font-size: 0.7rem;
        line-height: 1.4;
        margin-bottom: 1rem !important;
    }

    #empty-state:not(.hidden) {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0.7rem 0.1rem !important;
        width: 100%;
        margin-top: auto;
        margin-bottom: auto;
    }

    #empty-state .w-20.h-20 {
        width: 5rem !important;
        height: 5rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Ensure icons and text are vertically aligned */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-1\.5 {
    gap: 0.375rem;
}

/* Glassmorphism adjustment for better contrast */
.room-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}