.etkinlikler-wrapper {
    width: 100%;
    max-width: var(--layout-max-width, 1200px);
    margin: 0 auto;
    font-family: var(--font-main, 'Outfit', sans-serif);
}

/* Card Container */

.etkinlik-card:hover {
    border-color: rgba(var(--primary, 230, 25, 31), 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Left: Image */

/* Right: Content */

/* Top Row: Sponsor & Badge */

/* Header */
.etkinlik-head {
    text-transform: uppercase;
}

/* Countdown */

/* Bottom Row (Katılım & Buton) */
.etkinlik-bottom-row {
    justify-content: space-between;
}

.etkinlik-katilim {
    font-weight: 600;
}

.etkinlik-actions {
    display: flex;
    justify-content: flex-end;
}

/* Aktif Durum Katıl Butonu için Ekstra Stil (isteğe bağlı vurgulu) */
.etkinlik-card.active-event .btn-katil {
    background: rgba(var(--primary), 0.1);
    color: var(--brand-red, #f59e0b);
    border: 1px solid rgba(var(--primary), 0.3);
}

.etkinlik-card.active-event .btn-katil:hover {
    background: var(--brand-red, #f59e0b);
    color: var(--text-light);
    border-color: var(--brand-red, #f59e0b);
    box-shadow: 0 4px 12px rgba(var(--primary), 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .etkinlikler-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .etkinlikler-grid {
        gap: 10px;
    }

    .etkinlik-card {
        flex-direction: row;
        padding: 10px;
        gap: 12px;
    }

    .etkinlik-img-wrap {
        width: 120px;
        height: 120px;
        border-radius: 6px;
    }

    .etkinlik-content {
        width: auto;
        padding: 0;
        justify-content: space-between;
    }

    .etkinlik-top-row {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        margin-bottom: 6px;
        gap: 6px;
    }

    .etkinlik-sponsor {
        height: 16px;
    }

    .etkinlik-odul-badge {
        font-size: 10px;
        padding: 2px 6px;
    }

    .etkinlik-head {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .etkinlik-countdown {
        gap: 4px;
        margin-bottom: 8px;
    }

    .etkinlik-katilim {
        font-size: 10px;
    }
}

.etk-tabs {
    flex-wrap: wrap;
    width: fit-content;
}

.etk-tab.active .tab-count {
    color: var(--text-light);
}

.etk-item-wrapper {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 600px) {
    .etk-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .etk-tabs::-webkit-scrollbar {
        display: none;
    }

    .etk-tab {
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 12px;
        flex-shrink: 0;
    }
}


/*  ===== etkinlik_bilet_ref katmanı (eski etkinlik_bilet_ref.css) buraya katlandı =====  */
.etk-tabs {
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0 0 14px;
    border-radius: 0;
    background: none;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    scrollbar-width: none;
}

.etk-tabs::-webkit-scrollbar {
    display: none;
}

.etk-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: auto;
    padding: 10px 14px;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease;
}

.etk-tab:hover {
    color: rgba(255, 255, 255, 0.75);
    background: none;
}

.etk-tab.active {
    color: rgb(var(--primary-text, var(--primary)));
    background: none;
    box-shadow: none;
}

.etk-tab.active::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: rgb(var(--primary));
}

.etk-tab .tab-count {
    min-width: 0;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font-size: 11px;
    font-weight: 700;
}

.etk-tab.active .tab-count {
    background: rgba(var(--primary), 0.14);
}
.etkinlikler-grid {
    flex-direction: column;
}
.etkinlik-card {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 0;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(var(--stroke-rgb, 140, 200, 255), 0.1);
    border-radius: 12px;
    background: var(--card-bg, var(--surface-800));
    box-shadow: none;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
    .etkinlik-card:hover {
        transform: translateY(-2px);
        border-color: rgba(255, 255, 255, 0.14);
        box-shadow: none;
    }
}

.etkinlik-card.cat-bitmis {
    opacity: 0.65;
    border-color: rgba(var(--stroke-rgb, 140, 200, 255), 0.1) !important;
}

.etkinlik-card .overlay-finished {
    display: none;
}
.etkinlik-img-wrap {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    margin: 12px;
    border-radius: 10px;
}
.etkinlik-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px 16px 8px;
}

.etkinlik-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
}

.etkinlik-sponsor {
    width: auto;
    object-fit: contain;
}

.etkinlik-odul-badge {
    flex-shrink: 0;
    padding: 3px 10px;
    border: 0;
    border-radius: 6px;
    background: rgba(var(--primary), 0.1);
    color: rgb(var(--primary-text, var(--primary)));
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.etkinlik-head {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    line-height: 1.3;
}
.etkinlik-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}
.etkinlik-bottom-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
}

.etkinlik-katilim {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
}

.etkinlik-actions {
    margin: 0;
}
.etkinlik-actions .text-muted-small {
    display: inline-flex;
    padding: 10px 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 700;
    box-shadow: none;
    text-decoration: none;
}
@media (max-width: 768px) {
    .etkinlik-img-wrap {
        width: 120px;
        height: 120px;
        margin: 10px;
    }

    .etkinlik-content {
        gap: 6px;
        padding: 10px 12px 10px 0;
    }

    .etkinlik-head {
        font-size: 13px;
        line-height: 1.25;
    }

    .etkinlik-sponsor {
        height: 18px;
    }

    .etkinlik-odul-badge {
        padding: 2px 6px;
        font-size: 10.5px;
    }

    .etkinlik-countdown {
        gap: 4px;
    }

    .etkinlik-bottom-row {
        gap: 6px;
    }

    .etk-tab {
        padding: 8px 12px;
        font-size: 13px;
    }
}

.etk-tab,
.etk-tab.active {
    border: 0;
    outline-offset: -2px;
}
.lfb .etk-tabs {
    display: inline-flex;
    padding: 4px;
    margin: 0;
    gap: 4px;
    border: 1px solid rgba(var(--stroke-rgb, 140, 200, 255), 0.1);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(var(--surface-700-rgb, 30, 58, 115), 0.5), rgba(var(--surface-rgb, 17, 35, 74), 0.4));
    overflow-x: auto;
}

.lfb .etk-tab {
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

.lfb .etk-tab::after {
    display: none;
}

.lfb .etk-tab.active {
    color: var(--text-on-accent, #fff);
    background: linear-gradient(180deg, rgb(var(--primary)), color-mix(in srgb, rgb(var(--primary)) 75%, #000));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), 0 8px 18px -10px rgba(var(--primary), 0.9);
}

.lfb .etk-tab.active .tab-count {
    background: rgba(0, 0, 0, 0.22);
}
.etkinlikler-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.etkinlikler-grid .page-empty-state,
.etkinlikler-grid #etk-empty-filtered {
    grid-column: 1 / -1;
}
.etkinlik-img-wrap {
    position: static !important;
}

.etkinlik-img-wrap > .etkinlik-img {
    position: static;
}

.etkinlik-img-wrap {
    overflow: visible;
    background: none;
    box-shadow: none;
}

.etkinlik-sponsor {
    height: 24px;
    max-width: 120px;
}

.etkinlik-head {
    font-size: 15px;
}

.etkinlik-actions .text-muted-small {
    height: 44px;
    align-items: center;
    padding: 0 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: #f2f2f2;
    font-weight: 700;
}

@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
    .etkinlik-card:hover .btn-katil {
        background: linear-gradient(180deg, color-mix(in srgb, rgb(var(--primary)) 78%, #fff), color-mix(in srgb, rgb(var(--primary)) 90%, #000));
        border-color: transparent;
        color: var(--text-on-accent, #fff);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 18px -10px rgba(var(--primary), 0.85);
    }
}

@media (max-width: 1100px) {
    .etkinlikler-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .etkinlik-actions .text-muted-small {
        height: 38px;
        padding: 0 16px;
        font-size: 13px;
    }
}
.etkinlik-top-row {
    padding-right: 58px;
}

@media (max-width: 768px) {
    .etkinlik-top-row {
        padding-right: 50px;
    }
}
.etkinlik-img-wrap .market-badge {
    top: 6px;
    left: 6px;
    right: auto;
}
.etkinlik-card[hidden] {
    display: none !important;
}
.etkinlik-card.is-unavailable {
    opacity: 0.78;
}