/* ITM Hosting — Video tanıtım (itm-hvid) v2.0.0 */

#home .itm-hvid {
    --hvid-ink: #f8fafc;
    --hvid-muted: #94a3b8;
    --hvid-line: rgba(148, 163, 184, 0.16);
    --hvid-cyan: #22d3ee;
    --hvid-blue: #38bdf8;
    --hvid-violet: #a78bfa;
    --hvid-panel: linear-gradient(155deg, rgba(12, 18, 34, 0.94) 0%, rgba(21, 29, 53, 0.92) 42%, rgba(15, 23, 42, 0.96) 100%);

    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: clamp(24px, 4vw, 40px);
    padding: clamp(56px, 7vw, 88px) clamp(16px, 4vw, 28px) clamp(56px, 7vw, 88px);
    overflow: hidden;
    background: linear-gradient(180deg, #e8eef8 0%, #f1f5f9 50%, #eef2ff 100%);
}

#home .itm-hvid__backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

#home .itm-hvid__aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    opacity: 0.55;
    animation: itmHvidAurora 14s ease-in-out infinite alternate;
}

#home .itm-hvid__aurora--1 {
    width: min(520px, 70vw);
    height: min(420px, 55vw);
    top: -12%;
    left: -8%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.35) 0%, transparent 70%);
}

#home .itm-hvid__aurora--2 {
    width: min(480px, 65vw);
    height: min(380px, 50vw);
    right: -6%;
    bottom: -10%;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.32) 0%, transparent 72%);
    animation-delay: -5s;
}

#home .itm-hvid__grid {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 100%);
}

@keyframes itmHvidAurora {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(24px, -16px) scale(1.08); }
}

#home .itm-hvid__shell {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
}

#home .itm-hvid__layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(24px, 3.5vw, 40px);
    align-items: center;
    padding: clamp(22px, 3vw, 32px);
    border-radius: 24px;
    background: var(--hvid-panel);
    border: 1px solid var(--hvid-line);
    box-shadow:
        0 32px 80px rgba(8, 12, 24, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

#home .itm-hvid__layout::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.5), rgba(167, 139, 250, 0.35), rgba(56, 189, 248, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

#home .itm-hvid__layout::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 55%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.08), transparent 68%);
    pointer-events: none;
}

#home .itm-hvid__copy {
    position: relative;
    z-index: 1;
}

#home .itm-hvid__copy-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

#home .itm-hvid__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.28);
    font-size: 0.625rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hvid-cyan) !important;
}

#home .itm-hvid__badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hvid-cyan);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.85);
    animation: itmHvidPulse 2.4s ease-in-out infinite;
}

#home .itm-hvid__duration {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.6875rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #cbd5e1 !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

@keyframes itmHvidPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(0.92); }
}

#home .itm-hvid__copy h2 {
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    font-size: clamp(1.55rem, 2.9vw, 2.15rem) !important;
    font-weight: 800 !important;
    line-height: 1.14 !important;
    letter-spacing: -0.035em !important;
    color: var(--hvid-ink) !important;
}

#home .itm-hvid__copy > p {
    margin: 0 0 24px !important;
    font-size: 0.9375rem !important;
    line-height: 1.75 !important;
    color: var(--hvid-muted) !important;
    max-width: 38ch;
}

#home .itm-hvid__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#home .itm-hvid__stat {
    flex: 1 1 120px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.2s ease, background 0.2s ease;
}

#home .itm-hvid__stat:hover {
    border-color: rgba(34, 211, 238, 0.28);
    background: rgba(34, 211, 238, 0.06);
}

#home .itm-hvid__stat strong {
    display: block;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.1 !important;
    color: var(--hvid-ink) !important;
    background: linear-gradient(90deg, #fff 0%, var(--hvid-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#home .itm-hvid__stat-label {
    display: block;
    font-size: 0.625rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b !important;
}

#home .itm-hvid__stage {
    position: relative;
    z-index: 1;
}

#home .itm-hvid__frame {
    position: relative;
    padding: 3px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.75), rgba(99, 102, 241, 0.65), rgba(34, 211, 238, 0.35));
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.38);
}

#home .itm-hvid__frame-glow {
    position: absolute;
    inset: -20%;
    z-index: -1;
    background: radial-gradient(ellipse at 50% 50%, rgba(34, 211, 238, 0.22), transparent 65%);
    pointer-events: none;
    filter: blur(8px);
}

#home .itm-hvid__frame .itm-home-video-media {
    border-radius: 17px;
    overflow: hidden;
    background: #020617;
}

#home .itm-hvid .itm-home-video-player {
    position: relative;
}

#home .itm-hvid .itm-home-video-poster {
    display: block;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    background: #020617;
    overflow: hidden;
}

#home .itm-hvid .itm-home-video-poster::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(125deg, rgba(34, 211, 238, 0.12) 0%, transparent 42%),
        linear-gradient(180deg, transparent 40%, rgba(2, 6, 23, 0.65) 100%);
    z-index: 1;
    pointer-events: none;
}

#home .itm-hvid .itm-home-video-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.35s ease;
}

#home .itm-hvid .itm-home-video-poster:hover img {
    transform: scale(1.05);
    filter: brightness(0.92);
}

#home .itm-hvid .itm-home-video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

#home .itm-hvid .itm-home-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

#home .itm-hvid .itm-home-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

#home .itm-hvid .itm-home-video-play .fa {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    padding-left: 4px;
    box-shadow:
        0 0 0 10px rgba(239, 68, 68, 0.18),
        0 18px 44px rgba(239, 68, 68, 0.42);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

#home .itm-hvid .itm-home-video-poster:hover .itm-home-video-play .fa {
    transform: scale(1.08);
    box-shadow:
        0 0 0 14px rgba(239, 68, 68, 0.14),
        0 22px 52px rgba(239, 68, 68, 0.5);
}

#home .itm-hvid .itm-home-video-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    background: rgba(2, 6, 23, 0.94);
    font-size: 0.8125rem !important;
    color: rgba(226, 232, 240, 0.82) !important;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

#home .itm-hvid .itm-home-video-yt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 600 !important;
}

#home .itm-hvid .itm-home-video-yt .fa {
    color: #ef4444 !important;
    font-size: 1.1rem;
}

@media (max-width: 960px) {
    #home .itm-hvid__layout {
        grid-template-columns: 1fr;
    }

    #home .itm-hvid__copy > p {
        max-width: none;
    }

    #home .itm-hvid__stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    #home .itm-hvid {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    #home .itm-hvid__stats {
        grid-template-columns: 1fr;
    }
}

/* Dark mode */
html.itm-dark-mode #home .itm-hvid {
    background:
        radial-gradient(ellipse 55% 45% at 12% 20%, rgba(34, 211, 238, 0.08), transparent 70%),
        radial-gradient(ellipse 50% 40% at 88% 78%, rgba(129, 140, 248, 0.06), transparent 68%),
        linear-gradient(180deg, #060b14 0%, #0a0f1a 50%, #0c1222 100%) !important;
}

html.itm-dark-mode #home .itm-hvid__grid {
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.07) 1px, transparent 1px);
}

html.itm-dark-mode #home .itm-hvid__layout {
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

html.itm-dark-mode #home .itm-hvid__stat {
    background: rgba(15, 23, 42, 0.55) !important;
    border-color: rgba(51, 65, 85, 0.6) !important;
}

html.itm-dark-mode #home .itm-hvid__stat-label {
    color: #94a3b8 !important;
}

html.itm-dark-mode #home .itm-hvid__duration {
    color: #e2e8f0 !important;
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(51, 65, 85, 0.55);
}
