/* style.css - Custom Overrides and Animations for Oniki Medya */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #fbf9f1;
}
::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1856f6;
}

/* Animations */
@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Marquee Animation */
.marquee-container {
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-content {
    /* To make infinite scroll seamless, the content width should be double, we'll handle by animating halfway */
    animation: marquee 20s linear infinite;
    width: max-content;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-content-reverse {
    animation: marquee-reverse 22s linear infinite;
    width: max-content;
}.marquee-content-reverse:hover {
    animation-play-state: paused;
}@keyframes marquee-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}/* Fade Up Intersection Observer Classes */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Sticky Header specific styles if needed */
.scrolled #navbar > div {
    background-color: rgba(255, 255, 255, 0.95);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* Remove sticky padding transition jump */
#navbar > div {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Multi-level Dropdown CSS */
.dropdown-mega {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.group:hover > .dropdown-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-submenu {
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.2s ease;
    left: 100%;
    top: -10px;
}

.submenu-item:hover > .dropdown-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* FAQ Accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* dar sütunda uzun cevaplar kesilmesin */
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* SSS: masaüstünde 2 sütun (tek sütun yazılmış SSS listeleri için; zaten grid içinde olanlara dokunmaz) */
@media (min-width: 768px) {
    .space-y-4:has(> .faq-item):not(.grid > *) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        align-items: start;
    }
    .space-y-4:has(> .faq-item):not(.grid > *) > * { margin-top: 0 !important; }
    .max-w-3xl:has(.faq-item) { max-width: 72rem; }
}

/* Ikon fontu gec yuklenirken yer ayir (CLS onlemi) */
i[class^="ph"],i[class*=" ph-"]{display:inline-block;width:1em;height:1em;line-height:1;vertical-align:-0.125em}
