@charset "UTF-8";

/* --- ANA GÖRSEL KİMLİK & HAP TASARIM --- */
html, body {
    font-family: "Quicksand", Arial, sans-serif;
    margin: 0;
    background: #f8fafc;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}
:root {
    --grad-header: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --shadow: 0 10px 30px -5px rgba(0,0,0,0.1);
    --pill-radius: 50px;
    --card-radius: 32px;
}

.material-symbols-rounded { 
    font-size: 20px; 
    display: inline-flex; 
    vertical-align: middle; 
}

header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--grad-header);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}
.hide-desktop { display: none !important; }

.logo-container { 
    display: flex; 
    gap: 15px; 
    align-items: center; 
    flex: 1; 
    min-width: 250px; 
}
.logo-icon { 
    font-size: 28px; 
    background: #fff; 
    color: #6366f1; 
    width: 54px; 
    height: 54px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: var(--pill-radius); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    flex-shrink: 0; 
}
.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
}
.site-sub {
    font-size: 12px;
    font-weight: 700;
    opacity: 0.9;
    letter-spacing: 0.5px;
    margin-top: 2px;
}
.header-stats { 
    display: flex; 
    gap: 10px; 
    align-items: center; 
    flex-wrap: wrap; 
}

/* Esnek İstatistik Barı */
#badgeStats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 15px;
    justify-content: center;
}

/* CANLI GRADYANLAR */
.tile-0 { background: linear-gradient(135deg, #FF512F 0%, #DD2476 100%); }
.tile-1 { background: linear-gradient(135deg, #4776E6 0%, #8E54E9 100%); }
.tile-2 { background: linear-gradient(135deg, #00B4DB 0%, #0083B0 100%); }
.tile-3 { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.tile-4 { background: linear-gradient(135deg, #F2994A 0%, #F2C94C 100%); }
.tile-5 { background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%); }
.tile-6 { background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%); }

.grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
@media (min-width: 1024px) { 
    .grid { grid-template-columns: repeat(4, 1fr); } 
}

.tile {
    position: relative; 
    border-radius: var(--card-radius); 
    padding: 30px 25px;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    min-height: 220px; 
    color: #fff; 
    cursor: pointer;
    box-shadow: var(--shadow); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden; 
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}
.tile:hover { 
    transform: translateY(-8px) scale(1.02); 
    box-shadow: 0 25px 45px rgba(0,0,0,0.2); 
}

.activity-card {
    background: #fff; 
    border-radius: var(--card-radius); 
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.04); 
    cursor: pointer;
    transition: all 0.3s ease; 
    border: 1px solid #e2e8f0;
    display: flex; 
    flex-direction: column; 
    position: relative;
    height: auto; 
    min-height: 350px;
}
.activity-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.20); 
    border-color: #c7d2fe; 
}

.preview-box {
    width: 100%; 
    height: 240px; 
    background: #f1f5f9; 
    position: relative; 
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.preview-iframe {
    width: 400%; 
    height: 400%; 
    border: none; 
    position: absolute; 
    top: 0; left: 0;
    transform: scale(0.25); 
    transform-origin: 0 0; 
    pointer-events: none;
    background: #fff; 
    opacity: 0; 
    transition: opacity 0.6s ease;
}
.preview-iframe.loaded { opacity: 1; }

.preview-placeholder {
    color: #cbd5e1; 
    height: 100%;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
}
.preview-placeholder .material-symbols-rounded { font-size: 64px; }

.play-overlay {
    position: absolute; 
    inset: 0; 
    background: rgba(15,23,42,0.05); 
    display: flex; 
    align-items: center; 
    justify-content: center;
    opacity: 0; 
    transition: 0.3s; 
    z-index: 5; 
    backdrop-filter: blur(2px);
}
.activity-card:hover .play-overlay { 
    opacity: 1; 
    background: rgba(15,23,42,0.2); 
}
.play-icon {
    width: 64px; 
    height: 64px; 
    background: #fff; 
    border-radius: var(--pill-radius);
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: #6366f1; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: scale(0.8); 
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.play-icon .material-symbols-rounded { 
    font-size: 32px; 
    margin-left: 4px; 
}
.activity-card:hover .play-icon { 
    transform: scale(1.1); 
}

.act-info { 
    padding: 20px; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    background: #fff; 
}
.act-title { 
    font-size: 17px; 
    font-weight: 800; 
    color: #0f172a; 
    line-height: 1.4; 
    margin-bottom: 12px; 
    display: block; 
    word-wrap: break-word; 
}
.act-meta { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    font-size: 14px; 
    color: #64748b; 
    margin-top: auto; 
}

.badge-view { 
    background: #f1f5f9; 
    padding: 6px 14px; 
    border-radius: var(--pill-radius); 
    font-weight: 700; 
    color: #475569; 
    display: flex; 
    gap: 6px; 
    align-items: center; 
    transition: 0.2s;
}
.activity-card:hover .badge-view { 
    background: #e0e7ff; 
    color: #4f46e5; 
}

.info-badge-container { 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
    align-items: flex-end; 
}
.info-badge {
    background: rgba(255, 255, 255, 0.25); 
    backdrop-filter: blur(8px);
    padding: 6px 14px; 
    border-radius: var(--pill-radius); 
    font-size: 12px; 
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.3); 
    color: #fff; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.card-title { 
    font-size: 32px; 
    font-weight: 900; 
    margin-bottom: 8px; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.15); 
    line-height: 1.2; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 10px; 
}
.card-title .material-symbols-rounded { 
    font-size: 42px; 
    opacity: 0.9; 
}
.card-sub { 
    font-size: 16px; 
    font-weight: 700; 
    opacity: 0.9; 
    background: rgba(0,0,0,0.1); 
    padding: 6px 16px; 
    border-radius: var(--pill-radius); 
    margin-top: 5px; 
}

.topbar-nav {
    display: flex; 
    gap: 12px; 
    margin-bottom: 30px; 
    align-items: center;
    overflow-x: auto; 
    padding-bottom: 10px; 
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.topbar-nav::-webkit-scrollbar { display: none; } 

.nav-btn {
    background: #fff; 
    border: 1px solid #e2e8f0; 
    padding: 10px 20px; 
    border-radius: var(--pill-radius); 
    font-weight: 800; 
    font-size: 14px; 
    cursor: pointer; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.02); 
    transition: 0.3s; 
    color: #334155; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 8px;
    flex-shrink: 0; 
}
.nav-btn:hover { 
    background: #6366f1; 
    color: #fff; 
    border-color: #6366f1; 
    transform: translateY(-2px); 
    box-shadow: 0 8px 15px rgba(99,102,241,0.2); 
}
.nav-btn:hover .material-symbols-rounded { color: #fff !important; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px 100px;
}

@keyframes popupFadeIn {
    0% { opacity: 0; transform: scale(0.95) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

#activityViewer {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.85);
    backdrop-filter: blur(12px);
    display: none;
    z-index: 1000;
    align-items: center;
    justify-content: center; 
    padding: 20px;
}
.viewer-content { 
    width: 100%; 
    max-width: 1200px; 
    height: 100%; 
    max-height: 90vh; 
    background: #fff; 
    border-radius: var(--card-radius); 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    box-shadow: 0 30px 100px rgba(0,0,0,0.6); 
    animation: popupFadeIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.viewer-header { 
    padding: 16px 24px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05); 
    z-index: 10;
}
.viewer-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.close-btn {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 8px 20px;
    border-radius: var(--pill-radius);
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.close-btn:hover {
    background: #ef4444;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

/* === Özel Başlık ve Sayfalama (Son Etkileşim & Hit) === */
.view-title {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 900;
    margin: 10px 0 30px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
    -webkit-background-clip: text;
    color: transparent; 
    display: flex; 
    align-items: center; 
    gap: 10px;
}
.pagination-container { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    align-items: center; 
    gap: 8px; 
    margin-top: 40px; 
}
.pagination-link { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    min-width: 40px; 
    height: 40px; 
    padding: 0 15px; 
    font-size: 14px; 
    font-weight: 800; 
    color: #475569; 
    background-color: #fff; 
    border: 1px solid #e2e8f0; 
    border-radius: var(--pill-radius); 
    text-decoration: none; 
    transition: all 0.2s ease; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); 
}
.pagination-link:hover { 
    background-color: #0ea5e9; 
    border-color: #0ea5e9; 
    color: #ffffff; 
    transform: translateY(-2px); 
    box-shadow: 0 8px 15px rgba(14, 165, 233, 0.2); 
}
.pagination-link.active { 
    background-color: #0ea5e9; 
    border-color: #0ea5e9; 
    color: #ffffff; 
    box-shadow: 0 8px 15px rgba(14, 165, 233, 0.3); 
}

/* --- DEV VE GENİŞ ARAMA FORMU (HERO SEARCH) --- */
.hero-search-box { 
    background: #fff; 
    padding: 45px; 
    border-radius: 32px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.05); 
    border: 1px solid #f1f5f9; 
    margin-bottom: 50px; 
    position: relative; 
    overflow: hidden; 
}
.hero-search-box::before { 
    content: ''; 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 6px; 
    background: linear-gradient(105deg, #7c3aed 0%, #6366f1 45%, #06b6d4 85%); 
}

.search-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr 1.5fr; 
    gap: 20px; 
    align-items: end;
}
.input-group-custom { 
    position: relative; 
    width: 100%; 
    display: flex; 
}
.input-group-custom .icon { 
    position: absolute; 
    left: 24px; top: 50%; 
    transform: translateY(-50%); 
    color: #94a3b8; 
    font-size: 28px; 
    pointer-events: none; 
    z-index: 2; 
}

.super-input, .super-select { 
    width: 100%; 
    background: #f8fafc; 
    border: 2px solid #e2e8f0; 
    border-radius: 20px; 
    padding: 22px 24px 22px 64px; 
    font-size: 16px; 
    font-weight: 700; 
    color: #1e293b; 
    font-family: "Quicksand", sans-serif; 
    transition: all 0.3s ease; 
    box-sizing: border-box; 
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); 
}
.super-select { 
    cursor: pointer; 
    appearance: none; 
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2394a3b8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); 
    background-repeat: no-repeat, repeat; 
    background-position: right 24px top 50%, 0 0; 
    background-size: 16px auto, 100%; 
}
.super-input:focus, .super-select:focus { 
    border-color: #7c3aed; 
    background: #fff; 
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15); 
    outline: none; 
}

.super-btn { 
    background: linear-gradient(105deg, #7c3aed 0%, #6366f1 100%); 
    color: #fff; 
    border: none; 
    border-radius: 20px; 
    padding: 0 40px; 
    font-weight: 900; 
    font-size: 18px; 
    cursor: pointer; 
    transition: 0.3s; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3); 
    margin-left: 15px; 
}
.super-btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.4); 
}
.form-label-custom { 
    font-weight: 800; 
    font-size: 15px; 
    color: #334155; 
    margin-bottom: 12px; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
}
.type-badge { 
    position: absolute; 
    top: 15px; right: 15px; 
    padding: 6px 14px; 
    border-radius: var(--pill-radius); 
    font-size: 12px; 
    font-weight: 800; 
    color: #fff; 
    z-index: 10; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    display: flex; 
    align-items: center; 
    gap: 4px; 
}

@media (max-width: 900px) {
    .search-grid { grid-template-columns: 1fr; gap: 20px; }
    .input-group-custom.merged { flex-direction: column; gap: 15px; }
    .super-btn { margin-left: 0; width: 100%; padding: 20px; }
    .hero-search-box { padding: 25px 20px; }
}

/* =========================================
   MOBİL İÇİN ESTETİK ALT ALTA KAYDIRMA (FIX) 
   ========================================= */
@media (max-width: 768px) {
    .hide-desktop { display: block !important; }
    .header-inner { 
        flex-direction: row; 
        padding: 15px 15px; 
        gap: 15px; 
        justify-content: flex-start;
        align-items: center;
    }
    
    .hamburger-btn {
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: #fff;
        padding: 8px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .hamburger-btn:active {
        transform: scale(0.92);
        background: rgba(255, 255, 255, 0.25);
    }
    .hamburger-btn .material-symbols-rounded {
        font-size: 28px;
    }
    .site-title { font-size: 20px; }

    .logo-container { 
        width: auto; 
        justify-content: flex-start;
        text-align: left;
        flex-direction: row;
        gap: 10px;
    }
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    .logo-icon .material-symbols-rounded {
        font-size: 24px;
    }
    
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        display: none !important;
        opacity: 0;
        transition: opacity 0.3s;
    }
    .menu-overlay.open {
        display: block !important;
        opacity: 1;
    }

    .header-stats { 
        position: fixed;
        top: 0;
        left: -320px;
        width: 280px;
        height: 100dvh;
        background: var(--grad-header);
        display: flex;
        flex-direction: column; 
        justify-content: flex-start;
        align-items: stretch;
        gap: 15px; 
        padding: 20px;
        z-index: 1000;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 5px 0 25px rgba(0,0,0,0.2);
    }
    .header-stats.open {
        left: 0;
    }
    
    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    .mobile-menu-title {
        font-size: 20px;
        font-weight: 800;
        color: #fff;
        margin: 0;
        letter-spacing: -0.5px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .close-menu-btn {
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fff;
        cursor: pointer;
        padding: 8px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    .close-menu-btn:active {
        transform: scale(0.9);
        background: rgba(239, 68, 68, 0.8);
        border-color: rgba(239, 68, 68, 1);
    }
    .close-menu-btn .material-symbols-rounded {
        font-size: 26px;
    }

    #badgeStats {
        font-size: 13px;
        padding: 12px 10px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .header-stats .nav-btn {
        width: 100%;
        justify-content: flex-start; 
        padding: 15px 20px;
        box-sizing: border-box;
        border-radius: 12px;
    }

    .hide-mobile { display: none !important; }
    .header-stats .hide-mobile { display: inline-block !important; }

    .grid { 
        /* MOBİLDE KESİN OLARAK 1 KOLON OLMASI İÇİN 1FR */
        grid-template-columns: 1fr; 
        gap: 16px; 
    }
    
    .topbar-nav { margin-bottom: 20px; }
    #activityViewer { padding: 0; align-items: flex-end; }
    .viewer-content { 
        width: 100%; 
        height: calc(100dvh - 20px); 
        max-height: 100dvh; 
        border-radius: 20px 20px 0 0; 
        display: flex; 
        flex-direction: column; 
        animation: popupFadeInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }
    @keyframes popupFadeInUp {
        0% { opacity: 0; transform: translateY(100%); }
        100% { opacity: 1; transform: translateY(0); }
    }
    .viewer-header { padding: 12px 15px; }
    .viewer-header h3 { font-size: 16px; }
    .close-btn { padding: 6px 14px; font-size: 13px; }
    .card-title { font-size: 28px; }
}
