/*
 * Additions of the rebuilt public site (components the original did not have or that now come from the database).
 * Colours come from the original design tokens (--akf-premium-*), so dark and light themes keep working.
 */

/* --- Flash messages (newsletter) --- */
.site-flash { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; font-size: .92rem; font-weight: 650; }
.site-flash--ok { background: rgba(41, 183, 134, .16); border: 1px solid rgba(85, 213, 168, .4); color: inherit; }
.site-flash--error { background: rgba(214, 70, 70, .16); border: 1px solid rgba(240, 120, 120, .45); color: inherit; }

/* --- Home statistics strip --- */
.kb-stats-section { padding-block: 8px 20px; }
.kb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.kb-stats__item {
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
    padding: 18px 20px; border-radius: 20px; color: var(--akf-premium-text, #f4fbff);
    background: var(--akf-premium-surface-soft, rgba(8, 42, 61, .9)); border: 1px solid var(--akf-premium-border, rgba(197, 235, 241, .14));
    box-shadow: var(--akf-premium-shadow, none);
}
.kb-stats__icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--akf-premium-accent, #61d0d1); background: var(--akf-premium-control, rgba(255, 255, 255, .07)); }
.kb-stats__icon svg { width: 24px; height: 24px; }
.kb-stats__value { font-size: 1.9rem; line-height: 1.1; font-weight: 800; }
.kb-stats__label { color: var(--akf-premium-muted, #b8cbd6); font-size: .86rem; font-weight: 650; }

/* --- Home results block --- */
.akf-home-results { padding-inline: 12px; }

/* --- License check --- */
.akf-license-result-card.is-valid { border-color: rgba(85, 213, 168, .45); }
.akf-license-result-card.is-invalid { border-color: rgba(240, 120, 120, .5); }
.akf-license-result-card.is-invalid .akf-license-result-icon { background: rgba(214, 70, 70, .16); color: #ff8e8e; }
.akf-license-result-data dd { white-space: normal; overflow-wrap: anywhere; }
.akf-license-result-card { grid-template-columns: auto minmax(210px, 1fr) minmax(0, 1.6fr); }
.akf-license-result-data { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.site-license-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.site-license-badge--ok { background: rgba(41, 183, 134, .18); color: #55d5a8; }
.site-license-badge--bad { background: rgba(214, 70, 70, .18); color: #ff8e8e; }
.site-license-unknown svg { color: #f2b95b; }
html[data-theme="light"] .site-license-badge--ok { color: #0b7a52; }
html[data-theme="light"] .site-license-badge--bad { color: #b02a2a; }
@media (max-width: 900px) { .akf-license-result-card { grid-template-columns: auto 1fr; } }
@media (max-width: 560px) { .akf-license-result-card { grid-template-columns: 1fr; } }

/* --- Pager --- */
.site-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 22px 0 6px; }
.site-pager__btn {
    display: inline-flex; align-items: center; justify-content: center; min-width: 40px; padding: 8px 13px; border-radius: 12px;
    border: 1px solid var(--akf-premium-border, rgba(255, 255, 255, .14)); background: var(--akf-premium-control, rgba(255, 255, 255, .07));
    color: var(--akf-premium-text, #fff) !important; text-decoration: none; font-weight: 700; font-size: .92rem;
}
a.site-pager__btn:hover { background: var(--akf-premium-control-hover, rgba(255, 255, 255, .12)); border-color: var(--akf-premium-border-hover, rgba(255, 255, 255, .3)); }
.site-pager__btn.is-active { background: var(--akf-premium-accent, #61d0d1); color: #04202b !important; border-color: transparent; }
.site-pager__btn.is-disabled { opacity: .45; }
.site-pager__gap { color: var(--akf-premium-muted, #b8cbd6); padding: 0 4px; }

/* --- Neutral avatar used instead of private photos --- */
.site-avatar { display: grid; place-items: center; width: 100%; height: 100%; color: var(--akf-premium-accent, #61d0d1); background: var(--akf-premium-control, rgba(255, 255, 255, .07)); }
.site-avatar svg { width: 55%; height: 55%; }

/* --- Empty state --- */
.site-empty { padding: 34px 20px; text-align: center; border-radius: 18px; border: 1px dashed var(--akf-premium-border, rgba(255, 255, 255, .2)); color: var(--akf-premium-muted, #b8cbd6); }

/* --- Notes --- */
.site-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; font-size: .9rem; border: 1px solid var(--akf-premium-border, rgba(255, 255, 255, .16)); background: var(--akf-premium-control, rgba(255, 255, 255, .06)); color: var(--akf-premium-muted, #b8cbd6); }

.site-narrow { max-width: 640px; margin-inline: auto; }

/* --- Club profile map --- */
.site-club-map { height: 340px; border-radius: 16px; overflow: hidden; }

/* --- Site search --- */
.site-search-title { margin: 28px 0 10px; font-size: 1.15rem; font-weight: 800; color: var(--akf-premium-accent, #61d0d1); }
.site-search-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-search-list li { padding: 12px 16px; border-radius: 14px; background: var(--akf-premium-control, rgba(255, 255, 255, .06)); border: 1px solid var(--akf-premium-border, rgba(255, 255, 255, .12)); }
.site-search-list a { font-weight: 700; color: inherit; }
.site-search-list small { margin-inline-start: 10px; color: var(--akf-premium-muted, #b8cbd6); }

/* --- Links inside directory profiles stay readable on the dark theme --- */
.akf-directory-profile a:not(.akf-directory-back) { color: var(--akf-premium-accent, #61d0d1); }
