/* ========================================
   İFA SPOR - WHITE / LIGHT THEME
   ======================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background-color: #dc2626;
    color: white;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: #dc2626; border-radius: 3px; }

/* ========================================
   SCROLL REVEAL
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.active { opacity: 1; transform: translateX(0); }
.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.active { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ========================================
   GEOMETRIC DECORATIONS
   ======================================== */
.geo-line {
    position: absolute;
    background: linear-gradient(180deg, #dc2626, transparent);
    width: 1px;
    opacity: 0.08;
}
.geo-line-h {
    position: absolute;
    background: linear-gradient(90deg, #dc2626, transparent);
    height: 1px;
    opacity: 0.08;
}

/* (glitch removed) */

/* ========================================
   CARD STYLES - LIGHT
   ======================================== */
.card-sharp {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.card-sharp::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, #dc2626, transparent);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-sharp:hover::before { transform: scaleX(1); }
.card-sharp:hover {
    border-color: rgba(220,38,38,0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 0 0 1px rgba(220,38,38,0.08);
}

/* ========================================
   LINE ACCENT
   ======================================== */
.line-accent {
    position: relative;
    padding-left: 20px;
}
.line-accent::before {
    content: '';
    position: absolute; left: 0; top: 0;
    width: 3px; height: 100%;
    background: #dc2626;
}

/* ========================================
   HERO - FULL SCREEN
   ======================================== */
.hero-full {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}
.hero-full-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hero-full-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center calc(100% + 50px);
    animation: heroSlowZoom 25s ease-in-out alternate infinite;
}
@keyframes heroSlowZoom {
    0%   { transform: scale(1); }
    100% { transform: scale(1.08); }
}
.hero-full-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.92) 0%,
        rgba(0,0,0,0.75) 25%,
        rgba(0,0,0,0.55) 50%,
        rgba(0,0,0,0.50) 75%,
        rgba(0,0,0,0.40) 100%
    );
}
.hero-full-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    z-index: 5;
}
.hero-full-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #16a34a, #dc2626, #16a34a);
    z-index: 10;
}

/* Header scroll states */
#main-header.nav-scrolled {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    top: 0 !important;
    position: fixed !important;
}
#main-header.nav-scrolled .nav-text-primary { color: #111827 !important; }
#main-header.nav-scrolled .nav-text-secondary { color: #9ca3af !important; }
#main-header.nav-scrolled .nav-link { color: #4b5563 !important; }
#main-header.nav-scrolled .nav-link:hover { color: #111827 !important; }
#main-header.nav-scrolled .nav-mobile-btn { color: #111827 !important; border-color: #e5e7eb !important; }
#main-header.nav-scrolled .header-line { opacity: 1 !important; }

/* (match bar now in normal document flow) */

/* Page hero for subpages */
.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    filter: grayscale(60%);
}

/* ========================================
   COUNTER BOX
   ======================================== */
.counter-box { position: relative; }
.counter-box::after {
    content: '';
    position: absolute; bottom: -10px; left: 50%;
    transform: translateX(-50%);
    width: 30px; height: 2px; background: #dc2626;
    transition: width 0.4s ease;
}
.counter-box:hover::after { width: 60px; }

/* ========================================
   MATCH CARD - LIGHT
   ======================================== */
.match-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}
.match-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(220,38,38,0.03), transparent);
    opacity: 0; transition: opacity 0.3s ease;
}
.match-card:hover::before { opacity: 1; }
.match-card:hover {
    border-color: rgba(220,38,38,0.2);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-ifa {
    position: relative; overflow: hidden; z-index: 1;
}
.btn-ifa::before {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease; z-index: -1;
}
.btn-ifa:hover::before { left: 100%; }

.btn-outline-sharp {
    position: relative;
    border: 1px solid #d1d5db;
    background: transparent; overflow: hidden; z-index: 1;
}
.btn-outline-sharp::before {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 100%; height: 0;
    background: #dc2626;
    transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1); z-index: -1;
}
.btn-outline-sharp:hover::before { height: 100%; }
.btn-outline-sharp:hover { border-color: #dc2626; color: #fff; }

/* ========================================
   PLAYER CARD - LIGHT
   ======================================== */
.player-card {
    position: relative; overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.player-card .player-number {
    position: absolute; top: 10px; right: 10px;
    font-size: 4rem; font-weight: 900;
    color: rgba(0,0,0,0.03); line-height: 1;
    transition: all 0.5s ease;
}
.player-card:hover .player-number { color: rgba(220,38,38,0.1); transform: scale(1.2); }
.player-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1), 0 0 30px rgba(220,38,38,0.05);
}
.player-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, #dc2626, #16a34a);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.player-card:hover::after { transform: scaleX(1); }

/* ========================================
   NEWS CARD - LIGHT
   ======================================== */
.news-card {
    position: relative; overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.news-card .news-image { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.news-card:hover .news-image { transform: scale(1.08); }
.news-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 3px; height: 0; background: #dc2626;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1); z-index: 10;
}
.news-card:hover::before { height: 100%; }

/* ========================================
   TICKER
   ======================================== */
.ticker-wrap { overflow: hidden; white-space: nowrap; }
.ticker {
    display: inline-block;
    animation: ticker 30s linear infinite;
}
.ticker:hover { animation-play-state: paused; }
@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   PRELOADER - LIGHT
   ======================================== */
.preloader {
    position: fixed; inset: 0;
    background: #fff; z-index: 9999;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
    width: 80px; height: 80px;
    animation: pulseScale 1.2s ease-in-out infinite;
}
.preloader-bar {
    width: 200px; height: 2px;
    background: #e5e7eb; margin-top: 30px;
    overflow: hidden; position: relative;
}
.preloader-bar::after {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%; background: #dc2626;
    animation: preloaderSlide 1.5s ease-in-out infinite;
}
@keyframes preloaderSlide {
    0%   { left: -100%; }
    50%  { left: 0%; }
    100% { left: 100%; }
}
@keyframes pulseScale {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

/* ========================================
   CUSTOM CURSOR
   ======================================== */
.cursor-dot {
    position: fixed; width: 8px; height: 8px;
    background: #dc2626; border-radius: 50%;
    pointer-events: none; z-index: 10000;
    transition: transform 0.1s ease;
}
.cursor-ring {
    position: fixed; width: 40px; height: 40px;
    border: 1px solid rgba(220,38,38,0.4);
    border-radius: 50%; pointer-events: none; z-index: 10000;
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    transform: translate(-50%, -50%);
}
.cursor-ring.hover { width: 60px; height: 60px; border-color: #dc2626; }

/* ========================================
   UTILITIES
   ======================================== */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ========================================
   TILT
   ======================================== */
.tilt-card { transform-style: preserve-3d; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }

/* ========================================
   NOISE - LIGHT
   ======================================== */
.noise::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.015'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 1;
}

/* ========================================
   STRIPE BG - LIGHT
   ======================================== */
.stripe-bg {
    background-image: repeating-linear-gradient(
        -45deg, transparent, transparent 10px,
        rgba(220,38,38,0.015) 10px, rgba(220,38,38,0.015) 20px
    );
}

/* ========================================
   TEXT STROKE - LIGHT
   ======================================== */
.text-stroke {
    -webkit-text-stroke: 2px rgba(220,38,38,0.3);
    color: transparent;
}

/* ========================================
   SECTION TITLE
   ======================================== */
.section-title { position: relative; display: inline-block; }
.section-title::after {
    content: '';
    position: absolute; bottom: -8px; left: 0;
    width: 60px; height: 3px; background: #dc2626;
}

/* ========================================
   FORM - LIGHT
   ======================================== */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}
select option { background: #fff; color: #111; }

/* ========================================
   GALERİ LIGHTBOX
   ======================================== */
.gallery-item {
    padding: 0;
    text-align: inherit;
    font: inherit;
    color: inherit;
    background: none;
    appearance: none;
    -webkit-appearance: none;
}
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(6px);
}
.gallery-lightbox-panel {
    position: relative;
    z-index: 1;
    max-width: min(1100px, 96vw);
    max-height: 90vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-lightbox-figure {
    margin: 0;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gallery-lightbox-img {
    max-width: 100%;
    max-height: calc(85vh - 3rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.45);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.gallery-lightbox-caption {
    margin-top: 1rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    text-align: center;
    letter-spacing: 0.05em;
}
.gallery-lightbox-close,
.gallery-lightbox-nav {
    position: absolute;
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
    background: #dc2626;
    border-color: #dc2626;
}
.gallery-lightbox-close {
    top: -0.5rem;
    right: -0.5rem;
}
.gallery-lightbox-prev { left: -3.5rem; top: 50%; transform: translateY(-50%); }
.gallery-lightbox-next { right: -3.5rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 768px) {
    .gallery-lightbox-prev { left: 0.5rem; top: auto; bottom: -3.25rem; transform: none; }
    .gallery-lightbox-next { right: 0.5rem; top: auto; bottom: -3.25rem; transform: none; }
    .gallery-lightbox-panel { padding-bottom: 3rem; }
}

/* ========================================
   PROSE - HABER / SAYFA İÇERİĞİ
   ======================================== */
.prose-content p { margin-bottom: 1.1rem; }
.prose-content h2 { font-size: 1.6rem; font-weight: 700; margin: 2rem 0 1rem; color: #111827; font-family: 'Space Grotesk', sans-serif; }
.prose-content h3 { font-size: 1.3rem; font-weight: 700; margin: 1.6rem 0 .8rem; color: #111827; font-family: 'Space Grotesk', sans-serif; }
.prose-content h4 { font-size: 1.1rem; font-weight: 600; margin: 1.2rem 0 .6rem; color: #111827; }
.prose-content ul, .prose-content ol { margin: 0 0 1.1rem 1.4rem; }
.prose-content ul { list-style: disc; }
.prose-content ol { list-style: decimal; }
.prose-content li { margin-bottom: .4rem; }
.prose-content a { color: #dc2626; text-decoration: underline; }
.prose-content blockquote { border-left: 3px solid #dc2626; padding-left: 1rem; color: #6b7280; font-style: italic; margin: 1.2rem 0; }
.prose-content img { max-width: 100%; height: auto; margin: 1rem 0; }
.prose-content strong { font-weight: 700; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .cursor-dot, .cursor-ring { display: none !important; }
}
