/* Общие стили публичных страниц на v3-layout */

.public-page {
    padding-bottom: 2.5rem;
    padding-top: 0.35rem;
}

.site-v3-page .page-content {
    width: 100%;
}

.public-page > .container,
.public-page .container {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
}

.site-flash-wrap {
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.site-flash {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 16, 28, 0.82);
}

.site-flash--success {
    border-color: rgba(40, 167, 69, 0.35);
    color: #9dffc0;
}

.site-flash--danger {
    border-color: rgba(220, 53, 69, 0.35);
    color: #ffb3bd;
}

.site-flash--info {
    border-color: rgba(0, 123, 255, 0.35);
    color: #b8d9ff;
}

/* Секции главной (банлист, топ добычи, CTA) */
.bans-section {
    margin: var(--section-gap, 4.5rem) 0;
}

.bans-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.ban-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius, 14px);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    background: rgba(10, 16, 28, 0.72);
    transition: border-color 0.2s, background 0.2s;
}

.ban-item:hover {
    border-color: rgba(42, 129, 255, 0.22);
    background: rgba(14, 22, 38, 0.88);
}

.ban-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.ban-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ban-name {
    font-weight: 600;
    color: rgba(238, 242, 248, 0.92);
}

.ban-reason {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ban-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.gather-index-section {
    margin: var(--section-gap, 4.5rem) 0;
}

.gather-index-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.btn-gather-page,
.btn-gather-page-subtle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(42, 129, 255, 0.28);
    color: #b8d9ff;
    background: rgba(42, 129, 255, 0.08);
    transition: background 0.2s, border-color 0.2s;
}

.btn-gather-page:hover,
.btn-gather-page-subtle:hover {
    color: #fff;
    background: rgba(42, 129, 255, 0.16);
    border-color: rgba(42, 129, 255, 0.42);
}

.home-final-cta {
    margin: var(--section-gap, 4.5rem) 0 2rem;
}

.home-final-cta__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.75rem 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(42, 129, 255, 0.22);
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(42, 129, 255, 0.14), transparent 55%),
        rgba(10, 16, 28, 0.82);
}

.home-final-cta__kicker {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(184, 217, 255, 0.75);
    margin-bottom: 0.35rem;
}

.home-final-cta__text h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    font-weight: 500;
    margin: 0 0 0.45rem;
    color: rgba(238, 242, 248, 0.94);
}

.home-final-cta__text p {
    margin: 0;
    color: var(--text-muted);
    max-width: 36rem;
    font-size: 0.92rem;
}

.home-final-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.home-final-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(238, 242, 248, 0.88);
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s, border-color 0.2s;
}

.home-final-cta__btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.home-final-cta__btn.primary {
    border-color: rgba(42, 129, 255, 0.35);
    background: rgba(42, 129, 255, 0.14);
    color: #d4e8ff;
}

.loading-spinner {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

.loading-spinner .spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.75rem;
    border: 2px solid rgba(42, 129, 255, 0.2);
    border-top-color: var(--accent-bright);
    border-radius: 50%;
    animation: public-spin 0.8s linear infinite;
}

.loading-spinner.small .spinner {
    width: 28px;
    height: 28px;
}

@keyframes public-spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    opacity: 0.65;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #9fd4ff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Внутренние публичные страницы */
.public-page .bans-list-page,
.public-page .gather-stats-page,
.public-page .ticket-portal-wrap {
    padding-top: 0.5rem;
}

.public-page .breadcrumb {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.65rem 1rem;
}

.public-page .breadcrumb-item a {
    color: #9fd4ff;
    text-decoration: none;
}

.public-page .breadcrumb-item.active {
    color: var(--text-muted);
}

/* Топ добычи на главной */
.gather-index-section {
    margin: var(--section-gap, 4.5rem) 0;
}

.gather-index-head .section-title-wrap h2 {
    margin: 0 0 0.25rem;
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    font-weight: 500;
    color: rgba(238, 242, 248, 0.94);
}

.gather-index-head .section-title-wrap p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.gather-top-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.gather-top-card {
    border-radius: var(--radius, 14px);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    background: rgba(10, 16, 28, 0.72);
    padding: 0.75rem;
}

.gather-top-card .gt-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(184, 217, 255, 0.9);
    margin-bottom: 0.55rem;
}

.gather-top-card ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.38rem;
}

.gather-top-card li {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.36rem 0.1rem;
}

.gather-top-card .rank {
    font-size: 0.74rem;
    font-weight: 700;
    color: rgba(169, 208, 245, 0.86);
}

.gather-top-card .who {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(234, 244, 255, 0.9);
    font-size: 0.8rem;
}

.gather-top-card .amt {
    font-size: 0.78rem;
    font-weight: 700;
    color: #cfe6ff;
    font-variant-numeric: tabular-nums;
}

.gather-top-placeholder,
.gather-top-error {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(10, 16, 28, 0.72);
    color: var(--text-muted);
    padding: 1rem;
    text-align: center;
}

.bans-section .section-header.small {
    margin-bottom: 1rem;
}

.bans-section .section-header.small h2 {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
}

@media (max-width: 900px) {
    .gather-top-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .gather-top-grid {
        grid-template-columns: 1fr;
    }
}
