/* ==========================================================================
   ETKİNLİKLER - Dikey Afiş (Poster Cards) — new2026 tasarım dili
   ========================================================================== */
.events-section {
    padding: 90px 0;
    background: #fff;
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.events-scroll-outer {
    position: relative;
}

.events-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 30px 4px 40px;
    margin: -30px -4px -40px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
}
.events-scroll-container::-webkit-scrollbar { display: none; }
.events-scroll-container.dragging { cursor: grabbing; }

.events-row {
    display: flex;
    gap: 18px;
}

/* Poster Card - Dikey Afiş */
.event-poster {
    flex-shrink: 0;
    width: 300px;
    min-width: 280px;
    max-width: 320px;
    height: 420px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-decoration: none;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.event-poster:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.event-poster::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8, 14, 26, 0.95) 0%,
        rgba(8, 14, 26, 0.6) 50%,
        rgba(8, 14, 26, 0.1) 100%
    );
    z-index: 1;
    transition: opacity 0.3s;
}

.event-poster:hover::before { opacity: 0.85; }

.event-poster-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 6px;
    color: white;
}

.event-poster-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px 20px;
    z-index: 2;
}

.event-poster-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-poster-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    line-height: 1.35;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-poster-location {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Category colors */
.badge-atletizm   { background: #7c3aed; }
.badge-yuzme      { background: #0284c7; }
.badge-futbol     { background: #16a34a; }
.badge-basketbol  { background: #ea580c; }
.badge-voleybol   { background: #be185d; }
.badge-guresme    { background: #92400e; }
.badge-genel      { background: var(--gsb-red); }

/* Scroll arrows */
.events-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: white;
    border: 1.5px solid var(--gsb-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    color: var(--gsb-dark);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s;
    font-size: 1rem;
}
.events-scroll-btn:hover { background: var(--gsb-dark); color: white; border-color: var(--gsb-dark); }
.events-scroll-btn.left { left: -22px; }
.events-scroll-btn.right { right: -22px; }

@media (max-width: 768px) {
    .events-section { padding: 60px 0; }
    .events-scroll-btn { display: none; }
    .event-poster {
        width: 240px;
        min-width: 240px;
        max-width: 240px;
        height: 340px;
    }
}
