﻿body {
    font-family: 'Inter', sans-serif;
}

.is-speaking {
    border-color: #dc2626 !important;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
    transform: scale(1.02);
}

#chat-messages {
    display: flex;
    flex-direction: column;
}

/* Kelime kaydırma zorlaması */
.break-words {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Cam Efekti (Glassmorphism) */
.glass-panel {
    background: rgba(24, 24, 27, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Kırmızı Glow (Işıltı) */
.red-glow {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.15);
}

.h-dvh {
    height: 100dvh;
}

/* Main panele hafif teknolojik çizgiler ekler */
#chat-room main::before {
    content: "";
    background-image: radial-gradient(circle, #ffffff05 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.3;
    pointer-events: none;
}

/* Konuşma halkası parlaması */
.avatar-ring.is-speaking {
    border-color: #dc2626 !important;
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.4), inset 0 0 15px rgba(220, 38, 38, 0.2);
    transform: scale(1.05) translateY(-5px);
}

.user-name-tag {
    max-width: 140px; /* Kart genişliğine göre ayarla */
    display: block;
}

/* Kart üzerindeki kırmızı vurgu hattı */
#remote-audios [id^="card-"]:hover {
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.5) 0%, rgba(220, 38, 38, 0.05) 100%);
}

/* Kartların yan yana dizilimi için (Container CSS) */
#remote-audios {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); /* Mobilde 2'li sıra sağlar */
    gap: 1rem;
    padding: 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    #remote-audios {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

/* Slider Thumb Düzeltmesi */
.individual-volume {
    -webkit-appearance: none;
    background: transparent;
}

    .individual-volume::-webkit-slider-runnable-track {
        width: 100%;
        height: 4px;
        background: #27272a; /* zinc-800 */
        border-radius: 10px;
    }

    .individual-volume::-webkit-slider-thumb {
        height: 12px;
        width: 12px;
        border-radius: 50%;
        background: #ef4444;
        cursor: pointer;
        -webkit-appearance: none;
        margin-top: -4px; /* Track üzerinde ortalar */
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
    }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #09090b;
}

::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #3f3f46;
    }

/* İnce ve modern scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #3f3f46; /* zinc-700 */
    border-radius: 10px;
}
