
/* ========== СТИЛИ ========== */
:root {
    --primary-color: #D91656;
    --primary-light: #FF4D87;
    --primary-dark: #B3003D;
    --secondary-color: #333333;
    --border-color: #e0e0e0;
    --text-light: #666666;
    --card-color: #F6F8FA;
    --container-width: 1354px;
}

.content-container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.page-layout {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 30px !important;
    margin: 20px 0 !important;
    width: 100%;
}

.content-column {
    flex: 1 !important;
    min-width: 0 !important;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    width: 100%;
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    color: var(--secondary-color);
    line-height: 1.2;
}

.action-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    min-width: 180px;
    height: 52px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);

}

/* ========== СЕТКА КАРТОЧЕК ========== */
.feedback-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 15px 0;
}

.feedback-card {
    background: var(--card-color);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feedback-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.feedback-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px 18px;
}

.feedback-author-area {
    margin-bottom: 8px;
    padding-top: 0;
    border-top: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.feedback-author-area h5 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 3px 0;
    color: var(--secondary-color);
}

.feedback-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--text-light);
}

.feedback-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.feedback-meta i {
    font-size: 11px;
    color: var(--primary-color);
}

.feedback-text-area {
    flex: 1;
    margin-bottom: 6px;
}

.feedback-text {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-light);
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.read-more-placeholder {
    color: var(--primary-color);
    font-weight: 500;
    margin-left: 3px;
    font-size: 12px;
}

.reply-indicator {
    margin-top: 2px;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.reply-indicator i {
    font-size: 10px;
}

/* ========== СЧЕТЧИК ОТЗЫВОВ ========== */
.feedback-counter-total {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    margin: 10px 0 5px 0;
}

/* ========== КНОПКА "ПОКАЗАТЬ ЕЩЕ" ========== */
.load-more-wrapper {
    text-align: center;
    margin: 30px 0 10px 0;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 40px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 260px;
}

.load-more-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;

}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.load-more-btn .counter {
    font-weight: 400;
    color: var(--text-light);
    font-size: 14px;
}

.load-more-btn:hover:not(:disabled) .counter {
    color: rgba(255,255,255,0.8);
}

.load-more-btn .spinner-border {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

/* ========== ИНДИКАТОР ЗАГРУЗКИ ========== */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.loading-spinner.active {
    display: block;
}

.loading-spinner i {
    font-size: 28px;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== ПУСТОЕ СОСТОЯНИЕ ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-color);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 16px;
    margin: 20px 0;
}

.empty-state i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
    opacity: 0.5;
}

/* ========== МОДАЛЬНЫЕ ОКНА ========== */
.feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow-y: auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.feedback-modal.active {
    display: block;
}

.feedback-modal-content {
    position: relative;
    background-color: white;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 40px;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-color);
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.feedback-modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border-color);
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 15;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.modal-nav:hover:not(.disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(217, 22, 86, 0.3);
}

.modal-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.modal-nav-prev {
    left: -70px;
}

.modal-nav-next {
    right: -70px;
}

@media (max-width: 1024px) {
    .modal-nav-prev { left: -50px; }
    .modal-nav-next { right: -50px; }
    .modal-nav { width: 40px; height: 40px; font-size: 20px; }
}

@media (max-width: 768px) {
    .modal-nav-prev { left: -40px; }
    .modal-nav-next { right: -40px; }
    .modal-nav { width: 36px; height: 36px; font-size: 18px; }
}

@media (max-width: 576px) {
    .modal-nav-prev { left: 10px; top: auto; bottom: 10px; transform: none; }
    .modal-nav-next { right: 10px; top: auto; bottom: 10px; transform: none; }
    .modal-nav { width: 40px; height: 40px; background: rgba(255,255,255,0.95); }
}

.feedback-modal-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.feedback-modal-name {
    font-size: 26px;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 0 0 8px 0;
}

.feedback-counter {
    font-size: 14px;
    font-weight: normal;
    color: var(--text-light);
    margin-left: 10px;
}

.feedback-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--text-light);
    font-size: 15px;
}

.feedback-modal-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.feedback-modal-meta i {
    color: var(--primary-color);
}

.feedback-modal-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--secondary-color);
    margin-bottom: 25px;
    padding: 15px;
    background: var(--card-color);
    border-radius: 12px;
}

.feedback-modal-reply {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.feedback-modal-reply h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-modal-reply h4 i {
    color: var(--primary-color);
}

.feedback-modal-reply p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1400px) {
    .content-container { padding: 0 15px; }
    .feedback-grid { gap: 18px; }
}

@media (max-width: 1200px) {
    .feedback-grid { gap: 15px; }
}

@media (max-width: 992px) {
    .page-layout { flex-direction: column !important; gap: 20px !important; }
    .sidebar-column { flex: 0 0 100% !important; width: 100% !important; min-width: 100% !important; }
    .feedback-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .feedback-card-inner { padding: 14px 16px; }
    .header-row { flex-direction: column; align-items: flex-start; }
    .action-buttons { width: 100%; justify-content: flex-start; }
}

@media (max-width: 768px) {
    .feedback-grid { grid-template-columns: 1fr; gap: 15px; }
    #main-block { padding: 15px 18px !important; }
    .page-title { font-size: 26px; }
    .feedback-card-inner { padding: 12px 15px; }
    .feedback-author-area h5 { font-size: 16px; }
    .feedback-text { font-size: 12px; -webkit-line-clamp: 4; }
    .feedback-modal-content { padding: 30px 20px; }
    .feedback-modal-name { font-size: 22px; }
    .action-buttons { flex-direction: column; width: 100%; }
    .action-btn { width: 100%; min-width: 100%; padding: 12px 24px; height: 48px; font-size: 15px; }
    .load-more-btn { min-width: 200px; padding: 12px 24px; font-size: 14px; }
}

@media (max-width: 576px) {
    .content-container { padding: 0 10px; }
    #main-block { padding: 12px 15px !important; }
    .page-title { font-size: 22px; }
    .feedback-card-inner { padding: 10px 12px; }
    .feedback-author-area h5 { font-size: 15px; }
    .feedback-meta { font-size: 11px; gap: 6px; }
    .feedback-text { font-size: 11px; -webkit-line-clamp: 4; }
    .action-btn { padding: 10px 20px; font-size: 14px; height: 44px; }
    .load-more-btn { min-width: 100%; padding: 10px 20px; font-size: 13px; }
}

#main-block {
    background: white;
    padding: 0px 0px !important;
    border-radius: 8px;
    margin-top: 0;
    width: 100%;
}

.feedback-tabs {
    display: none;
}
