:root {
    --bg: #0a0a0c;
    --card: #151518;
    --accent: #e11d48;
    --accent-glow: rgba(225, 29, 72, 0.4);
    --text: #ffffff;
    --text-muted: #a1a1aa;
    --border: rgba(255, 255, 255, 0.05);
    --radius: 5px;
}

@font-face {
    font-family: 'UFC';
    src: url('../fonts/DovusArena-SikiKalinEgik.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* Hero Section */
.etkinlikler-hero {
    position: relative;
    padding: 160px 0 60px;
    background:
        radial-gradient(circle at 80% 20%, rgba(225, 29, 72, 0.08), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(225, 29, 72, 0.05), transparent 40%),
        linear-gradient(to bottom, #000, var(--bg));
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
    overflow: hidden;
}

.etkinlikler-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(ellipse at center, black, transparent 80%);
    pointer-events: none;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin: 0;
    line-height: 1;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 15px 0 0;
    max-width: 500px;
}

/* Filter Bar Integrated */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.tab-nav {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: 100px;
    border: 1px solid var(--border);
}

.tab-item {
    padding: 8px 25px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 100px;
    transition: 0.3s;
}

.tab-item.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 5px 15px var(--accent-glow);
}

.search-box {
    display: flex;
    align-items: center;
    background: #000;
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 4px 4px 4px 20px;
    width: 300px;
    transition: 0.3s;
}

.search-box:focus-within {
    border-color: var(--accent);
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    width: 100%;
}

.search-box button {
    background: var(--accent);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Event Grid */
.events-section {
    max-width: 1400px;
    margin: 0 auto 80px;
    padding: 0 40px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    white-space: nowrap;
}

.section-header .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
}

.poster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Poster Card */
.poster-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
    /* Slightly larger radius for poster feel */
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    height: 420px;
    /* Taller card */
}

.poster-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(225, 29, 72, 0.5);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.card-visual {
    height: 65%;
    position: relative;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.card-visual::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--card), transparent);
    z-index: 3;
}

.card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 950;
    font-size: 0.6rem;
    text-transform: uppercase;
    z-index: 10;
    letter-spacing: 1px;
}

.badge-upcoming {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 5px 15px var(--accent-glow);
}

.badge-past {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.card-fighters {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.f-photo {
    width: 50%;
    height: 100%;
    position: relative;
}

.f-photo img {
    height: 120%;
    width: auto;
    position: absolute;
    bottom: -30%;
    object-fit: contain;
    transition: 0.5s;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8));
}

.f-left img {
    left: -10%;
}

.f-right img {
    right: -10%;
    transform: scaleX(-1);
}

.poster-card:hover .f-photo img {
    transform: scale(1.05) translateY(-5px);
}

.poster-card:hover .f-right img {
    transform: scaleX(-1) scale(1.05) translateY(-5px);
}

.card-logo {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
}

.ufc-num {
    font-family: 'UFC';
    font-size: 3.5rem;
    line-height: 0.8;
    color: #fff;
    opacity: 0.8;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    letter-spacing: -1px;
}

.ufc-label {
    font-family: 'UFC';
    color: var(--accent);
    font-size: 1.4rem;
    letter-spacing: 5px;
    margin-bottom: -15px;
    opacity: 0.9;
}

.fn-logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.fn-logo-box img {
    width: 100px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
}

.ufc-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Card Info */
.card-info {
    height: 35%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.main-event-label {
    font-size: 0.6rem;
    font-weight: 900;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.event-names {
    font-size: 1.3rem;
    font-weight: 950;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-vs {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0 8px;
    font-weight: 400;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 10px;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-item {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: var(--accent);
    font-size: 0.7rem;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pg-node {
    width: 45px;
    height: 45px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 800;
    transition: 0.3s;
}

.pg-node.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 10px 20px var(--accent-glow);
}

/* Responsive */
@media (max-width: 992px) {
    .poster-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .poster-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .search-box {
        width: 100%;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .etkinlikler-hero {
        padding: 120px 0 40px;
    }
}