/*
========================================
GLOBAL
========================================
*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#000;
    color:#00ff88;
    font-family:'Share Tech Mono', monospace;
    overflow-x:hidden;
    min-height:100vh;
}

/*
========================================
MATRIX CANVAS
========================================
*/

#matrixCanvas{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:-1;
    opacity:0.25;
}

/*
========================================
APP CONTAINER
========================================
*/

.app-container{
    width:100%;
    max-width:1200px;
    margin:auto;
    padding:40px 20px;
    position:relative;
    z-index:10;
}

/*
========================================
HEADER
========================================
*/

.main-header{
    text-align:center;
    margin-bottom:50px;
}

.logo{
    font-size:72px;
    color:#00ff88;
    text-shadow:
        0 0 10px #00ff88,
        0 0 20px #00ff88,
        0 0 40px #00ff88;
    letter-spacing:8px;
    animation:glowPulse 2s infinite;
}

.subtitle{
    margin-top:10px;
    color:#00cc66;
    font-size:18px;
    letter-spacing:3px;
}

/*
========================================
SECTIONS
========================================
*/

.search-section,
.create-room-section,
.rooms-section{
    background:rgba(0,0,0,0.75);
    border:1px solid #00ff88;
    border-radius:16px;
    padding:25px;
    margin-bottom:30px;
    backdrop-filter:blur(4px);

    box-shadow:
        0 0 15px rgba(0,255,136,0.3),
        inset 0 0 15px rgba(0,255,136,0.15);
}

/*
========================================
HEADINGS
========================================
*/

h2{
    margin-bottom:20px;
    font-size:28px;
    color:#00ff88;
}

/*
========================================
INPUTS
========================================
*/

input,
textarea{
    width:100%;
    background:#050505;
    border:1px solid #00ff88;
    color:#00ff88;
    padding:15px;
    margin-bottom:15px;
    border-radius:10px;
    outline:none;
    font-size:16px;
    font-family:'Share Tech Mono', monospace;

    box-shadow:
        inset 0 0 10px rgba(0,255,136,0.15);
}

textarea{
    resize:none;
    height:120px;
}

/*
========================================
INPUT FOCUS
========================================
*/

input:focus,
textarea:focus{
    box-shadow:
        0 0 15px rgba(0,255,136,0.5),
        inset 0 0 10px rgba(0,255,136,0.2);
}

/*
========================================
BUTTONS
========================================
*/

button{
    background:#00ff88;
    color:#000;
    border:none;
    padding:15px 25px;
    border-radius:10px;
    cursor:pointer;
    font-weight:bold;
    font-size:16px;
    letter-spacing:2px;
    transition:0.25s;

    box-shadow:
        0 0 10px #00ff88,
        0 0 20px rgba(0,255,136,0.5);
}

button:hover{
    transform:translateY(-2px) scale(1.03);

    box-shadow:
        0 0 20px #00ff88,
        0 0 40px rgba(0,255,136,0.7);
}

/*
========================================
ROOMS LIST
========================================
*/

#roomsList{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
    gap:20px;
}

/*
========================================
ROOM CARD
========================================
*/

.room-card{
    background:rgba(0,0,0,0.8);
    border:1px solid #00ff88;
    border-radius:16px;
    padding:20px;

    transition:0.25s;

    box-shadow:
        0 0 10px rgba(0,255,136,0.2),
        inset 0 0 10px rgba(0,255,136,0.08);
}

.room-card:hover{
    transform:translateY(-4px);

    box-shadow:
        0 0 25px rgba(0,255,136,0.45),
        inset 0 0 15px rgba(0,255,136,0.15);
}

.room-title{
    font-size:24px;
    margin-bottom:10px;
    color:#00ff88;
}

.room-description{
    color:#99ffcc;
    margin-bottom:15px;
    line-height:1.5;
}

.room-users{
    margin-bottom:15px;
    color:#00cc66;
}

/*
========================================
JOIN BUTTON
========================================
*/

.join-btn{
    width:100%;
}

/*
========================================
SCROLLBAR
========================================
*/

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#000;
}

::-webkit-scrollbar-thumb{
    background:#00ff88;
    border-radius:10px;
}

::-webkit-scrollbar-thumb:hover{
    background:#00cc66;
}

/*
========================================
ANIMATIONS
========================================
*/

@keyframes glowPulse{

    0%{
        text-shadow:
            0 0 5px #00ff88,
            0 0 10px #00ff88;
    }

    50%{
        text-shadow:
            0 0 20px #00ff88,
            0 0 40px #00ff88;
    }

    100%{
        text-shadow:
            0 0 5px #00ff88,
            0 0 10px #00ff88;
    }
}

/*
========================================
RESPONSIVE
========================================
*/

@media(max-width:768px){

    .logo{
        font-size:48px;
    }

    .app-container{
        padding:20px 15px;
    }

    h2{
        font-size:22px;
    }

}

/*
========================================
FOOTER
========================================
*/

.main-footer{

    width:100%;

    text-align:center;

    padding:25px;

    color:#00cc66;

    font-size:14px;

    position:relative;

    z-index:10;
}

.main-footer a{

    color:#00ff88;

    text-decoration:none;

    transition:0.25s;
}

.main-footer a:hover{

    text-shadow:
        0 0 10px #00ff88,
        0 0 20px #00ff88;
}