/* ── INTRO ─────────────────────────────────────────────────── */
.dsm-intro-title {
    font-size: 1.9rem;
    line-height: var(--tx-leading-snug);
    margin-bottom: 18px;
    margin-top: 8px;
}

.dsm-intro-desc {
    font-size: var(--tx-text-base);
    line-height: var(--tx-leading-relaxed);
    opacity: 0.72;
    margin-bottom: 24px;
}

/* ── HERO GÖRSEL TARAMA ANİMASYONU ─────────────────────────── */
.dsm-hero-img-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}

.dsm-hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    object-fit: cover;
}

.dsm-hero-img-wrap video.dsm-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dsm-scan-line {
    position: absolute;
    left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(var(--accent-color-rgb), 0.0) 10%,
        rgba(var(--accent-color-rgb), 0.9) 50%,
        rgba(var(--accent-color-rgb), 0.0) 90%,
        transparent 100%
    );
    box-shadow: 0 0 18px 4px rgba(var(--accent-color-rgb), 0.5);
    animation: scanDown 3s linear infinite;
    pointer-events: none;
    z-index: 3;
}

@keyframes scanDown {
    0%   { top: 0%; opacity: 0; }
    5%   { opacity: 1; }
    95%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.dsm-scan-beam {
    position: absolute;
    top: 20%; right: 28%;
    width: 38%;
    height: 55%;
    background: linear-gradient(
        135deg,
        rgba(var(--accent-color-rgb), 0.18) 0%,
        transparent 70%
    );
    clip-path: polygon(100% 20%, 100% 80%, 0% 100%, 0% 0%);
    animation: beamPulse 2.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes beamPulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1; }
}

.dsm-face-box {
    position: absolute;
    top: 10%; left: 5%;
    width: 38%; height: 72%;
    pointer-events: none;
    z-index: 4;
}

.dsm-face-corner {
    position: absolute;
    width: 18px; height: 18px;
    border-color: var(--accent-color);
    border-style: solid;
    animation: cornerPulse 2s ease-in-out infinite;
}

.dsm-face-corner--tl { top: 0; left: 0; border-width: 3px 0 0 3px; }
.dsm-face-corner--tr { top: 0; right: 0; border-width: 3px 3px 0 0; animation-delay: 0.2s; }
.dsm-face-corner--bl { bottom: 0; left: 0; border-width: 0 0 3px 3px; animation-delay: 0.4s; }
.dsm-face-corner--br { bottom: 0; right: 0; border-width: 0 3px 3px 0; animation-delay: 0.6s; }

@keyframes cornerPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(var(--accent-color-rgb), 0.6); }
    50%       { opacity: 0.4; box-shadow: none; }
}

.dsm-cam-badge {
    position: absolute;
    top: 14px; right: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(var(--accent-color-rgb), 0.4);
    color: var(--tx-white);
    font-size: var(--tx-text-xs);
    padding: 6px 12px;
    border-radius: 50px;
    z-index: 5;
}

.dsm-cam-badge i { color: var(--accent-color); }

.dsm-cam-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--tx-success);
    animation: camBlink 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes camBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

/* ── ALARM SEKSİYONLARI ────────────────────────────────────── */
.dsm-alarm-section--light { background: color-mix(in srgb, var(--default-color) 3%, transparent); }

.dsm-alarm-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: var(--tx-text-xs);
    font-weight: var(--tx-font-semibold);
    letter-spacing: var(--tx-tracking-wide);
    text-transform: uppercase;
    color: var(--accent-color);
    background: color-mix(in srgb, var(--accent-color) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-color) 22%, transparent);
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.dsm-alarm-title {
    font-size: 1.75rem;
    margin-bottom: 16px;
    line-height: var(--tx-leading-snug);
}

.dsm-alarm-desc {
    font-size: var(--tx-text-base);
    line-height: var(--tx-leading-relaxed);
    opacity: 0.72;
    margin-bottom: 0;
}

/* ── ALARM GÖRSEL SARMALAYICISI ────────────────────────────── */
.dsm-alarm-img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dsm-alarm-img {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    position: relative;
    z-index: 2;
}

.dsm-alarm-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: var(--tx-text-xs);
    font-weight: var(--tx-font-bold);
    letter-spacing: var(--tx-tracking-wide);
    padding: 6px 14px;
    border-radius: 50px;
    white-space: nowrap;
    z-index: 5;
    animation: badgePop 2s ease-in-out infinite;
}

@keyframes badgePop {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50%       { transform: translateX(-50%) scale(1.05); }
}

.dsm-alarm-badge--warn {
    background: rgba(245,158,11,0.15);
    border: 1px solid rgba(245,158,11,0.5);
    color: var(--tx-warning);
    box-shadow: 0 0 16px rgba(245,158,11,0.2);
}

.dsm-alarm-badge--danger {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.5);
    color: var(--tx-error);
    animation: badgePop 2s ease-in-out infinite, dangerBlink 1s ease-in-out infinite;
}

@keyframes dangerBlink {
    0%, 100% { box-shadow: 0 0 16px rgba(239,68,68,0.2); }
    50%       { box-shadow: 0 0 28px rgba(239,68,68,0.6); }
}

/* ── ANİMASYON — tüm alarmlar için tek tip (yawnAnim) ──────── */
.dsm-anim--yawn,
.dsm-anim--sleep,
.dsm-anim--phone,
.dsm-anim--smoke,
.dsm-anim--belt {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.dsm-animated .dsm-anim--yawn,
.dsm-animated .dsm-anim--sleep,
.dsm-animated .dsm-anim--phone,
.dsm-animated .dsm-anim--smoke,
.dsm-animated .dsm-anim--belt {
    opacity: 1;
    transform: scale(1);
    animation: yawnAnim 2s ease-in-out infinite 0.5s;
}

@keyframes yawnAnim {
    0%   { transform: scale(1);    filter: drop-shadow(0 0 0px rgba(245,158,11,0)); }
    30%  { transform: scale(1.03); filter: drop-shadow(0 0 20px rgba(245,158,11,0.5)); }
    60%  { transform: scale(1.05); filter: drop-shadow(0 0 30px rgba(245,158,11,0.8)); }
    100% { transform: scale(1);    filter: drop-shadow(0 0 0px rgba(245,158,11,0)); }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .dsm-alarm-img { max-width: 300px; }
}

@media (max-width: 767.98px) {
    .dsm-alarm-img { max-width: 260px; }
}
