/* TOONHUB hero — izole katman (tema CSS çakışmasını önle) */
.toonhub-hero {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background-color: var(--toonhub-bg, #f4845f);
    transition: background-color 650ms cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    isolation: isolate;
    z-index: 1;
}

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

.toonhub-hero__viewport {
    position: relative;
    width: 100%;
    height: clamp(600px, 82vh, 780px);
    min-height: 400px;
    max-height: 780px;
    overflow: hidden;
}

.toonhub-hero__grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    background-repeat: repeat;
}

.toonhub-hero__ghost {
    position: absolute;
    inset-inline: 0;
    top: 18%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    user-select: none;
    z-index: 2;
    font-family: 'Anton', sans-serif;
    font-size: var(--toonhub-ghost-fs, clamp(90px, 28vw, 380px));
    font-weight: 900;
    color: #fff;
    opacity: 1;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
}

.toonhub-hero__brand {
    position: absolute;
    top: 1.5rem;
    left: 1rem;
    z-index: 60;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.9;
    letter-spacing: 0.18em;
}

@media (min-width: 640px) {
    .toonhub-hero__brand {
        left: 2rem;
    }
}

.toonhub-hero__carousel {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.toonhub-hero__item {
    position: absolute;
    aspect-ratio: 0.6 / 1;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 650ms cubic-bezier(0.4, 0, 0.2, 1),
        filter 650ms cubic-bezier(0.4, 0, 0.2, 1),
        opacity 650ms cubic-bezier(0.4, 0, 0.2, 1),
        left 650ms cubic-bezier(0.4, 0, 0.2, 1),
        height 650ms cubic-bezier(0.4, 0, 0.2, 1),
        bottom 650ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, filter, opacity;
}

.toonhub-hero__item img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    border: none;
    border-radius: 0;
}

.toonhub-hero__item[data-role="center"] {
    opacity: 1;
    z-index: 20;
    filter: none;
    height: 88%;
    bottom: 0;
    transform: translateX(-50%) scale(1.45);
}

@media (max-height: 820px) {
    .toonhub-hero__ghost {
        top: 12%;
        --toonhub-ghost-fs-max: 260px;
    }

    .toonhub-hero__item[data-role="center"] {
        height: 82%;
        transform: translateX(-50%) scale(1.28);
    }
}

.toonhub-hero__item[data-role="left"],
.toonhub-hero__item[data-role="right"] {
    opacity: 0.85;
    z-index: 10;
    filter: blur(2px);
    height: 28%;
    bottom: 12%;
    transform: translateX(-50%) scale(1);
}

.toonhub-hero__item[data-role="left"] {
    left: 30%;
}

.toonhub-hero__item[data-role="right"] {
    left: 70%;
}

.toonhub-hero__item[data-role="back"] {
    opacity: 1;
    z-index: 5;
    filter: blur(4px);
    height: 22%;
    bottom: 12%;
    transform: translateX(-50%) scale(1);
    left: 50%;
}

@media (max-width: 639px) {
    .toonhub-hero__item[data-role="center"] {
        height: 60%;
        bottom: 22%;
        transform: translateX(-50%) scale(1.25);
    }
    .toonhub-hero__item[data-role="left"],
    .toonhub-hero__item[data-role="right"] {
        height: 16%;
        bottom: 32%;
    }
    .toonhub-hero__item[data-role="left"] {
        left: 20%;
    }
    .toonhub-hero__item[data-role="right"] {
        left: 80%;
    }
    .toonhub-hero__item[data-role="back"] {
        height: 13%;
        bottom: 32%;
    }
}

.toonhub-hero__footer-left {
    position: absolute;
    bottom: 1.5rem;
    left: 1rem;
    z-index: 60;
    max-width: 320px;
    color: #fff;
    border-left: 4px solid var(--toonhub-panel, rgba(255, 255, 255, 0.35));
    padding-left: 0.75rem;
}

@media (min-width: 640px) {
    .toonhub-hero__footer-left {
        bottom: 5rem;
        left: 6rem;
    }
}

.toonhub-hero__tagline {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    opacity: 0.95;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

@media (min-width: 640px) {
    .toonhub-hero__tagline {
        font-size: 1.375rem;
        margin-bottom: 0.75rem;
    }
}

.toonhub-hero__desc {
    display: none;
    font-size: 0.875rem;
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Dark theme — yalnızca tipografi; arka plan slayt renklerinden gelir */
.toonhub-hero[data-theme="dark"] .toonhub-hero__desc {
    display: block;
    color: #d1d5db;
    opacity: 1;
}

.toonhub-hero[data-theme="dark"] .toonhub-hero__tagline {
    color: #ffffff;
}

.toonhub-hero[data-theme="dark"] .toonhub-hero__nav-btn {
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.toonhub-hero[data-theme="dark"] .toonhub-hero__discover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

@media (min-width: 640px) {
    .toonhub-hero__desc {
        display: block;
        margin-bottom: 1.25rem;
    }
}

.toonhub-hero__nav {
    display: flex;
    gap: 0.75rem;
}

.toonhub-hero__nav-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 150ms, background-color 150ms;
    padding: 0;
}

@media (min-width: 640px) {
    .toonhub-hero__nav-btn {
        width: 4rem;
        height: 4rem;
    }
}

.toonhub-hero__nav-btn:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.12);
}

.toonhub-hero__discover {
    position: absolute;
    bottom: 1.5rem;
    right: 1rem;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Anton', sans-serif;
    font-size: clamp(20px, 4vw, 56px);
    font-weight: 400;
    color: #fff;
    opacity: 0.95;
    letter-spacing: -0.02em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 200ms;
}

.toonhub-hero__discover:hover {
    opacity: 1;
    color: #fff;
}

@media (min-width: 640px) {
    .toonhub-hero__discover {
        bottom: 5rem;
        right: 2.5rem;
    }
}

.toonhub-hero__discover svg {
    width: 1.25rem;
    height: 1.25rem;
}

@media (min-width: 640px) {
    .toonhub-hero__discover svg {
        width: 2rem;
        height: 2rem;
    }
}
