/* ==========================================================================
   UniPano - Dijital Kampüs Panosu & TV Kiosk Stilleri
   Modüler, Duyarlı (Responsive - 1024x768, 1080p, 4K) & Kırpışmasız Tasarım
   ========================================================================== */

:root {
    --primary-color: #1e3a8a;
    --primary-light: #3b82f6;
    --accent-color: #f59e0b;
    --bg-main: #f8fafc;
    --bg-stage: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #cbd5e1;

    --header-height: clamp(68px, 8.5vh, 84px);
    --footer-height: clamp(58px, 7.5vh, 74px);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    user-select: none;
    -webkit-user-select: none;
}

.kiosk-wrapper {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* ==========================================================================
   1. ÜST BAŞLIK & MODÜL BANDI (HEADER)
   Minimalist İki Kutuplu Tasarım (Sol: Kurum Kimliği, Sağ: Saat/Tarih/Hava)
   ========================================================================== */

.kiosk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    min-height: var(--header-height);
    max-height: var(--header-height);
    padding: 0 clamp(16px, 2.5vw, 36px);
    background: #ffffff;
    border-bottom: 2px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    z-index: 50;
    box-sizing: border-box;
}

/* Sol Alan: Kurum ve Kampüs Bilgisi */
.header-left {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 20px);
    overflow: hidden;
    min-width: 0;
}

.header-logo {
    height: clamp(48px, 6.5vh, 68px);
    max-height: 68px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.institution-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.institution-name {
    font-size: clamp(0.95rem, 1.4vw, 1.35rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.campus-name {
    font-size: clamp(0.72rem, 1.05vw, 0.95rem);
    font-weight: 600;
    color: #64748b;
    line-height: 1.25;
    margin-top: 2px;
}

/* Sağ Alan: Saat/Tarih ve Özel Hava Durumu Widget'ı */
.header-right {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 20px);
    flex-shrink: 0;
}

/* Canlı Dijital Saat ve Tarih Modülü */
.clock-module {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    border-right: 2px solid #e2e8f0;
    padding-right: clamp(10px, 1.5vw, 18px);
}

.clock-time {
    font-family: 'JetBrains Mono', 'SF Mono', 'Roboto Mono', Menlo, monospace;
    font-size: clamp(1.15rem, 1.7vw, 1.6rem);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.clock-date {
    font-size: clamp(0.62rem, 0.8vw, 0.74rem);
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
}

/* Özel Yerel Hava Durumu Modülü (SVG Tabanlı & Zarif Kart) */
.weather-module {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 10px);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: clamp(4px, 0.7vh, 7px) clamp(8px, 1.1vw, 14px);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.weather-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-svg {
    width: clamp(28px, 3.2vw, 36px);
    height: clamp(28px, 3.2vw, 36px);
    display: block;
}

.weather-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.weather-temp-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.weather-temp {
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.weather-city {
    font-size: clamp(0.6rem, 0.75vw, 0.7rem);
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.weather-condition {
    font-size: clamp(0.6rem, 0.75vw, 0.72rem);
    font-weight: 500;
    color: #475569;
    line-height: 1.2;
    white-space: nowrap;
}

/* ==========================================================================
   2. ORTA SAHNE & CAROUSEL (STAGE)
   Tam Yükseklik Oranlaması & Kırpışmasız Geçişler
   ========================================================================== */

.kiosk-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: calc(100vh - var(--header-height) - var(--footer-height));
    min-height: 0;
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

.kiosk-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.kiosk-carousel .carousel-inner {
    width: 100%;
    height: 100%;
}

.kiosk-carousel .carousel-item {
    width: 100%;
    height: 100%;
    background-color: #0f172a;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    overflow: hidden;
}

.kiosk-carousel .carousel-item.active,
.kiosk-carousel .carousel-item-next.carousel-item-start,
.kiosk-carousel .carousel-item-prev.carousel-item-end {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    z-index: 1;
}

.kiosk-carousel .carousel-item.active.carousel-item-start,
.kiosk-carousel .carousel-item.active.carousel-item-end {
    opacity: 0;
    z-index: 0;
}

.kiosk-carousel .carousel-item-next,
.kiosk-carousel .carousel-item-prev {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Arka Plan Ambiyans Efekti (Görsel taşması olmadan ekranı zarifçe doldurur) */
.slide-ambient-bg {
    position: absolute;
    inset: -30px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(35px) brightness(0.35) saturate(1.25);
    transform: scale(1.1);
    pointer-events: none;
    z-index: 1;
}

/* Afiş Görseli Boyutlandırma: Her türlü en-boy oranında (3.3:1, 16:9, 4:3) SIFIR KIRPMA */
.slide-image-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(6px, 1.2vh, 16px);
    box-sizing: border-box;
}

.slide-image-wrapper.full-width {
    padding: 0;
}

.slide-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain !important;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.slide-image.full-width {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    border-radius: 0;
    box-shadow: none;
}

/* ==========================================================================
   YouTube Video Afişi Boyutlandırma: Otomatik 16:9 Oranı & SIFIR Taşma / Bozulma
   ========================================================================== */
.slide-video-container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(6px, 1.2vh, 16px);
    box-sizing: border-box;
}

.slide-video-container.full-width {
    padding: 0;
}

.slide-video-stage {
    position: relative;
    width: 100%;
    height: 100%;
    /* Otomatik en-boy oranı (Aspect-Ratio 16:9): Ekran çözünürlüğü ne olursa olsun (4:3, 16:9, 21:9) taşma yapmaz */
    max-width: min(calc((100vh - var(--header-height) - var(--footer-height) - 32px) * (16 / 9)), 100%);
    max-height: min(calc(100vw * (9 / 16)), calc(100vh - var(--header-height) - var(--footer-height) - 32px));
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    background: #000000;
}

.slide-video-stage.full-width {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    box-shadow: none;
}

.slide-video-stage iframe,
.slide-video-stage .youtube-player-frame {
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
}

.slide-ambient-video {
    background: radial-gradient(circle at center, #1e3a8a 0%, #0f172a 100%);
}

/* Video Kontrol Şeridi */
.video-overlay-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: clamp(10px, 1.4vh, 16px) clamp(12px, 1.8vw, 20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0) 100%);
    z-index: 25;
    pointer-events: auto;
}

.video-overlay-left,
.video-overlay-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    padding: clamp(5px, 0.8vh, 8px) clamp(11px, 1.3vw, 15px);
    border-radius: 8px;
    font-size: clamp(0.72rem, 0.9vw, 0.84rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-overlay-btn .btn-icon {
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.video-skip-btn:hover .btn-icon {
    transform: translateX(3px);
}

.video-overlay-btn:hover {
    background: rgba(37, 99, 235, 0.85);
    border-color: #3b82f6;
    color: #ffffff;
    transform: translateY(-1px);
}

.video-sound-btn.is-muted {
    background: rgba(220, 38, 38, 0.85);
    border-color: rgba(239, 68, 68, 0.7);
    animation: soundPulse 1.8s infinite;
}

@keyframes soundPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.video-progress-line-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 25;
}

.video-progress-line {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #2563eb);
    width: 0%;
    transition: width 0.25s linear;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}

/* ==========================================================================
   Afiş Başlık & Bilgi Kartı (Broadcast Lower-Third Caption Ribbon)
   Sol alt köşede, afiş görselini örtmeyen zarif cam şerit tasarımı
   ========================================================================== */
.slide-caption-card {
    position: absolute;
    bottom: clamp(22px, 3.2vh, 38px);
    left: clamp(20px, 2.5vw, 40px);
    max-width: min(75vw, 540px);
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 4px solid #38bdf8;
    border-radius: 12px;
    padding: clamp(8px, 1.2vh, 12px) clamp(14px, 1.6vw, 20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    z-index: 20;
    pointer-events: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 3px;
    box-sizing: border-box;
    animation: captionSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes captionSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-caption-title {
    font-size: clamp(0.95rem, 1.3vw, 1.25rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
    line-height: 1.25;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slide-caption-title-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
    flex-shrink: 0;
}

.slide-caption-content {
    font-size: clamp(0.78rem, 0.95vw, 0.9rem);
    font-weight: 500;
    color: #cbd5e1;
    line-height: 1.35;
    margin: 0;
    opacity: 0.92;
}

/* ==========================================================================
   Afiş Sayacı ve Konum Belirteci (Slide Counter Badge & Mini Indicator Pills)
   ========================================================================== */
.slide-counter-badge {
    position: absolute;
    top: clamp(14px, 2vh, 24px);
    right: clamp(16px, 2vw, 30px);
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    padding: clamp(5px, 0.8vh, 8px) clamp(12px, 1.4vw, 18px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
    pointer-events: none;
    user-select: none;
    transition: all 0.3s ease;
}

.counter-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
}

.counter-badge-label {
    font-size: clamp(0.72rem, 0.95vw, 0.86rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
}

.counter-badge-current {
    font-family: 'JetBrains Mono', 'SF Mono', 'Roboto Mono', Menlo, monospace;
    font-size: clamp(0.95rem, 1.3vw, 1.25rem);
    font-weight: 800;
    color: #38bdf8;
    line-height: 1;
}

.counter-badge-divider {
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    font-weight: 400;
    color: #475569;
}

.counter-badge-total {
    font-family: 'JetBrains Mono', 'SF Mono', 'Roboto Mono', Menlo, monospace;
    font-size: clamp(0.88rem, 1.15vw, 1.1rem);
    font-weight: 700;
    color: #cbd5e1;
    line-height: 1;
}

.counter-badge-pills {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 4px;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.mini-pill {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-pill.active {
    width: 18px;
    background-color: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
}

/* Kiosk Carousel Alt Göstergeler (Bootstrap Carousel Indicators) */
.kiosk-stage .carousel-indicators {
    position: absolute;
    bottom: clamp(10px, 1.5vh, 18px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    z-index: 25;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    pointer-events: none;
}

.kiosk-stage .carousel-indicators [data-bs-target] {
    box-sizing: content-box;
    flex: 0 1 auto;
    width: clamp(24px, 3vw, 42px);
    height: 5px;
    padding: 0;
    margin: 0;
    text-indent: -999px;
    background-color: rgba(255, 255, 255, 0.3);
    background-clip: padding-box;
    border: none;
    border-radius: 4px;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.kiosk-stage .carousel-indicators .active {
    width: clamp(40px, 4.8vw, 68px);
    background-color: #38bdf8;
    opacity: 1;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.75);
}

/* ==========================================================================
   Afiş QR Kod Kartı (Broadcast Slide QR Callout Card)
   Kullanıcı tanımlı köşelerde konumlanan zarif tarama kartı
   ========================================================================== */
.slide-qr-card {
    position: absolute;
    z-index: 25;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: clamp(5px, 0.8vh, 8px) clamp(10px, 1.2vw, 14px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    pointer-events: none;
    user-select: none;
    animation: qrFadeIn 0.5s ease-out;
}

@keyframes qrFadeIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Konum Sınıfları (Position Classes) */
.slide-qr-card.pos-bottom-right {
    bottom: clamp(20px, 3vh, 36px);
    right: clamp(20px, 2.5vw, 40px);
}

.slide-qr-card.pos-bottom-left {
    bottom: clamp(20px, 3vh, 36px);
    left: clamp(20px, 2.5vw, 40px);
}

.slide-qr-card.pos-top-right {
    top: clamp(65px, 8.5vh, 85px);
    right: clamp(20px, 2.5vw, 40px);
}

.slide-qr-card.pos-top-left {
    top: clamp(16px, 2.2vh, 26px);
    left: clamp(20px, 2.5vw, 40px);
}

.slide-qr-card.pos-none {
    display: none !important;
}

.slide-qr-box {
    width: clamp(50px, 6vh, 66px);
    height: clamp(50px, 6vh, 66px);
    background: #ffffff;
    border-radius: 8px;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.slide-qr-box svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.slide-qr-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    white-space: nowrap;
}

.slide-qr-title {
    font-size: clamp(0.68rem, 0.85vw, 0.78rem);
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.6px;
    line-height: 1.15;
    text-transform: uppercase;
}

.slide-qr-sub {
    font-size: clamp(0.58rem, 0.72vw, 0.68rem);
    font-weight: 600;
    color: #cbd5e1;
    line-height: 1.15;
    text-transform: uppercase;
}

/* Boş Durum (Empty State) */
.empty-stage-card {
    background: #1e293b;
    border: 2px dashed #334155;
    border-radius: 16px;
    padding: clamp(30px, 5vh, 60px) clamp(30px, 5vw, 80px);
    text-align: center;
    max-width: min(90vw, 550px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.empty-icon {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 12px;
}

.empty-title {
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 8px 0;
}

.empty-desc {
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    color: #94a3b8;
    margin: 0;
}

/* ==========================================================================
   3. ALT DUYURU BANDI (BROADCAST LOWER-THIRD TICKER)
   Tam Ekran Genişliği (100vw), Yüksek Kontrast, Entegre QR Kartı
   ========================================================================== */

.kiosk-footer {
    display: flex;
    align-items: center;
    width: 100vw;
    height: var(--footer-height);
    min-height: var(--footer-height);
    max-height: var(--footer-height);
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 40%, #0f172a 100%);
    border-top: 3px solid #2563eb;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.3);
    padding: 0 clamp(10px, 1.8vw, 24px);
    z-index: 50;
    box-sizing: border-box;
    overflow: hidden;
}

/* Sol Rozet (Anchor Tag) */
.footer-badge {
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.8vw, 10px);
    background: #2563eb;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    padding: clamp(6px, 1vh, 10px) clamp(12px, 1.5vw, 18px);
    border-radius: 8px;
    font-weight: 800;
    font-size: clamp(0.75rem, 1vw, 0.95rem);
    letter-spacing: 0.5px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

.badge-pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Orta Kayan / Dönüşümlü Duyuru Alanı */
.footer-announcement-area {
    flex: 1;
    overflow: hidden;
    position: relative;
    margin: 0 clamp(10px, 1.5vw, 20px);
    height: 100%;
    display: flex;
    align-items: center;
}

.announcement-item-view {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.2vw, 14px);
    width: 100%;
    animation: slideUpFade 0.4s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.announcement-prefix-badge {
    background: rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #93c5fd;
    padding: clamp(3px, 0.6vh, 6px) clamp(8px, 1vw, 12px);
    border-radius: 6px;
    font-weight: 800;
    font-size: clamp(0.72rem, 0.95vw, 0.88rem);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.announcement-body-text {
    font-size: clamp(0.92rem, 1.35vw, 1.25rem);
    font-weight: 600;
    color: #f8fafc;
    letter-spacing: 0.2px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sağ QR Kod Kartı (Detaylar İçin Okut) */
.footer-qr-card {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 12px);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: clamp(4px, 0.6vh, 6px) clamp(8px, 1vw, 14px);
    border-radius: 8px;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

.qr-callout-text {
    display: flex;
    flex-direction: column;
    text-align: right;
    justify-content: center;
}

.qr-callout-primary {
    font-size: clamp(0.62rem, 0.8vw, 0.74rem);
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.qr-callout-secondary {
    font-size: clamp(0.52rem, 0.7vw, 0.64rem);
    color: #94a3b8;
    font-weight: 600;
    line-height: 1.2;
}

.qr-canvas-box {
    background: #ffffff;
    padding: 3px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.qr-canvas-box svg {
    width: clamp(36px, 5vh, 48px);
    height: clamp(36px, 5vh, 48px);
    display: block;
}

/* ==========================================================================
   4. ÖZEL ÇÖZÜNÜRLÜK UYARLAMALARI (1024x768 TV & 4:3 EKRANLAR)
   ========================================================================== */

@media (max-width: 1024px) {
    :root {
        --header-height: 72px;
        --footer-height: 60px;
    }

    .kiosk-header {
        padding: 0 12px;
    }

    .clock-module {
        padding-right: 10px;
    }

    .weather-module {
        padding: 4px 8px;
    }

    .footer-badge {
        padding: 6px 10px;
    }
}

@media (max-height: 768px) {
    :root {
        --header-height: 70px;
        --footer-height: 58px;
    }

    .slide-caption-card {
        padding: 8px 18px;
        bottom: 12px;
    }

    .slide-caption-title {
        font-size: 1.15rem;
    }

    .slide-caption-content {
        font-size: 0.85rem;
    }
}
