/* camera.css — SB Chat Camera Module */

#cameraModule {
    position: fixed; inset: 0; z-index: 10000;
    background: #000;
    display: flex; flex-direction: column;
    animation: camFadeIn .2s ease;
}

@keyframes camFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Header ── */
.cam-header {
    display: flex; align-items: center;
    padding: 12px 16px;
    background: rgba(0,0,0,.6);
    flex-shrink: 0;
    gap: 12px;
    position: absolute; top: 0; left: 0; right: 0;
    z-index: 2;
}
.cam-title {
    flex: 1; text-align: center;
    font-size: 16px; font-weight: 600; color: #fff;
}
.cam-btn-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
    transition: background .15s;
}
.cam-btn-icon:hover { background: rgba(255,255,255,.25); }

/* ── Viewport ── */
.cam-viewport {
    flex: 1; position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; background: #000;
}
#camVideo, #camPreview {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
#camPreview { display: none; }

/* ── Filtreler ── */
.cam-filters {
    display: flex; gap: 8px;
    justify-content: center; align-items: center;
    padding: 12px 16px;
    background: rgba(0,0,0,.7);
    flex-shrink: 0;
    overflow-x: auto;
}
.cam-filters::-webkit-scrollbar { display: none; }

.cam-filter-btn {
    display: flex; flex-direction: column;
    align-items: center; gap: 5px;
    background: none; border: 2px solid transparent;
    border-radius: 10px; cursor: pointer;
    padding: 6px 10px;
    transition: border-color .15s, background .15s;
    flex-shrink: 0;
}
.cam-filter-btn span {
    font-size: 11px; color: rgba(255,255,255,.7);
    font-weight: 500;
}
.cam-filter-btn.active {
    border-color: var(--accent);
    background: rgba(255,255,255,.08);
}
.cam-filter-btn.active span { color: #fff; }

.cam-filter-preview {
    width: 48px; height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    overflow: hidden;
}

/* Filtre önizleme renkleri */
.cam-filter-btn[onclick*="normal"]  .cam-filter-preview { filter: none; }
.cam-filter-btn[onclick*="bw"]      .cam-filter-preview { filter: grayscale(100%); }
.cam-filter-btn[onclick*="vintage"] .cam-filter-preview { filter: sepia(60%) contrast(110%) brightness(110%); }
.cam-filter-btn[onclick*="bright"]  .cam-filter-preview { filter: brightness(130%) saturate(140%) contrast(105%); }

/* ── Kontroller ── */
.cam-controls {
    display: flex; align-items: center; justify-content: center;
    padding: 20px 24px 32px;
    background: rgba(0,0,0,.7);
    gap: 32px;
    flex-shrink: 0;
}

/* Deklanşör */
.cam-shutter {
    width: 70px; height: 70px; border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 3px solid #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform .1s, background .1s;
    flex-shrink: 0;
}
.cam-shutter:active { transform: scale(.92); background: rgba(255,255,255,.3); }
.cam-shutter-inner {
    width: 52px; height: 52px; border-radius: 50%;
    background: #fff;
    transition: transform .1s;
}
.cam-shutter:active .cam-shutter-inner { transform: scale(.88); }

/* Gönder / Tekrar butonları */
.cam-btn-send, .cam-btn-ghost {
    display: none; flex-direction: column;
    align-items: center; gap: 5px;
    border: none; cursor: pointer;
    border-radius: 12px; padding: 10px 16px;
    font-size: 12px; font-weight: 600;
    transition: opacity .15s;
}
.cam-btn-send {
    background: var(--accent); color: #fff;
}
.cam-btn-ghost {
    background: rgba(255,255,255,.15); color: #fff;
}
.cam-btn-send:hover, .cam-btn-ghost:hover { opacity: .85; }
.cam-btn-send span, .cam-btn-ghost span { font-size: 12px; }