/* Kahramanlar sıralaması arka planı — all.css + etkinlik.css sıfırlamasını ezer */
html body.kahramanlar-page {
    background-image: url('/files/images/dominara-bg.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

body.kahramanlar-page {
    --kahraman-title-bg: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(30, 30, 30, 0.9) 100%);
    --kahraman-card-bg-fallback: rgba(26, 26, 26, 0.96);
    min-height: 100vh;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.75) 50%, rgba(0, 0, 0, 0.85) 100%);
    z-index: -1;
}

.modern-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-section {
    background: var(--kahraman-title-bg);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    margin-bottom: 3rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #f59e0b, transparent);
    opacity: 0.6;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.hero-title {
    font-family: 'HiJack', sans-serif !important;
    font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    letter-spacing: 0.02em !important;
    margin: 0 !important;
    background: linear-gradient(90deg, #eab308 0%, #fde047 50%, #ffffff 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #a3a3a3;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-section-icon {
    font-size: 3rem;
    color: #f59e0b;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

.hero-section-icon iconify-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- Formlar / etkinlik ile aynı grid + cam kart; kahraman teması (altın / kupa) --- */
.kahramanlar-grid.etkinlik-grid {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .kahramanlar-grid.etkinlik-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .kahramanlar-grid.etkinlik-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

a.etkinlik-card.kahraman-etkinlik-card {
    min-height: 0;
    border-bottom: none;
    background: var(--kahraman-title-bg) !important;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border-color: rgba(251, 191, 36, 0.22);
    transition:
        transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

a.etkinlik-card.kahraman-etkinlik-card:hover {
    transform: translateY(-6px) scale(1.025) !important;
    box-shadow:
        0 22px 44px rgba(0, 0, 0, 0.48),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 36px rgba(245, 158, 11, 0.22) !important;
    border-color: rgba(252, 211, 77, 0.42) !important;
}

a.etkinlik-card.kahraman-etkinlik-card:focus-visible {
    outline: 2px solid rgba(252, 211, 77, 0.85);
    outline-offset: 3px;
}

/* Kart gövdesi: etkinlik.css lacivert yerine başlık barı ile aynı gri ton (gif altı / kenar boşlukları) */
.etkinlik-card.kahraman-etkinlik-card .etkinlik-card-bg {
    background-color: var(--kahraman-card-bg-fallback) !important;
    /* cover yerine biraz küçük: karakter görseli kart içinde daha havadar */
    background-size: 60% auto;
    background-position: center 36%;
    background-repeat: no-repeat;
}

/* /etkinlik yönetici avatarı ile aynı boyut ve şekil (etkinlik.css .etkinlik-card-action-btn + .etkinlik-card-admin) */
.etkinlik-card.kahraman-etkinlik-card .etkinlik-card-top-actions .kahraman-discord-face.etkinlik-card-admin {
    border-color: rgba(251, 191, 36, 0.35) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.etkinlik-card.kahraman-etkinlik-card .etkinlik-card-top-actions .kahraman-rank-badge {
    min-width: 44px;
    height: 42px;
    padding: 0 12px;
    box-sizing: border-box;
    border-radius: 21px 0 0 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.95) 0%, rgba(217, 119, 6, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-right: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    cursor: inherit;
}

.etkinlik-card.kahraman-etkinlik-card .kahraman-rank-badge--top {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.98) 0%, rgba(250, 204, 21, 1) 45%, rgba(202, 138, 4, 0.98) 100%);
    border-color: rgba(255, 251, 235, 0.45);
    color: #1c1917;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.etkinlik-card.kahraman-etkinlik-card .kahraman-card-line iconify-icon {
    width: 0.75rem;
    height: 0.75rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.etkinlik-card.kahraman-etkinlik-card .kahraman-card-line--muted {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.65rem;
}

.etkinlik-card.kahraman-etkinlik-card .kahraman-card-stats {
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    margin-top: 2px;
    font-size: 0.62rem;
    color: rgba(254, 243, 199, 0.95);
}

.etkinlik-card.kahraman-etkinlik-card .kahraman-card-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.etkinlik-card.kahraman-etkinlik-card .kahraman-card-stats iconify-icon {
    width: 0.68rem;
    height: 0.68rem;
    flex-shrink: 0;
    opacity: 0.95;
    color: #fcd34d;
}

.no-heroes {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #a3a3a3;
    font-size: 1.1rem;
    max-width: 28rem;
    margin: 2rem auto 0;
    background: rgba(30, 30, 30, 0.55);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.no-heroes iconify-icon {
    display: block;
    margin-left: auto;
    margin-right: auto;
}