/* ═══════════════════════════════════════════════════════════
   OtunLabs — Uygulama vitrini (biolink + ana sayfa)
   Veriler: Admin › Uygulamalar (includes/apps.php)
   ═══════════════════════════════════════════════════════════ */

/* Ortak simge */
.app-ico {
    --c: #6366f1;
    position: relative; flex-shrink: 0; display: grid; place-items: center; overflow: hidden;
    width: 44px; height: 44px; border-radius: 22%;
    background: linear-gradient(145deg, color-mix(in srgb, var(--c) 85%, #fff 15%), color-mix(in srgb, var(--c) 78%, #000 22%));
    color: #fff; font-size: 17px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.app-ico.has-img { background: #fff; }
.app-ico img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.app-ico b { font-weight: 700; font-size: 18px; }
.app-ico.has-img b { display: none; }

/* Google Play rozeti */
.gp-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 12px 7px 10px; border-radius: 9px;
    background: #000; border: 1px solid rgba(255, 255, 255, .22); color: #fff;
    font-size: 12px; font-weight: 600; line-height: 1.1; text-decoration: none; white-space: nowrap;
    transition: border-color .2s, transform .2s;
}
.gp-badge i { font-size: 16px; background: linear-gradient(135deg, #00d7fe 0%, #00f076 35%, #ffd500 65%, #ff3a44 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gp-badge small { display: block; font-size: 9px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: #c4c4cc; }
.gp-badge:hover { border-color: rgba(255, 255, 255, .5); transform: translateY(-1px); }

.app-rating { display: inline-flex; align-items: center; gap: 4px; color: #fbbf24; font-weight: 600; }
.app-rating i { font-size: .85em; }
.app-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(34, 197, 94, .15); }
.app-dot.beta { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .15); }
.app-dot.soon { background: #6e6e80; box-shadow: none; }

/* ── Biolink: sade liste ─────────────────────────────── */
.bl-apps { margin-bottom: 36px; }
.bl-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); }
.bl-tab {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 8px 10px; border: 0; border-radius: 9px; background: transparent;
    color: #9898a8; font: 600 13px/1 var(--font, Inter, sans-serif); cursor: pointer; transition: background .2s, color .2s;
}
.bl-tab span { font-size: 11px; color: #6a6a7a; font-weight: 600; }
.bl-tab.is-on { background: rgba(99, 102, 241, .18); color: #fff; box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .3); }
.bl-tab.is-on span { color: #c7d2fe; }
.bl-tab .fa-store { color: #a5b4fc; }

.bl-list { min-width: 0; display: flex; flex-direction: column; border-radius: 16px; background: #111119; border: 1px solid rgba(255, 255, 255, .07); overflow: hidden; }
.bl-app {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    color: #f0f0f5; text-decoration: none; transition: background .2s;
    -webkit-tap-highlight-color: transparent;
}
.bl-app + .bl-app { border-top: 1px solid rgba(255, 255, 255, .05); }
.bl-app:hover, .bl-app:active { background: rgba(255, 255, 255, .03); }
.bl-app[hidden] { display: none; }
.bl-app .app-ico { width: 42px; height: 42px; font-size: 16px; }
.bl-app-body { flex: 1; min-width: 0; }
.bl-app-name { display: block; font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-app-sub { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #8e8ea3; margin-top: 2px; white-space: nowrap; overflow: hidden; }
.bl-app-sub .sep { opacity: .5; }
.bl-app-sub .host { overflow: hidden; text-overflow: ellipsis; }
.bl-app-go { color: #5a5a6a; font-size: 12px; flex-shrink: 0; transition: transform .2s, color .2s; }
.bl-app:hover .bl-app-go { color: #c7d2fe; transform: translateX(2px); }
.bl-app-play { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 8px; font-size: 11px; font-weight: 600; color: #34d399; background: rgba(52, 211, 153, .1); }
.bl-more {
    width: 100%; margin-top: 10px; padding: 10px; border-radius: 12px; cursor: pointer;
    border: 1px dashed rgba(255, 255, 255, .1); background: transparent; color: #9898a8;
    font: 600 13px var(--font, Inter, sans-serif); transition: color .2s, border-color .2s;
}
.bl-more:hover { color: #fff; border-color: rgba(139, 92, 246, .4); }
.bl-more[hidden] { display: none; }

/* ── Ana sayfa: kart ızgarası ────────────────────────── */
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 18px; }
.agrid > * { min-width: 0; }   /* ekran görüntüsü şeridi kartı genişletmesin */
.acard {
    position: relative; display: flex; flex-direction: column; gap: 14px;
    padding: 20px; border-radius: 16px; background: var(--bg-card, #111119); border: 1px solid var(--border, rgba(255, 255, 255, .07));
    color: var(--text, #f0f0f5);
}
.acard[hidden] { display: none; }
.acard:hover { border-color: var(--border-hover, rgba(99, 102, 241, .22)); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.acard-top { display: flex; align-items: center; gap: 14px; }
.acard-top .app-ico { width: 56px; height: 56px; font-size: 22px; }
.acard-top .app-ico b { font-size: 22px; }
.acard-head { min-width: 0; flex: 1; }
.acard-head h3 { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.acard-head h3 a { color: inherit; text-decoration: none; }
.acard-head h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.acard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; font-size: .8rem; color: var(--text-muted, #6a6a7a); }
.acard-type { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; font-size: .72rem; font-weight: 600; background: rgba(255, 255, 255, .05); color: var(--text-secondary, #9898a8); }
.acard-type.android { background: rgba(52, 211, 153, .1); color: #34d399; }
.acard-type.ios { background: rgba(255, 255, 255, .08); color: #e5e5ea; }
.acard p { margin: 0; color: var(--text-secondary, #9898a8); font-size: .9rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acard-shots { display: flex; gap: 8px; overflow: hidden; contain: inline-size; width: 100%; min-width: 0; height: 120px; mask-image: linear-gradient(90deg, #000 75%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 75%, transparent); }
.acard-shots img { height: 100%; width: auto; max-width: none; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .06); flex-shrink: 0; }
.acard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border, rgba(255, 255, 255, .07)); font-size: .82rem; color: var(--text-muted, #6a6a7a); }
.acard-foot { flex-wrap: wrap; row-gap: 10px; }
.acard-foot .stats { display: flex; align-items: center; gap: 12px; flex-shrink: 0; white-space: nowrap; }
.acard-foot .stats > span { display: inline-flex; align-items: center; gap: 5px; }
.acard-foot .host { color: var(--text-secondary, #9898a8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acard-foot .go { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; color: #a5b4fc; font-weight: 600; text-decoration: none; white-space: nowrap; }
.acard-foot .go:hover { color: #fff; }
.acard .gp-badge { position: relative; z-index: 1; }
.acard-status { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--text-muted, #6a6a7a); }

@media (max-width: 520px) {
    .agrid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .acard { padding: 16px; }
    .acard-shots { height: 96px; }
}
.acard-shots:empty { display: none; }

/* Chrome Web Store */
.cws-badge i { background: conic-gradient(from 30deg, #ea4335 0 120deg, #fbbc05 0 240deg, #34a853 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bl-app-play.cws { color: #8ab4f8; background: rgba(66, 133, 244, .12); }
.acard-type.chrome { background: rgba(66, 133, 244, .12); color: #8ab4f8; }
