@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;900&display=swap');

:root {
    --arena-black: #08080a;
    --arena-card: #121215;
    --arena-red: #e11d48;
    --arena-red-glow: rgba(225, 29, 72, 0.2);
    --arena-border: rgba(255, 255, 255, 0.06);
    --arena-text: #ffffff;
    --arena-text-muted: #66666e;
    --glass: rgba(255, 255, 255, 0.02);
}

body {
    background-color: var(--arena-black);
    color: var(--arena-text);
    font-family: 'Outfit', sans-serif;
}

/* HEADER SEARCH BOX - ISOLATED & STABLE */
.h-search-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 40px;
    max-width: 600px;
    z-index: 100;
}

.h-search-box {
    position: relative;
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 5px;
    padding: 10px 22px;
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
}

.h-search-box:focus-within {
    background: rgba(255,255,255,0.06);
    border-color: var(--arena-red);
    box-shadow: 0 0 40px rgba(225, 29, 72, 0.15);
}

.h-search-icon {
    color: #444;
    margin-right: 15px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.h-search-box:focus-within .h-search-icon { color: var(--arena-red); }

.h-main-search-input {
    background: none;
    border: none;
    color: #fff;
    width: 100%;
    font-size: 0.85rem;
    font-weight: 700;
    outline: none;
    font-family: 'Outfit', sans-serif;
}

/* AUTOCOMPLETE DROPDOWN - ULTRA PREMIUM */
.search-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 100%;
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
    display: none;
    z-index: 10000;
    box-shadow: 0 40px 80px rgba(0,0,0,0.9), 0 0 40px rgba(225, 29, 72, 0.05);
    animation: adFadeSlide 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes adFadeSlide {
    from { opacity: 0; transform: translateY(15px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.search-autocomplete-dropdown.active { display: block; }

.ad-section {
    margin-bottom: 25px;
}

.ad-label {
    font-size: 10px;
    font-weight: 950;
    color: var(--arena-red);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ad-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(225, 29, 72, 0.2), transparent);
}

.ad-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    border: 1px solid transparent;
}

.ad-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.ad-avatar {
    width: 48px;
    height: 48px;
    border-radius: 5px;
    object-fit: cover;
    background: #000;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.ad-item:hover .ad-avatar {
    border-color: var(--arena-red);
    box-shadow: 0 0 15px var(--arena-red-glow);
}

.ad-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ad-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
}

.ad-sub {
    font-size: 0.7rem;
    color: var(--arena-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--arena-red);
    font-size: 1.2rem;
    border: 1px solid transparent;
}

.ad-item:hover .ad-icon {
    background: var(--arena-red);
    color: #fff;
    box-shadow: 0 0 20px var(--arena-red-glow);
}

.ad-no-results {
    padding: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--arena-text-muted);
    font-weight: 800;
}

/* GLOBAL SEARCH CONTAINER */
.search-v2-container {
    padding-top: 130px;
    min-height: 100vh;
    background: radial-gradient(circle at top right, #1a1012, transparent 40%),
                radial-gradient(circle at bottom left, #0d0d0f, transparent 40%);
}

.search-v2-layout {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    padding: 0 50px;
}

/* SIDEBAR FILTERS - STICKY & CLEAN */
.search-v2-sidebar {
    position: sticky;
    top: 130px;
    height: fit-content;
}

.s-filter-group {
    margin-bottom: 40px;
}

.s-filter-group h3 {
    font-size: 11px;
    font-weight: 900;
    color: var(--arena-text-muted);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.s-filter-group h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--arena-border);
}

.s-filter-list {
    list-style: none;
    padding: 0;
}

.s-filter-list li {
    padding: 14px 20px;
    background: var(--glass);
    border: 1px solid transparent;
    border-radius: 5px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.s-filter-list li span {
    background: rgba(255,255,255,0.05);
    padding: 2px 10px;
    border-radius: 5px;
    font-size: 11px;
    color: var(--arena-text-muted);
}

.s-filter-list li:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--arena-border);
}

.s-filter-list li.active {
    background: var(--arena-red);
    border-color: var(--arena-red);
    box-shadow: 0 10px 30px var(--arena-red-glow);
}

.s-filter-list li.active span {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* MAIN CONTENT AREA */
.search-v2-header {
    margin-bottom: 50px;
}

.search-v2-header h1 {
    font-size: 3rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.search-v2-header p {
    color: var(--arena-text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* BLOCKS & GRIDS */
.s-block {
    margin-bottom: 70px;
}

.s-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.s-block-header h2 {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.s-block-header a {
    color: var(--arena-red);
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.3s;
}

.s-block-header a:hover { opacity: 0.7; }

/* FIGHTER CARDS - PREMIUM */
.s-fighters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.s-fighter-card {
    background: linear-gradient(145deg, var(--arena-card), #0d0d0f);
    border: 1px solid var(--arena-border);
    border-radius: 5px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.s-fighter-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 70% 30%, var(--arena-red-glow), transparent 60%);
    opacity: 0;
    transition: 0.4s;
}

.s-fighter-card:hover {
    border-color: rgba(225, 29, 72, 0.4);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.s-fighter-card:hover::before { opacity: 1; }

.sfc-photo {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    background: #000;
    padding: 5px;
    border: 1px solid var(--arena-border);
    position: relative;
    z-index: 2;
}

.sfc-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }

.sfc-info { position: relative; z-index: 2; }
.sfc-rank { font-size: 10px; font-weight: 900; color: var(--arena-red); margin-bottom: 5px; display: block; }
.sfc-info h3 { font-size: 1.1rem; font-weight: 900; margin: 0; color: #fff; line-height: 1.2; }
.sfc-sub { font-size: 12px; color: var(--arena-text-muted); font-weight: 700; margin-top: 8px; display: block; }

/* EVENT CARDS - PREMIUM CINEMATIC */
.s-horizontal-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.s-event-card {
    height: 250px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    text-decoration: none; /* Mavi linkleri öldür */
    color: #fff; /* Yazıları her zaman beyaz yap */
    border: 1px solid var(--arena-border);
    display: block;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.s-event-card:hover {
    border-color: var(--arena-red);
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 20px var(--arena-red-glow);
}

.sec-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.3) saturate(0.8);
}

.s-event-card:hover .sec-bg {
    transform: scale(1.1);
    filter: brightness(0.5) saturate(1.2);
}

.sec-content {
    position: relative;
    z-index: 5;
    padding: 35px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
}

.sec-logo { 
    font-size: 2.5rem; 
    font-weight: 900; 
    color: rgba(255,255,255,0.08); 
    position: absolute; 
    top: 20px; 
    right: 30px; 
    transition: 0.4s;
}

.s-event-card:hover .sec-logo {
    color: rgba(225, 29, 72, 0.15);
    transform: rotate(-5deg);
}

.sec-content h3 { 
    font-size: 1.4rem; 
    font-weight: 900; 
    margin: 0; 
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.sec-content span { 
    font-size: 13px; 
    color: var(--arena-red); 
    font-weight: 800; 
    margin-top: 10px; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* NEWS & VIDEO GRID */
.s-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.s-news-item {
    background: var(--arena-card);
    border: 1px solid var(--arena-border);
    border-radius: 5px;
    padding: 15px;
    display: flex;
    gap: 20px;
    text-decoration: none;
    align-items: center;
    transition: 0.3s;
}

.s-news-item:hover {
    border-color: var(--arena-red);
    transform: translateX(5px);
}

.sni-img { 
    width: 140px; 
    height: 90px; 
    border-radius: 5px; 
    overflow: hidden; 
    flex-shrink: 0;
}

.sni-img img { width: 100%; height: 100%; object-fit: cover; }

.sni-content h3 { font-size: 1rem; font-weight: 800; margin: 0; line-height: 1.4; color: #fff; }
.sni-content span { font-size: 11px; color: var(--arena-text-muted); font-weight: 700; margin-top: 10px; display: block; }

/* BUTTONS */
.s-btn-primary { 
    width: 100%; 
    background: var(--arena-red); 
    border: none; 
    padding: 16px; 
    border-radius: 5px; 
    color: #fff; 
    font-weight: 900; 
    font-size: 14px;
    cursor: pointer; 
    transition: 0.3s;
    margin-top: 10px;
}

.s-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--arena-red-glow);
}

.s-btn-outline { 
    width: 100%; 
    background: transparent; 
    border: 1px solid var(--arena-border); 
    padding: 16px; 
    border-radius: 5px; 
    color: var(--arena-text-muted); 
    font-weight: 900; 
    font-size: 12px;
    cursor: pointer; 
    transition: 0.3s;
    margin-top: 10px;
}

.s-btn-outline:hover { color: #fff; border-color: #444; }

/* NO RESULTS */
.s-no-results {
    text-align: center;
    padding: 100px 0;
}

.s-no-results i { font-size: 4rem; color: var(--arena-border); margin-bottom: 20px; }
.s-no-results h2 { font-size: 2rem; font-weight: 900; }

/* MOBILE RESPONSIVE */
@media (max-width: 1200px) {
    .s-horizontal-scroll { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .search-v2-container {
        padding-top: 90px;
    }
    .search-v2-layout {
        grid-template-columns: 1fr;
        padding: 0 16px;
        gap: 30px;
    }
    
    /* Horizontal scrollable category tab bar */
    .search-v2-sidebar {
        display: block;
        position: static;
        width: 100%;
        margin-bottom: 10px;
        z-index: 10;
    }
    .search-v2-sidebar .s-filter-group:nth-child(2),
    .search-v2-sidebar .s-btn-primary,
    .search-v2-sidebar .s-filter-group:first-child h3 {
        display: none !important;
    }
    .search-v2-sidebar .s-filter-group {
        margin-bottom: 0;
    }
    .s-filter-list {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 12px;
        margin: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .s-filter-list::-webkit-scrollbar {
        display: none;
    }
    .s-filter-list li {
        flex: 0 0 auto;
        margin-bottom: 0;
        padding: 10px 18px;
        font-size: 13px;
        border-radius: 30px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.02);
    }
    
    .search-v2-header h1 {
        font-size: 2rem;
    }
    
    /* Grids & Cards adjustments */
    .s-fighters-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .s-fighter-card {
        padding: 15px;
        gap: 15px;
    }
    .sfc-photo {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }
    .sfc-info h3 {
        font-size: 1.05rem;
    }
    
    .s-horizontal-scroll {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .s-event-card {
        height: 180px;
    }
    .sec-content {
        padding: 20px;
    }
    .sec-logo {
        font-size: 2rem;
        top: 15px;
        right: 20px;
    }
    .sec-content h3 {
        font-size: 1.1rem;
    }
    
    .s-news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .search-v2-header h1 {
        font-size: 1.6rem;
    }
    .sfc-photo {
        width: 70px;
        height: 70px;
    }
    .sfc-info h3 {
        font-size: 0.95rem;
    }
    .sfc-sub {
        font-size: 11px;
        margin-top: 4px;
    }
    .s-news-item {
        padding: 10px;
        gap: 12px;
    }
    .sni-img {
        width: 100px;
        height: 70px;
    }
    .sni-content h3 {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    .sni-content span {
        margin-top: 4px;
        font-size: 10px;
    }
}


/* ==========================================
   🏛️ DÖVÜŞ ARENA | RESPONSIVE MOBILE SEARCH
   ========================================== */
@media (max-width: 992px) {
    /* 1. Hide the search input wrapper by default on mobile so it doesn't squish */
    .h-search-wrapper {
        display: none !important;
        padding: 0 !important;
        max-width: none !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }

    /* 2. When mobile search is active, span the entire header */
    #mainNav.mobile-search-active .h-search-wrapper {
        display: flex !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px; /* Force lock mobile search bar height */
        padding: 12px 20px !important;
        background: #0a0a0c;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 2200;
        box-sizing: border-box;
    }

    /* 3. Make search box fill parent and look premium */
    #mainNav.mobile-search-active .h-search-box {
        display: flex !important;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 5px;
        padding: 0 15px !important;
        align-items: center;
        box-sizing: border-box;
    }

    #mainNav.mobile-search-active .h-main-search-input {
        flex: 1;
        font-size: 0.95rem;
        padding: 10px 0;
        background: none;
        border: none;
        color: #fff;
    }

    /* 4. Close button inside active mobile search */
    #mainNav.mobile-search-active .mobile-search-close-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: #888;
        font-size: 1.2rem;
        cursor: pointer;
        padding: 5px 10px;
        margin-left: 10px;
        outline: none;
        transition: color 0.3s;
    }
    #mainNav.mobile-search-active .mobile-search-close-btn:hover {
        color: var(--arena-red);
    }

    /* 5. Autocomplete suggestions dropdown - FULL SCREEN OVERLAY */
    #mainNav.mobile-search-active .search-autocomplete-dropdown {
        position: fixed !important;
        top: 70px !important; /* Positioned exactly below active search bar */
        left: 0 !important;
        width: 100vw !important;
        height: calc(100vh - 70px) !important;
        max-height: calc(100vh - 70px) !important;
        background: rgba(10, 10, 12, 0.99) !important;
        backdrop-filter: none !important;
        border: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 0 !important;
        padding: 25px 20px !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
        display: none;
        z-index: 2199 !important;
        box-shadow: none !important;
        -webkit-overflow-scrolling: touch;
    }

    #mainNav.mobile-search-active .search-autocomplete-dropdown.active {
        display: block !important;
    }
    
    /* Optimize suggestion items for touch screens */
    .ad-item {
        padding: 14px 10px !important;
        gap: 15px !important;
        background: rgba(255, 255, 255, 0.01);
        border: 1px solid rgba(255, 255, 255, 0.03);
        margin-bottom: 8px !important;
    }
    .ad-item:active {
        background: rgba(255, 255, 255, 0.05);
        border-color: var(--arena-red);
    }
}
