/* DynApp — uygulama sayfaları, ana sayfa, reklam alanı, PRO ve profil bileşenleri */

/* ---------- Ana sayfa ---------- */
.home { padding-block: 48px 72px; display: grid; gap: 48px; }
.home-head { display: grid; gap: 18px; justify-items: start; }
.home-head h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; }
.home-search { width: min(560px, 100%); display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-1); }
.home-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.home-search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); min-width: 0; }
.home-section { display: grid; gap: 18px; }
.home-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.home-section-head h2 { font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.home-section-head a { font-size: 14px; color: var(--muted); }

.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.app-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-1); color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s, transform .15s, box-shadow .15s; }
.app-card:hover, .app-card:focus-visible { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-raised); }
.app-card-icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand-text); }
.app-card-text { display: grid; gap: 3px; min-width: 0; flex: 1; }
.app-card-text strong { font-size: 15.5px; font-weight: 700; }
.app-card-text span, .app-card-text small { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.app-card-go { color: var(--subtle); flex: none; }
.app-card:hover .app-card-go { color: var(--brand-text); }

.extra-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.extra-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-1); color: var(--text-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.extra-item:hover { border-color: var(--line-strong); color: var(--text); }
.extra-item .icon { color: var(--muted); width: 18px; height: 18px; }

.eco-links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.eco-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-1); color: var(--text-2); font-weight: 600; font-size: 14px; text-decoration: none; }
.eco-links a:hover { border-color: var(--brand); color: var(--brand-text); }

/* ---------- Uygulama iskeleti ---------- */
.app-page { width: 100%; max-width: 1180px; margin-inline: auto; padding: 28px var(--gutter) 64px; display: grid; gap: 20px; }
.app-page-wide { max-width: 1400px; }
.app-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.app-head-title { display: flex; gap: 14px; align-items: flex-start; }
.app-icon, .app-head-icon { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-soft); color: var(--brand-text); }
.app-head-text, .app-head-title > div { flex: 1; min-width: 220px; }
.app-head h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.025em; }
.app-head p { color: var(--muted); margin-top: 4px; max-width: 720px; }
.app-head-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.app-body { display: grid; gap: 20px; min-width: 0; }
.app-login { display: flex; gap: 10px; align-items: center; }

.app-guide { border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--radius); background: var(--surface-1); padding: 14px 18px; }
.app-guide > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 700; list-style: none; }
.app-guide > summary::-webkit-details-marker { display: none; }
.app-guide ol, .guide-steps { margin: 10px 0 6px; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); }
.app-guide .link-button { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }

/* ---------- Reklam ---------- */
.ad-slot { position: relative; min-height: 90px; max-height: 280px; overflow: hidden; border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 18px 8px 8px; background: var(--surface-2); }
.ad-label { position: absolute; top: 4px; left: 8px; font-size: 11px; color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; }
.ad-pro { position: absolute; top: 3px; right: 8px; font-size: 11px; color: var(--muted); }
.adsbygoogle { display: block; }

/* ---------- Ortak formlar ---------- */
.qr-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qr-two[hidden] { display: none; }
.input-prefix { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-1); overflow: hidden; }
.input-prefix > span { padding: 0 4px 0 12px; color: var(--muted); }
.input-prefix .input { border: 0; box-shadow: none; }
.table-wrap { overflow-x: auto; }
.support-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.support-table th, .support-table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.badge-ok { display: inline-block; padding: 2px 8px; border-radius: 999px; background: rgba(21,115,77,.12); color: var(--ok); font-size: 12px; font-weight: 700; }
.dropzone-sm { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 22px; text-align: center; background: var(--surface-2); cursor: pointer; }

/* ---------- QR ---------- */
.qr-app { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.qr-controls { min-width: 0; }
.qr-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qr-mode-option { display: flex; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-1); cursor: pointer; }
.qr-mode-option:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.qr-mode-option small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.qr-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.qr-seg label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; cursor: pointer; background: var(--surface-1); }
.qr-seg label:has(input:checked) { border-color: var(--brand); color: var(--brand-text); background: var(--brand-soft); }
.qr-seg input { position: absolute; opacity: 0; pointer-events: none; }
.qr-preview-panel, .qr-output { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 12px; }
.qr-preview { display: grid; place-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface-1) 0 50%) 0 0 / 20px 20px; min-height: 300px; }
.qr-preview canvas, .qr-preview img, .qr-preview svg { max-width: 100%; height: auto; }
.qr-dyn-list { display: grid; gap: 10px; }
.qr-dyn-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; background: var(--surface-1); display: grid; gap: 8px; }
.qr-dyn-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.qr-dyn-edit { display: flex; gap: 8px; flex-wrap: wrap; }
.qr-dyn-edit .input { flex: 1; min-width: 180px; }

/* ---------- Sosyal ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.platform-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-1); padding: 16px; display: grid; gap: 10px; align-content: start; }
.platform-account { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.platform-account img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.analytics-grid { display: grid; gap: 16px; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.metric { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; background: var(--surface-1); display: grid; gap: 2px; }
.metric strong, .metric b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.metric span, .metric small { color: var(--muted); font-size: 13px; }
.sparkline { width: 100%; height: 48px; color: var(--brand); }
.unf-app { display: grid; gap: 16px; }
.unf-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; max-height: 520px; overflow: auto; }
.unf-list li, .unf-list a { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-1); font-size: 14px; overflow-wrap: anywhere; }

/* ---------- Çark ---------- */
.wheel-app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 520px); gap: 20px; align-items: start; }
.wheel-stage, .wheel-wrap { position: relative; width: 100%; max-width: 520px; margin-inline: auto; aspect-ratio: 1; }
.wheel-wrap canvas { width: 100%; height: 100%; display: block; }
.wheel-pointer-mark { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid var(--brand); z-index: 2; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.wheel-result { min-height: 28px; text-align: center; font-size: 20px; font-weight: 800; }
.wheel-import { display: grid; gap: 8px; }

/* ---------- Post şablonu ---------- */
.post-app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 560px); gap: 20px; align-items: start; }
.post-controls { min-width: 0; }
.post-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.post-template { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-1); cursor: pointer; font-size: 13px; text-align: center; }
.post-template:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.post-template input { position: absolute; opacity: 0; pointer-events: none; }
.post-stage, .post-canvas-wrap { position: sticky; top: calc(var(--header-h) + 16px); }
.post-canvas-wrap canvas { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-raised); display: block; }

/* ---------- PRO ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-1); padding: 22px; display: grid; gap: 12px; align-content: start; }
.plan-pro { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.plan-price { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.plan-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan-list li { display: flex; gap: 8px; align-items: flex-start; color: var(--text-2); }
.plan-list .icon { color: var(--ok); flex: none; margin-top: 2px; }

/* ---------- Profil ---------- */
.profile-grid { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; align-items: start; }
.profile-photo { display: grid; gap: 8px; justify-items: center; }
.profile-photo img, .profile-photo .avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; }

/* ---------- Kenar çubuğu ---------- */
.sidebar-apps { display: grid; gap: 2px; }
.sidebar-pro { color: var(--brand-text) !important; }
.mobile-nav-label { display: block; padding: 12px 4px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--subtle); text-transform: uppercase; }

/* ---------- Mobil ---------- */
@media (max-width: 960px) {
  .qr-app, .wheel-app, .post-app { grid-template-columns: 1fr; }
  .qr-preview-panel, .qr-output, .post-stage, .post-canvas-wrap { position: static; }
}
@media (max-width: 640px) {
  .home { padding-block: 28px 48px; gap: 36px; }
  .app-page { padding-top: 18px; }
  .app-head-actions { margin-left: 0; width: 100%; }
  .qr-two, .qr-mode { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; justify-items: start; }
  .app-grid { grid-template-columns: 1fr; }
  .extra-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Hesap etkinliği ---------- */
.activity-list { list-style: none; padding: 0; margin: 0; display: grid; }
.activity-list li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.activity-list li:last-child { border-bottom: 0; }
.activity-main span { color: var(--muted); }
.activity-meta { color: var(--subtle); font-size: 13px; }
