/* ==========================================================================
   БезШтрафа.рф — Feed / Лента проверок
   ========================================================================== */

/* --- Feed Hero --- */
.feed-hero {
    padding: 48px 0 24px;
    text-align: center;
}

.feed-hero__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary, #1a1a2e);
    margin-bottom: 12px;
    line-height: 1.2;
}

.feed-hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary, #6b7280);
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.5;
}

/* --- Stats --- */
.feed-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.feed-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.feed-stats__number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary, #1a1a2e);
}

.feed-stats__item--violations .feed-stats__number {
    color: #e63946;
}

.feed-stats__item--ok .feed-stats__number {
    color: #2a9d8f;
}

.feed-stats__label {
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
}

/* --- Notice --- */
.feed-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fef3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 14px 20px;
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
    font-size: 0.9rem;
    color: #664d03;
    line-height: 1.5;
}

.feed-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #997404;
}

.feed-notice p {
    margin: 0;
}

/* --- Filters --- */
.feed-filters {
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 32px;
}

.feed-filters__row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.feed-filter {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary, #6b7280);
    background: #f3f4f6;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.feed-filter:hover {
    background: #e5e7eb;
    color: var(--text-primary, #1a1a2e);
}

.feed-filter--active {
    background: #e63946;
    color: #fff;
    border-color: #e63946;
}

.feed-filter--active:hover {
    background: #d62828;
    color: #fff;
}

/* --- Feed Grid --- */
.feed-grid-section {
    padding-bottom: 48px;
}

.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.feed-grid--small {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* --- Feed Card --- */
.feed-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feed-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.feed-card__photo {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f4f6;
}

.feed-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.feed-card:hover .feed-card__photo img {
    transform: scale(1.05);
}

.feed-card__text-preview {
    aspect-ratio: 4 / 3;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.feed-card__text-preview p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary, #6b7280);
    text-align: center;
    word-break: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    margin: 0;
}

.feed-card__body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feed-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.feed-card__type {
    background: #f3f4f6;
    color: var(--text-secondary, #6b7280);
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 500;
}

.feed-card__date {
    color: #9ca3af;
}

.feed-card__status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.feed-card__status svg {
    flex-shrink: 0;
}

.feed-card__status--ok {
    color: #2a9d8f;
}

.feed-card__status--error {
    color: #e63946;
}

.feed-card__summary {
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
    line-height: 1.5;
    margin: 0;
}

.feed-card--ok {
    border-left: 3px solid #2a9d8f;
}

.feed-card--violations {
    border-left: 3px solid #e63946;
}

/* --- Empty state --- */
.feed-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary, #6b7280);
}

.feed-empty svg {
    margin-bottom: 16px;
    opacity: 0.4;
}

.feed-empty__text {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

/* --- Pagination --- */
.feed-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.feed-pagination__link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    background: #e63946;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.feed-pagination__link:hover {
    background: #d62828;
}

.feed-pagination__info {
    font-size: 0.9rem;
    color: var(--text-secondary, #6b7280);
}

/* --- Feed CTA --- */
.feed-cta {
    padding: 48px 0;
}

.feed-cta__inner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    color: #fff;
}

.feed-cta__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.feed-cta__text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* --- SEO text --- */
.seo-section {
    padding: 48px 0;
}

.seo-text {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary, #6b7280);
}

.seo-text .seo-section__title {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.seo-text ul {
    list-style: disc;
    padding-left: 24px;
    margin: 16px 0;
}

.seo-text li {
    margin-bottom: 8px;
}

.seo-text a {
    color: #e63946;
}

/* --- Related --- */
.feed-related {
    padding: 48px 0 0;
}

.feed-related__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

/* ==========================================================================
   Check Report Page
   ========================================================================== */

.check-report {
    padding: 32px 0 48px;
}

.check-report__layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* --- Header --- */
.check-report__header {
    margin-bottom: 24px;
}

.check-report__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.check-report__type-badge {
    display: inline-flex;
    padding: 4px 14px;
    border-radius: 100px;
    background: #e63946;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.check-report__date {
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
}

.check-report__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary, #1a1a2e);
    line-height: 1.3;
    margin: 0;
}

/* --- Status --- */
.check-report__status {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 28px;
}

.check-report__status svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.check-report__status strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.check-report__status p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.check-report__status--ok {
    background: #d4f5ef;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.check-report__status--error {
    background: #fde8ea;
    color: #7f1d1d;
    border: 1px solid #fecaca;
}

/* --- Hero Split (photo left, info right) --- */
.check-report__hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 28px;
    align-items: start;
}

.check-report__hero-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.check-report__hero-info .check-report__status {
    margin-bottom: 0;
}

/* --- OCR block --- */
.check-report__ocr {
    /* no extra styling needed */
}

.check-report__ocr-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* --- Quick violations (compact summary) --- */
.check-report__quick-violations {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.check-report__quick-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    border-left: 3px solid;
}

.check-report__quick-item--high {
    background: #fde8ea;
    border-left-color: #e63946;
}

.check-report__quick-item--medium {
    background: #fff4e5;
    border-left-color: #f77f00;
}

.check-report__quick-item--low {
    background: #fdf6e3;
    border-left-color: #e9c46a;
}

.check-report__quick-word {
    font-weight: 600;
    color: var(--text-primary, #1a1a2e);
    text-decoration: line-through;
    text-decoration-color: rgba(230, 57, 70, 0.4);
}

.check-report__quick-arrow {
    color: var(--text-secondary, #6b7280);
    flex-shrink: 0;
}

.check-report__quick-fix {
    color: #065f46;
    font-weight: 500;
}

/* --- Photo --- */
.check-report__photo {
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.check-report__photo img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: contain;
}

/* --- Sections --- */
.check-report__section {
    margin-bottom: 28px;
}

.check-report__section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.check-report__text-block {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary, #1a1a2e);
    word-break: break-word;
}

.check-report__corrected {
    background: #d4f5ef;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    padding: 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #065f46;
}

.check-report__tips {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-report__tips li {
    position: relative;
    padding: 10px 0 10px 28px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary, #6b7280);
}

.check-report__tips li:last-child {
    border-bottom: none;
}

.check-report__tips li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='7' stroke='%232a9d8f' stroke-width='1.5'/%3E%3Cpath d='M5 8l2 2 4-4' stroke='%232a9d8f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.check-report__violations {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- Action buttons --- */
.check-actions {
    margin-top: 32px;
}

.check-actions__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.check-actions__desc {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 16px;
    line-height: 1.4;
}

.check-actions__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-actions__btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    border: 1px solid transparent;
}

.check-actions__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-decoration: none;
}

.check-actions__btn--complaint {
    background: #fff3f3;
    border-color: #e6393633;
}

.check-actions__btn--complaint:hover {
    background: #ffebeb;
}

.check-actions__btn--response {
    background: #f0f4ff;
    border-color: #3b6ce733;
}

.check-actions__btn--response:hover {
    background: #e4ebff;
}

.check-actions__btn-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.check-actions__btn--complaint .check-actions__btn-icon {
    background: #e6394615;
    color: #e63946;
}

.check-actions__btn--response .check-actions__btn-icon {
    background: #3b6ce715;
    color: #3b6ce7;
}

.check-actions__btn-text {
    flex: 1;
    min-width: 0;
}

.check-actions__btn-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.check-actions__btn--complaint .check-actions__btn-text strong {
    color: #c0392b;
}

.check-actions__btn--response .check-actions__btn-text strong {
    color: #2c5cc5;
}

.check-actions__btn-text small {
    display: block;
    margin-top: 3px;
    font-size: 0.8rem;
    color: #888;
    line-height: 1.3;
}

.check-actions__btn-arrow {
    flex-shrink: 0;
    font-size: 1.2rem;
    color: #bbb;
    transition: transform 0.15s;
}

.check-actions__btn:hover .check-actions__btn-arrow {
    transform: translateX(3px);
}

.check-actions__btn--complaint:hover .check-actions__btn-arrow {
    color: #e63946;
}

.check-actions__btn--response:hover .check-actions__btn-arrow {
    color: #3b6ce7;
}

/* --- Navigation prev/next --- */
.check-report__nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.check-report__nav-link {
    font-size: 0.9rem;
    color: #e63946;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.check-report__nav-link:hover {
    color: #d62828;
    text-decoration: underline;
}

/* --- Sidebar --- */
.check-report__sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 80px;
}

.check-report__cta-box {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    border-radius: 14px;
    padding: 28px;
    text-align: center;
}

.check-report__cta-box h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.check-report__cta-box p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.5;
}

.check-report__info-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
}

.check-report__info-box h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary, #1a1a2e);
}

.check-report__info-box ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.check-report__info-box li {
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
    color: var(--text-secondary, #6b7280);
}

.check-report__info-box li:last-child {
    border-bottom: none;
}

.check-report__info-link {
    font-size: 0.85rem;
    color: #e63946;
    text-decoration: none;
    font-weight: 500;
}

.check-report__info-link:hover {
    text-decoration: underline;
}

.check-report__share-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
}

.check-report__share-box h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary, #1a1a2e);
}

.check-report__share-buttons {
    display: flex;
    gap: 10px;
}

.check-report__share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f3f4f6;
    color: var(--text-secondary, #6b7280);
    border: 1px solid #e5e7eb;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.check-report__share-btn:hover {
    background: #e5e7eb;
    color: var(--text-primary, #1a1a2e);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .check-report__layout {
        grid-template-columns: 1fr;
    }

    .check-report__sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .check-report__cta-box,
    .check-report__info-box,
    .check-report__share-box {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .check-report__hero-split {
        grid-template-columns: 1fr;
    }

    .feed-hero__title {
        font-size: 1.5rem;
    }

    .feed-stats {
        gap: 20px;
    }

    .feed-stats__number {
        font-size: 1.4rem;
    }

    .feed-grid {
        grid-template-columns: 1fr;
    }

    .feed-grid--small {
        grid-template-columns: 1fr;
    }

    .check-report__title {
        font-size: 1.3rem;
    }

    .check-report__sidebar {
        flex-direction: column;
    }

    .check-report__cta-box,
    .check-report__info-box,
    .check-report__share-box {
        min-width: auto;
    }

    .feed-notice {
        font-size: 0.85rem;
        padding: 12px 16px;
    }

    .feed-filters__row {
        gap: 6px;
    }

    .feed-filter {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .feed-hero__title {
        font-size: 1.3rem;
    }

    .feed-hero__subtitle {
        font-size: 0.95rem;
    }

    .feed-card__text-preview {
        aspect-ratio: 3 / 2;
    }
}
