/* Duyuru şeridi ve kartı (07.10.2026, DECISIONS #92). Site (public.css) ve üye paneli (member.css) belirteçleriyle
   çalışır: --surface, --surface-muted, --border, --border-strong, --text, --text-soft. Renk: is-gold / is-teal / is-red.
   Bağlam: is-site (açılış sayfası karşılama bölümünde cam kart) / is-member (panel kartı). */

/* ---------------------------------------------------------------- şerit */
.an-bar { --an-bg: linear-gradient(90deg, #f2b84b, #f6cd73); --an-fg: #2b1d00; --an-ink: #2b1d00; --an-ink-fg: #ffd98c; --an-dot: #ff6574;
    background: var(--an-bg); color: var(--an-fg); font-size: 14px; line-height: 1.45; }
.an-bar.is-teal { --an-bg: linear-gradient(90deg, #42c8c7, #7fd9da); --an-fg: #06191a; --an-ink: #06191a; --an-ink-fg: #9ff0ef; --an-dot: #06191a; }
.an-bar.is-red { --an-bg: linear-gradient(90deg, #d9364a, #ff6574); --an-fg: #ffffff; --an-ink: #ffffff; --an-ink-fg: #b3172b; --an-dot: #b3172b; }
.an-bar-inner { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 7px 0; }
.an-bar.is-member { margin: 16px 24px 0; border-radius: 12px; }
.an-bar.is-member .an-bar-inner { padding: 8px 12px; }
.an-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--an-ink); color: var(--an-ink-fg);
    font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.an-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--an-dot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--an-dot) 30%, transparent); }
.an-bar.is-teal .an-pill i { background: #42c8c7; }
.an-bar.is-red .an-pill { background: rgba(0, 0, 0, .22); color: #fff; }
.an-bar.is-red .an-pill i { background: #fff; }
.an-text { flex: 1; min-width: 0; }
.an-text b { font-weight: 800; }
.an-go { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 8px; background: var(--an-ink); color: var(--an-ink-fg) !important;
    font-weight: 800; white-space: nowrap; text-decoration: none; }
.an-bar.is-gold .an-go, .an-bar.is-teal .an-go { color: #fff !important; }
.an-close { flex: none; width: 30px; height: 30px; border: 0; border-radius: 8px; background: color-mix(in srgb, var(--an-fg) 12%, transparent);
    color: var(--an-fg); font-size: 18px; line-height: 1; cursor: pointer; }
.an-code { display: inline-flex; align-items: stretch; border: 1.5px dashed currentColor; border-radius: 8px; overflow: hidden; white-space: nowrap; }
.an-code b { padding: 4px 10px; font-family: Consolas, "SFMono-Regular", monospace; font-size: 14px; letter-spacing: .08em; }
.an-code button { border: 0; border-left: 1.5px dashed currentColor; background: color-mix(in srgb, currentColor 10%, transparent); color: inherit;
    font: inherit; font-size: 12.5px; font-weight: 800; padding: 4px 10px; cursor: pointer; }

/* ---------------------------------------------------------------- kart */
.an-card { --an-accent: #f2b84b; --an-accent-ink: #2b1d00; --an-eyebrow: #b47a08;
    position: relative; display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 14px; border-radius: 16px; }
.an-card.is-teal { --an-accent: #42c8c7; --an-accent-ink: #06191a; --an-eyebrow: #087f83; }
.an-card.is-red { --an-accent: #ff6574; --an-accent-ink: #3a0710; --an-eyebrow: #c2283d; }
.an-card.no-img { grid-template-columns: 52px minmax(0, 1fr) auto; }
.an-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 11px; }
.an-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--an-accent) 18%, transparent); color: var(--an-eyebrow); }
.an-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--an-eyebrow); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.an-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--an-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--an-accent) 25%, transparent); }
.an-card.is-gold .an-eyebrow i, .an-card.is-red .an-eyebrow i { background: #ff6574; box-shadow: 0 0 0 4px rgba(255, 101, 116, .22); }
.an-card h2 { margin: 5px 0 4px; font-size: 21px; line-height: 1.25; }
.an-card p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.an-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 9px; font-size: 13.5px; font-weight: 700; }
.an-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.an-count { padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--an-accent) 18%, transparent); color: var(--an-eyebrow); }
.an-actions { display: grid; gap: 8px; padding-right: 6px; }
.an-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px; border-radius: 10px; font-weight: 800;
    font-size: 14px; white-space: nowrap; text-decoration: none; border: 1px solid transparent; }
.an-btn.primary { background: var(--an-accent); border-color: var(--an-accent); color: var(--an-accent-ink) !important; }
.an-btn.primary:hover { filter: brightness(1.06); }
.an-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 8px; font-size: 16px; line-height: 1; cursor: pointer; }

/* site: açılış sayfası karşılama bölümünde cam kart */
.lp-hero .pb-container.an-wrap { display: block; padding-bottom: 30px; }
.an-card.is-site { border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); color: #eaf6f5; }
.an-card.is-site { --an-eyebrow: #f2b84b; }
.an-card.is-site.is-teal { --an-eyebrow: #7fd9da; }
.an-card.is-site.is-red { --an-eyebrow: #ff8f9b; }
.an-card.is-site h2 { color: #eaf6f5; }
.an-card.is-site p { color: #bfd6d4; }
.an-card.is-site .an-btn.ghost { border-color: rgba(255, 255, 255, .28); color: #eaf6f5 !important; background: transparent; }
.an-card.is-site .an-x { background: rgba(255, 255, 255, .08); color: #bfd6d4; }

/* üye paneli: tema kartı, sol kenar tür renginde */
.an-card.is-member { margin: 0 0 18px; border: 1px solid var(--border); border-left: 4px solid var(--an-accent); background: var(--surface); color: var(--text);
    box-shadow: 0 6px 22px rgba(15, 30, 35, .06); }
.an-card.is-member p { color: var(--text-soft); }
.an-card.is-member .an-btn.ghost { border-color: var(--border-strong); color: var(--text) !important; background: transparent; }
.an-card.is-member .an-x { background: var(--surface-muted); color: var(--text-soft); }
:root[data-theme="dark"] .an-card.is-member { --an-eyebrow: #f2b84b; box-shadow: none; }
:root[data-theme="dark"] .an-card.is-member.is-teal { --an-eyebrow: #7fd9da; }
:root[data-theme="dark"] .an-card.is-member.is-red { --an-eyebrow: #ff8f9b; }

@media (max-width: 900px) {
    .an-card, .an-card.no-img { grid-template-columns: minmax(0, 1fr); }
    .an-card.no-img .an-icon { width: 44px; height: 44px; }
    .an-actions { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); padding: 0; }
}
@media (max-width: 560px) {
    .an-bar-inner { flex-wrap: wrap; gap: 8px 10px; padding: 10px 0; }
    .an-bar.is-member { margin: 12px 16px 0; }
    .an-text { order: 2; flex-basis: 100%; font-size: 13.5px; }
    .an-close { order: 1; margin-left: auto; }
    .an-bar .an-code { order: 3; }
    .an-go { order: 3; flex: 1; justify-content: center; }
    .an-card h2 { font-size: 19px; }
    .an-actions { grid-template-columns: minmax(0, 1fr); }
}
