/* public/css/pages/gosts.css — list page (/gosty) styled like /spravochnik-marki */

.gosts-layout {
    display: grid;
    grid-template-columns: 1fr minmax(240px, 260px);
    gap: 32px;
    align-items: start;
    margin-top: 24px;
}
@media (max-width: 991px) {
    .gosts-layout { grid-template-columns: 1fr; }
}

.gosts-search { margin-bottom: 18px; position: relative; max-width: 520px; }
.gosts-search__input-wrap { position: relative; }
.gosts-search__input {
    width: 100%;
    padding: 14px 44px 14px 16px;
    font-size: 16px;
    line-height: 1.4;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #1a1a1a;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.gosts-search__input::placeholder { color: #9ca3af; }
.gosts-search__input:focus {
    outline: none;
    border-color: #f0cf4c;
    box-shadow: 0 0 0 3px rgba(240, 207, 76, 0.2);
}
.gosts-search__icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.gosts-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}
.gosts-cats__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
.gosts-cats__link:hover {
    background: rgba(240, 207, 76, 0.12);
    border-color: rgba(240, 207, 76, 0.8);
    color: #111827;
}
.gosts-cats__link.is-active {
    background: #f0cf4c;
    border-color: #f0cf4c;
    color: #111111;
}

.gosts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
@media (max-width: 1100px) {
    .gosts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .gosts-grid { grid-template-columns: 1fr; }
}

.gost-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px 16px 14px;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.gost-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(17,24,39,0.10);
    border-color: rgba(17,24,39,0.14);
}
.gost-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.gost-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(240, 207, 76, 0.18);
    border: 1px solid rgba(240, 207, 76, 0.35);
    color: #111827;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.gost-category {
    font-size: 12px;
    color: #6b7280;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.gost-card-title {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.35;
}
.gost-card-title a { color: #111827; text-decoration: none; }
.gost-card-title a:hover { text-decoration: underline; }
.gost-card-desc {
    font-size: 13px;
    line-height: 1.55;
    color: #6b7280;
    margin: 0 0 12px;
}
.gost-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.gost-card-link {
    color: #111827;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    border-bottom: 1px solid rgba(17,24,39,0.25);
    padding-bottom: 2px;
}
.gost-card-link:hover { border-bottom-color: rgba(17,24,39,0.55); }
.gost-sizes-count { font-size: 12px; color: #94a3b8; white-space: nowrap; }

.gosts-pagination {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.tm-pagination {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.tm-pagination__meta {
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}
.tm-pagination__num { font-weight: 800; color: #111827; }

.tm-pagination__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.tm-pagination__item { flex: 0 0 auto; }

.tm-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.tm-pagination__link:hover {
    background: #f9fafb;
    border-color: rgba(17,24,39,0.22);
    transform: translateY(-1px);
}
.tm-pagination__link--active {
    background: #f0cf4c;
    border-color: #f0cf4c;
    color: #111111;
    cursor: default;
    transform: none;
}
.tm-pagination__link--icon {
    width: 38px;
    padding: 0;
    font-size: 18px;
    line-height: 1;
}
.tm-pagination__link--dots {
    min-width: 38px;
    cursor: default;
    color: #9ca3af;
}
.tm-pagination__item--disabled .tm-pagination__link {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 640px) {
    .tm-pagination__meta { font-size: 12px; }
    .tm-pagination__list {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        max-width: 100%;
    }
    .tm-pagination__link { min-width: 34px; height: 34px; border-radius: 9px; font-size: 12px; }
    .tm-pagination__link--icon { width: 34px; font-size: 16px; }
}

