/* --- GENEL AYARLAR --- */
body {
    margin: 0;
    padding: 0;
    background: #000;
    color: white;
    font-family: 'Segoe UI', Roboto, Helvetica, sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* HEADER */
header {
    height: 60px;
    flex-shrink: 0;
    background: rgba(20, 20, 20, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: #e74c3c;
}

.nav-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-btn:hover {
    color: white;
}

/* MAIN ALANI */
main {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* HOME SCREEN TASARIMI */
.hero-container {
    text-align: center;
}

.hero-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hero-desc {
    color: #888;
    margin-bottom: 30px;
    font-size: 1rem;
}

.action-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 120px;
    text-decoration: none;
    color: white;
    display: block;
    transition: transform 0.2s, background 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.card i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.card.red i {
    color: #e74c3c;
}

.card.blue i {
    color: #3498db;
}

/* LIVE SCREEN TASARIMI */
#video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

video.broadcaster {
    transform: scaleX(-1);
}

.ui-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    padding: 20px;
    box-sizing: border-box;
}

#chat-box {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    pointer-events: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%);
    mask-image: linear-gradient(to bottom, transparent, black 10%);
}

.msg {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 8px;
    margin-bottom: 5px;
    width: fit-content;
    font-size: 0.9rem;
}

.msg span {
    color: #f1c40f;
    font-weight: bold;
    margin-right: 5px;
}

.controls {
    display: flex;
    gap: 10px;
    pointer-events: auto;
    width: 100%;
}

input {
    flex: 1;
    padding: 10px;
    border-radius: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    outline: none;
}

.send-btn {
    background: #e74c3c;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
}

#unmuteBtn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
    padding: 5px 15px;
    border-radius: 15px;
    cursor: pointer;
    display: none;
}

.live-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
    background: #e74c3c;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* FOOTER */
footer {
    height: 50px;
    flex-shrink: 0;
    background: #111;
    border-top: 1px solid #222;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    font-size: 0.8rem;
    color: #666;
    z-index: 100;
}

footer a {
    color: #666;
    font-size: 1.2rem;
    transition: color 0.3s;
}

footer a:hover,
footer a.active {
    color: #e74c3c;
}

/* --- LOGIN/SIGNUP TASARIMLARI --- */

/* Header'daki Butonlar */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-welcome {
    font-size: 0.9rem;
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-btn-text {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 15px;
    border-radius: 15px;
    transition: all 0.3s;
}

.nav-btn-text:hover {
    background: white;
    color: black;
}

/* Form Kutuları */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.auth-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    width: 300px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.auth-box h2 {
    margin-bottom: 20px;
    color: white;
}

.input-group-auth {
    position: relative;
    margin-bottom: 15px;
}

.input-group-auth i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.input-group-auth input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    box-sizing: border-box;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    border-radius: 25px;
    border: none;
    background: #3498db;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
    transition: background 0.3s;
}

.auth-btn.red {
    background: #e74c3c;
}

.auth-btn:hover {
    opacity: 0.9;
}

.auth-footer {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #aaa;
}

.auth-footer a {
    color: #f1c40f;
    text-decoration: none;
}

.error-msg {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.success-msg {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    border: 1px solid rgba(46, 204, 113, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: left;
}

/* --- DASHBOARD (GİRİŞ YAPMIŞ) --- */
.user-greeting {
    font-size: 2rem;
    margin-bottom: 5px;
    font-weight: 300;
}

.user-greeting .highlight {
    color: #e74c3c;
    font-weight: bold;
}

.action-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}

/* Kartların yeni tasarımı */
.card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    padding: 30px;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    width: 140px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.3);
}

.card.red .icon-circle {
    color: #e74c3c;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.3);
}

.card.blue .icon-circle {
    color: #3498db;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
}

.card-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.card-sub {
    font-size: 0.8rem;
    color: #888;
}

/* --- LANDING PAGE (MİSAFİR) --- */
.landing-container {
    text-align: center;
    max-width: 600px;
    padding: 20px;
    animation: fadeIn 1s ease;
}

.landing-title {
    font-size: 3.5rem;
    margin: 0;
    letter-spacing: 2px;
}

.landing-title span {
    color: #e74c3c;
}

.landing-slogan {
    font-size: 1.5rem;
    color: #ddd;
    margin: 10px 0 30px 0;
    font-weight: 300;
}

.landing-desc {
    color: #888;
    line-height: 1.6;
    margin-bottom: 40px;
}

.landing-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary {
    background: #e74c3c;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: white;
    background: white;
    color: black;
}

/* Animasyon */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-icons i {
    position: absolute;
    color: rgba(255, 255, 255, 0.03);
    font-size: 8rem;
    z-index: -1;
}

.floating-icons i:nth-child(1) {
    top: 20%;
    left: 10%;
    transform: rotate(-20deg);
}

.floating-icons i:nth-child(2) {
    bottom: 10%;
    right: 10%;
    transform: rotate(15deg);
    font-size: 6rem;
}

.floating-icons i:nth-child(3) {
    top: 10%;
    right: 20%;
    font-size: 4rem;
    color: rgba(231, 76, 60, 0.1);
}