/* ===============================
   ROOT & RESPONSIVE
================================ */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* ===============================
   BOOTSTRAP OVERRIDES
================================ */

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(0, 245, 255, 0.35);
}

/* ===============================
   BODY – DARK RPG NEON
================================ */

body {
    margin: 0;
    margin-bottom: 60px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: #e5e7eb;
    overflow-x: hidden;
    position: relative;
}

    /* ARKADA AKAN NEON RENKLER */
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -2;
        background: linear-gradient( 270deg, #a80030, #007a85, #008f55, #4a007a );
        background-size: 800% 800%;
        animation: neonFlow 22s ease infinite;
    }

    /* KARANLIK RPG KATMAN (GÖZ YORMAYI KESER) */
    body::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background: radial-gradient( circle at top, rgba(6, 10, 24, 0.88), rgba(0, 0, 0, 0.96) );
    }

/* ===============================
   NEON ANIMATION
================================ */

@keyframes neonFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ===============================
   NAVBAR
================================ */

.pt-navbar {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px;
    background: rgba(8, 12, 28, 0.75);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
    box-shadow: 0 0 25px rgba(0, 245, 255, 0.15);
}

.pt-nav-right {
    display: flex;
    gap: 12px;
}

/* ===============================
   ROOM & VIDEO
================================ */

.room-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}

/* VIDEO PANEL */
.video-wrapper {
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* IFRAME */
#player iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: none;
}
/* ===============================
   LANDING / INDEX
================================ */

.landing-container {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.landing-card {
    max-width: 520px;
    width: 100%;
    padding: 48px 40px;
    text-align: center;
    background: rgba(5, 8, 20, 0.65);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    border: 1px solid rgba(0, 245, 255, 0.18);
    box-shadow: 0 0 35px rgba(0, 245, 255, 0.18), inset 0 0 25px rgba(0, 0, 0, 0.7);
}

/* TITLE */
.landing-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 14px;
    background: linear-gradient(90deg, #00f5ff, #ff00ff);
    -webkit-background-clip: text;
    color: transparent;
}

/* SUBTITLE */
.landing-subtitle {
    font-size: 1rem;
    color: #cbd5f5;
    margin-bottom: 34px;
    line-height: 1.6;
}

/* ACTIONS */
.landing-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

/* BUTTONS */
.neon-btn {
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.25s ease;
}

    /* PRIMARY */
    .neon-btn.primary {
        color: #02030a;
        background: linear-gradient(135deg, #00f5ff, #00a3ff);
        box-shadow: 0 0 20px rgba(0, 245, 255, 0.7);
    }

        .neon-btn.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 30px rgba(0, 245, 255, 0.9);
        }

    /* SECONDARY */
    .neon-btn.secondary {
        color: #e5e7eb;
        background: rgba(15, 23, 42, 0.7);
        border: 1px solid rgba(148, 163, 184, 0.35);
    }

        .neon-btn.secondary:hover {
            background: rgba(30, 41, 59, 0.85);
        }

/* ===============================
   ROOM & VIDEO
================================ */

.room-container {
    width: 100%;
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: row; /* row yaparak yan yana diziyoruz */
    justify-content: center;
    align-items: flex-start; /* üstten hizalı */
    gap: 20px; /* video ve chat arası boşluk */
    padding: 20px;
    box-sizing: border-box;
}


.video-panel {
    flex: 1;
    max-width: 1200px;
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(0,0,0,0.55);
    border-radius: 14px;
    box-shadow: 0 0 60px rgba(0,255,255,0.15);
    overflow: hidden;
}

    .video-wrapper iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

.video-control-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.video-input {
    flex: 1;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.45);
    color: #e5e7eb;
    font-size: 0.95rem;
}

.neon-btn.primary {
    padding: 12px 18px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #00f5ff, #00a3ff);
    color: #02030a;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .neon-btn.primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 25px rgba(0,245,255,0.9);
    }

/* ===============================
   CHAT PANEL
================================ */

#chatContainer {
    width: 360px;
    height: 450px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    background: rgba(0,0,0,0.45);
    color: #e5e7eb;
    overflow: hidden;
    margin-top: 220px; /* video paneliyle aynı üst hiza */
}


/* Kullanıcı adı ve join butonu */
#joinArea {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

    #joinArea input#userInput {
        flex: 1;
        padding: 12px 14px;
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.15);
        background: rgba(0,0,0,0.45);
        color: #e5e7eb;
        font-size: 0.95rem;
        font-weight: 500;
        outline: none;
        transition: all 0.2s ease-in-out;
    }

        #joinArea input#userInput:focus {
            border-color: #00f5ff;
            box-shadow: 0 0 10px rgba(0,245,255,0.6);
            background: rgba(0,0,0,0.55);
        }

        #joinArea input#userInput::placeholder {
            color: rgba(229,231,235,0.7);
        }

    #joinArea button#joinBtn {
        padding: 12px 18px;
        border-radius: 8px;
        border: none;
        background: linear-gradient(135deg, #00f5ff, #00a3ff);
        color: #02030a;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.25s ease;
    }

        #joinArea button#joinBtn:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 25px rgba(0,245,255,0.9);
        }

/* Chat mesaj alanı */
#messagesList {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 8px;
    list-style: none;
    padding: 5px;
}

/* Kullanıcı listesi */
#userList {
    border: 1px solid rgba(255,255,255,0.2);
    padding: 5px;
    height: 80px;
    overflow-y: auto;
    margin-top: 6px;
    border-radius: 8px;
    background: rgba(0,0,0,0.35);
}

/* Chat mesaj input ve Gönder butonu */
#chatArea input#messageInput {
    flex: 1;
    padding: 0px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.45);
    color: #e5e7eb;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease-in-out;
    margin-bottom: 6px;
}

    #chatArea input#messageInput:focus {
        border-color: #00f5ff;
        box-shadow: 0 0 8px rgba(0,245,255,0.6);
        background: rgba(0,0,0,0.55);
    }

#chatArea button#sendBtn {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #00f5ff, #00a3ff);
    color: #02030a;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 2px;
}

    #chatArea button#sendBtn:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 20px rgba(0,245,255,0.9);
    }

/* Mesaj input ve butonu aynı satırda hizalamak için */
#chatArea {
    display: flex;
    flex-direction: column;
    height: 100%;
}

    #chatArea form {
        display: flex;
        gap: 6px;
    }
