/* ===== KAMPANYALAR —  Professional UI ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: #F4F6F8;
    color: #1a1a2e;
    line-height: 1.5;
}

/* ===== MOBILE TOP BAR ===== */
.mob-topbar {
    display: none;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 300;
    border-bottom: 1px solid #e8eaed;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}
.mob-back { color: #1a1a2e; font-size: 18px; text-decoration: none; }

/* ===== PAGE WRAP ===== */
.page-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 20px 64px;
}

/* ===== HERO BANNER ===== */
.hero-banner {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    margin-bottom: 24px;
    min-height: 280px;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Full-bleed background image */
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

/* Gradient overlay — strong on RIGHT, fades to transparent on left */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to left,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.60) 35%,
        rgba(0, 0, 0, 0.15) 65%,
        transparent 100%
    );
    pointer-events: none;
}

/* Shimmer sweep — translateX ile GPU-smooth */
.hero-shimmer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}
.hero-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255,255,255,0.04) 30%,
        rgba(255,255,255,0.10) 50%,
        rgba(255,255,255,0.04) 70%,
        transparent 100%
    );
    transform: skewX(-15deg);
    animation: shimmerSweep 3s ease-in-out infinite;
    will-change: transform;
}
@keyframes shimmerSweep {
    0%   { transform: skewX(-15deg) translateX(0); }
    100% { transform: skewX(-15deg) translateX(400%); }
}

/* Text content — sol alt köşe */
.hero-content {
    position: absolute;
    bottom: 32px;
    left: 40px;
    z-index: 4;
    color: #fff;
    text-align: left;
    animation: fadeUp 0.8s cubic-bezier(.22,1,.36,1) both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 18px;
    color: #fff;
}
.pulse-dot {
    width: 7px; height: 7px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 1.8s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
    70%  { box-shadow: 0 0 0 9px rgba(74,222,128,0); }
    100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.hero-title {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 14px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-title em {
    font-style: normal;
    background: linear-gradient(90deg, #fbbf24, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 15px;
    opacity: 0.92;
    font-weight: 400;
    line-height: 1.65;
    margin-bottom: 28px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #1a3a8f;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.hero-link:hover { background: #f0f4ff; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.25); }

/* ===== FILTER PANEL ===== */
.filter-panel {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8eaed;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

/* Type checkboxes */
.filter-row--types { gap: 6px; }

.type-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 10px;
    border: 1.5px solid #e8eaed;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
}
.type-check:hover { border-color: #1a3a8f; color: #1a3a8f; }
.type-check.active { background: #1a3a8f; border-color: #1a3a8f; color: #fff; }
.type-icon { font-size: 14px; }

.filter-divider {
    height: 1px;
    background: #f0f2f5;
    margin: 16px 0;
}

/* Pill buttons */
.filter-row--pills { gap: 8px; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1.5px solid #e8eaed;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}
.pill:hover { border-color: #1a3a8f; color: #1a3a8f; }
.pill.active { background: #1a3a8f; border-color: #1a3a8f; color: #fff; }
.pill.active .pill-count { background: rgba(255,255,255,0.25); color: #fff; }

.pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #f0f2f5;
    color: #666;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.18s ease;
}

/* ===== LISTING SECTION ===== */
.listing-section { margin-top: 0; }

.listing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.listing-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a2e;
}
.listing-count {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

/* 2-column grid */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ===== CAMPAIGN CARD ===== */
.kamp-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    cursor: pointer;
    /* entrance */
    opacity: 0;
    transform: translateY(20px);
}
.kamp-card.visible {
    animation: cardIn 0.5s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes cardIn {
    to { opacity: 1; transform: translateY(0); }
}
.kamp-card:hover {
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

/* Card body (top) */
.kamp-card-body {
    padding: 22px 22px 16px;
    flex: 1;
}

.kamp-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #EEF2FF;
    color: #1a3a8f;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}
.kamp-cat-badge.orange { background: #FFF3E8; color: #e55a00; }
.kamp-cat-badge.green  { background: #ECFDF5; color: #059669; }
.kamp-cat-badge.purple { background: #F5F3FF; color: #7c3aed; }

.kamp-card-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.25;
    margin-bottom: 10px;
}

.kamp-card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.kamp-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #1a3a8f;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.15s ease;
}
.kamp-detail-link:hover { gap: 8px; }
.kamp-detail-link i { font-size: 11px; }

/* Card meta row */
.kamp-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 22px;
    border-top: 1px solid #f0f2f5;
    flex-wrap: wrap;
}
.kamp-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #888;
    font-weight: 500;
}
.kamp-meta-item i { color: #1a3a8f; font-size: 12px; }

/* Discount badge inside meta */
.kamp-discount-badge {
    margin-left: auto;
    background: linear-gradient(135deg, #ff6b00, #e55a00);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 50px;
    letter-spacing: -0.3px;
}

/* Card image (bottom) */
.kamp-card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #e8eaed;
}
.kamp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.kamp-card:hover .kamp-card-img img { transform: scale(1.05); }

/* Countdown overlay on image */
.kamp-countdown {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(0deg, rgba(10,20,50,0.85) 0%, transparent 100%);
    padding: 20px 16px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}
.kamp-countdown i { color: #fbbf24; }
.kamp-timer {
    margin-left: auto;
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    color: #fbbf24;
}

/* ===== MOBILE BOTTOM NAV ===== */
.mob-bottom-nav { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-title { font-size: 30px; }
    .hero-content { padding: 40px 40px; max-width: 460px; }
}

@media (max-width: 768px) {
    #navbar-container { display: none !important; }
    .mob-topbar { display: grid; }
    body { padding-bottom: 72px; }

    .page-wrap { padding: 16px 12px 48px; }

    .hero-banner { border-radius: 16px; min-height: 220px; }
    .hero-bg-img { object-position: 20% center; }
    .hero-overlay {
        background: linear-gradient(
            to left,
            rgba(0,0,0,0.85) 0%,
            rgba(0,0,0,0.65) 50%,
            rgba(0,0,0,0.2) 100%
        );
    }
    .hero-content { padding: 24px 20px; max-width: 100%; text-align: left; }
    .hero-title { font-size: 22px; letter-spacing: -0.5px; }
    .hero-sub { font-size: 13px; margin-bottom: 18px; }
    .hero-link { padding: 10px 22px; font-size: 13px; }

    /* Filter */
    .filter-panel { padding: 16px; border-radius: 12px; }
    .filter-row--types { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 4px; }
    .filter-row--types::-webkit-scrollbar { display: none; }
    .filter-row--pills { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 4px; }
    .filter-row--pills::-webkit-scrollbar { display: none; }
    .type-check, .pill { flex-shrink: 0; }

    /* Grid: single column */
    .listing-grid { grid-template-columns: 1fr; gap: 14px; }
    .kamp-card-title { font-size: 17px; }
    .kamp-card-img { height: 160px; }

    /* Mobile bottom nav */
    .mob-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: #fff;
        border-top: 1px solid #e8eaed;
        z-index: 300;
        padding: 8px 0 calc(10px + env(safe-area-inset-bottom));
    }
    .mob-bottom-nav a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        text-decoration: none;
        color: #999;
        font-size: 10px;
        font-weight: 500;
    }
    .mob-bottom-nav a i { font-size: 20px; }
    .mob-bottom-nav a.active { color: var(--color-primary, #ff6b00); }
}

@media (max-width: 480px) {
    .hero-title { font-size: 19px; }
    .kamp-discount-badge { display: none; }
}
