
/* Вкладки */
.waterbody-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 0 24px;
    gap: 4px;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-btn:hover {
    color: #475569;
    background: #f1f5f9;
}

.tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: #ffffff;
}

/* Контент вкладок */
.tab-content {
    padding: 0;
}

.tab-pane {
    display: none;
    padding: 24px;
}

.tab-pane.active {
    display: block;
}

/* Сетка статистики */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Секции */
.section {
    margin-bottom: 24px;
}

.section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

/* Списки рыбы и снастей */
.fish-list, .gear-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fish-item, .gear-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.fish-item:hover, .gear-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.fish-name, .gear-name {
    font-weight: 500;
    color: #374151;
}

.fish-percentage, .gear-usage {
    background: #3b82f6;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Карточка лидера */
.leader-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    border: 1px solid #fdba74;
    border-radius: 12px;
}

.leader-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.leader-info {
    flex: 1;
}

.leader-name {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 2px;
}

.leader-stats {
    font-size: 12px;
    color: #b45309;
}

/* Погода */
.weather-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.current-weather, .forecast {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.weather-data {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.weather-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.weather-label {
    color: #64748b;
    font-weight: 500;
}

.weather-value {
    color: #1e293b;
    font-weight: 600;
}

.bite-excellent {
    color: #059669;
    background: #d1fae5;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.forecast-days {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.day-name {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.bite-bar {
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    width: 100%;
    position: relative;
}

.bite-bar.excellent {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.bite-bar.good {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.bite-bar.medium {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.day-bite {
    font-size: 11px;
    color: #475569;
    font-weight: 600;
}

/* Достижения */
.achievements-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.achievement.unlocked {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #bbf7d0;
}

.achievement.locked {
    background: #f8fafc;
    opacity: 0.7;
}

.achievement-icon {
    font-size: 16px;
}

.achievement.unlocked .achievement-icon {
    color: #16a34a;
}

.achievement.locked .achievement-icon {
    color: #94a3b8;
}

.achievement-name {
    flex: 1;
    font-weight: 500;
    color: #1e293b;
}



/* ///////////////////////////////////////////////////////////////*/

/* Статистика с полосками */
.stats-overview {
    margin-bottom: 20px;
}

.stat-bars {
    margin-bottom: 15px;
}

.stat-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.stat-bar-label {
    font-size: 13px;
    color: #4a5568;
    font-weight: 500;
    min-width: 100px;
}

.stat-bar {
    flex: 1;
    height: 12px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.stat-bar-value {
    font-size: 12px;
    font-weight: 600;
    color: #2d3748;
    min-width: 40px;
    text-align: right;
}

.stats-numbers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat-number {
    text-align: center;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.stat-number-value {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-number-label {
    font-size: 11px;
    color: #718096;
    font-weight: 500;
}

/* Полоски рыбы */
.fish-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fish-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fish-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.fish-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #48bb78, #38a169);
    border-radius: 3px;
}

.fish-bar-info {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 120px;
}

.fish-name {
    font-size: 13px;
    font-weight: 500;
    color: #2d3748;
}

.fish-count {
    font-size: 11px;
    color: #718096;
}

/* Список снастей */
.gear-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gear-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f7fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.gear-rank {
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
    min-width: 20px;
}

.gear-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #2d3748;
}

.gear-percentage {
    font-size: 12px;
    font-weight: 600;
    color: #48bb78;
    min-width: 40px;
    text-align: right;
}

.gear-count {
    font-size: 11px;
    color: #718096;
    min-width: 60px;
    text-align: right;
}

/* Инфраструктура */
.infrastructure-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.infrastructure-item {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #4a5568;
}

/* Действия в обзоре */
.overview-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 15px;
}

.action-btn {
    background: none;
    border: 1.5px solid #cbd5e0;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #718096;
    font-weight: 500;
}

.action-btn:hover {
    background: #f7fafc;
    border-color: #a0aec0;
}

.add-report-btn {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    border: none;
    flex: 1;
    justify-content: center;
}

.add-report-btn:hover {
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}



/* ===== СТИЛИ ДЛЯ ВКЛАДОК ВОДОЕМА ===== */

/* Вкладка Погода */
.weather-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.current-weather, .forecast, .factors, .recommendations {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}

.weather-data {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.weather-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.weather-label {
    color: #64748b;
    font-weight: 500;
    font-size: 13px;
}

.weather-value {
    color: #1e293b;
    font-weight: 600;
    font-size: 13px;
}

.bite-excellent {
    color: #059669;
    background: #d1fae5;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.forecast-days {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.day-name {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.bite-bar {
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    width: 100%;
    position: relative;
}

.bite-bar.excellent {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.bite-bar.good {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.bite-bar.medium {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.bite-bar.poor {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.day-bite {
    font-size: 10px;
    color: #475569;
    font-weight: 600;
}

.factor-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.factor-item {
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.factor-item.positive {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.factor-item.warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fed7aa;
}

.factor-item.negative {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.recommendation-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.recommendation-item {
    font-size: 13px;
    color: #475569;
    padding: 4px 0;
}

/* Вкладка Достижения */
.achievements-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.user-achievements, .level-system, .waterbody-achievements, .medals {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.achievement.unlocked {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
}

.achievement.locked {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    opacity: 0.7;
}

.achievement-icon {
    font-size: 16px;
}

.achievement.unlocked .achievement-icon {
    color: #16a34a;
}

.achievement.locked .achievement-icon {
    color: #94a3b8;
}

.achievement-name {
    flex: 1;
    font-weight: 500;
    color: #1e293b;
    font-size: 13px;
}

.level-progress {
    margin-top: 12px;
}

.progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
}

.level-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.current-level {
    font-weight: 600;
    color: #1e293b;
}

.level-xp {
    color: #64748b;
}

.next-level {
    color: #667eea;
    font-weight: 600;
}

.medal-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.medal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
}

.medal-item.gold {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fcd34d;
}

.medal-item.silver {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border: 1px solid #cbd5e1;
}

.medal-item.bronze {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    border: 1px solid #fb923c;
}

.medal-icon {
    font-size: 18px;
}

.medal-name {
    flex: 1;
    font-weight: 500;
    color: #1e293b;
    font-size: 13px;
}

/* Вкладка Карта */
.map-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fishing-spots, .seasonal-activity, .weather-conditions, .points-of-interest {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}

.spot-list, .season-list, .poi-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.spot-item, .season-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.spot-name, .season-name {
    flex: 1;
    font-weight: 500;
    color: #374151;
    font-size: 13px;
}

.spot-popularity {
    height: 6px;
    border-radius: 3px;
    width: 60px;
}

.spot-popularity.high {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.spot-popularity.medium {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.spot-popularity.low {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.spot-reports, .season-rating {
    font-size: 11px;
    color: #64748b;
    min-width: 80px;
    text-align: right;
}

.conditions-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.condition-item {
    font-size: 13px;
    color: #475569;
    padding: 4px 0;
}

.poi-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.poi-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    color: #475569;
    text-align: center;
}

/* Вкладка Отзывы */
.reviews-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    gap: 16px;
}

.review-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-author {
    font-weight: 600;
    color: #1e293b;
    font-size: 13px;
}

.review-date {
    font-size: 11px;
    color: #64748b;
}

.review-rating {
    margin-bottom: 8px;
    font-size: 14px;
}

.review-text {
    color: #475569;
    line-height: 1.4;
    font-size: 13px;
    margin-bottom: 12px;
}

.review-actions {
    display: flex;
    gap: 12px;
}

.review-actions .like-btn, .review-actions .comment-btn {
    background: none;
    border: 1px solid #e2e8f0;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-actions .like-btn:hover, .review-actions .comment-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.show-more-reviews .btn-outline {
    background: none;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.show-more-reviews .btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/*//////////////////////////////////////////////////////////*/

/* Кнопки действий */
.actions-grid-tz {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.action-btn-tz {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    color: #4b5563;
}

.action-btn-tz:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.action-count-tz {
    font-weight: 600;
    color: #374151;
    font-size: 11px;
}

.like-btn-tz.active {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.main-actions-tz {
    display: flex;
    gap: 8px;
}

.btn-details-main-tz,
.btn-add-report-tz {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-details-main-tz {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-details-main-tz:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-add-report-tz {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-add-report-tz:hover {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Состояния загрузки */
.loading-tz {
    position: relative;
    color: transparent !important;
    background: #e5e7eb !important;
    border-radius: 4px;
    overflow: hidden;
}

.loading-tz::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .waterbody-preview-tz {
        max-width: 300px !important;
    }
    
    .preview-header-tz {
        height: 120px;
    }
    
    .stats-grid-tz {
        gap: 6px;
    }
    
    .stat-item-tz {
        padding: 6px 2px;
    }
    
    .stat-value-tz {
        font-size: 12px;
    }
    
    .main-actions-tz {
        flex-direction: column;
    }
    
    .btn-details-main-tz,
    .btn-add-report-tz {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* Стили для новых полей типа и места рыбалки */
.fishing-type-info {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.fishing-type-badge,
.fishing-location-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.fishing-type-badge.winter {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.fishing-type-badge.summer {
    background-color: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffe0b2;
}

.fishing-location-badge.с-лодки {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.fishing-location-badge.с-берега {
    background-color: #fce4ec;
    color: #c2185b;
    border: 1px solid #f8bbd9;
}

/* Стили для новых полей типа и места рыбалки в превью попапе */
.fishing-meta-info {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.fishing-meta-badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Стили для типа рыбалки */
.fishing-meta-badge.fishing-type-winter {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
    border: 1px solid #90caf9;
    box-shadow: 0 2px 4px rgba(30, 136, 229, 0.2);
}

.fishing-meta-badge.fishing-type-summer {
    background: linear-gradient(135deg, #fff3e0, #ffcc80);
    color: #ef6c00;
    border: 1px solid #ffb74d;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.2);
}

/* Стили для места рыбалки */
.fishing-meta-badge.fishing-location-с-лодки {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.fishing-meta-badge.fishing-location-с-берега {
    background: linear-gradient(135deg, #fce4ec, #f8bbd9);
    color: #c2185b;
    border: 1px solid #f48fb1;
    box-shadow: 0 2px 4px rgba(233, 30, 99, 0.2);
}

/* Стили для детального попапа */
.panel-location-time .location-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.panel-location-time .location-item:last-child {
    border-bottom: none;
}

.panel-location-time .location-item .icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.panel-location-time .location-item .text {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

/* === ОБНОВЛЕННЫЙ ДИЗАЙН ДЛЯ ПРЕВЬЮ ПОПАПА ОТЧЕТА === */

/* Сетка мета-информации */
.fishing-meta-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #e9ecef;
}

.meta-row:last-child {
    border-bottom: none;
}

.meta-label {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    min-width: 120px;
}

.meta-value {
    font-size: 12px;
    color: #212529;
    font-weight: 500;
    text-align: right;
    flex: 1;
    margin-left: 8px;
}

/* Убираем старые стили баджей */
.fishing-meta-info,
.gear-lure-info,
.gear-lure-combined,
.gear-badge,
.lure-badge,
.specific-lure-badge,
.fishing-meta-badge {
    display: none;
}

/* ===== СТИЛИ ДЛЯ ФОТО В ПАНЕЛИ ===== */

/* Контейнер основного фото */
.panel-main-photo {
    position: relative;
    width: 100%;
    height: 250px;
    background: #f0f2f5;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    transition: opacity 0.2s ease;
}

.panel-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.panel-photo-img:hover {
    transform: scale(1.02);
}

.panel-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 48px;
}

/* Навигация по фото - КНОПКИ ПО КРАЯМ */
.panel-photo-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    z-index: 10;
    pointer-events: none;
}

.photo-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 24px;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
}

.photo-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.photo-nav-btn.prev {
    margin-right: auto;
}

.photo-nav-btn.next {
    margin-left: auto;
}

/* Счетчик фото - ВНИЗУ ПО ЦЕНТРУ */
.photo-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 12px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    border-radius: 16px;
    pointer-events: none;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 15;
}

/* Миниатюры */
.photo-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding: 5px 0 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f1f5f9;
}

.photo-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.photo-thumbnails::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.photo-thumbnails::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.photo-thumbnails::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.thumbnail {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.thumbnail.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== ПРОСМОТРЩИК ФОТО ===== */
.photo-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.photo-viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-viewer-content {
    position: relative;
    width: 90vw;
    height: 90vh;
    max-width: 1200px;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
}

.photo-viewer-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.photo-viewer-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.photo-viewer-main {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    min-height: 0;
}

.photo-viewer-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.photo-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.photo-viewer-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.photo-viewer-nav.prev {
    left: 20px;
}

.photo-viewer-nav.next {
    right: 20px;
}

.photo-viewer-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    z-index: 5;
    backdrop-filter: blur(4px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .panel-main-photo {
        height: 200px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .photo-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .photo-viewer-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .photo-viewer-nav.prev {
        left: 10px;
    }
    
    .photo-viewer-nav.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .panel-main-photo {
        height: 180px;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .photo-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
    
    .photo-counter {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* ===== СТИЛИ ДЛЯ ГОЛОСОВАНИЯ "ДОВЕРЯЮ / НЕ ДОВЕРЯЮ" ===== */

.panel-moderation-section {
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 8px;
}

.panel-moderation-section .panel-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Шкала доверия */
.trust-score-container {
    margin-bottom: 16px;
}

.trust-score-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.trust-score-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease, background 0.3s ease;
    background: #10b981;
}

.trust-score-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #475569;
}

.trust-score {
    font-weight: 700;
    font-size: 16px;
}

.trust-votes {
    color: #94a3b8;
    font-size: 12px;
}

/* Кнопки модерации */
.moderation-buttons {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.moderation-btn {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.moderation-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.moderation-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.moderation-btn.trust:hover:not(:disabled) {
    border-color: #10b981;
    background: #f0fdf4;
    color: #059669;
}

.moderation-btn.trust.voted,
.moderation-btn.trust.active {
    border-color: #10b981;
    background: #d1fae5;
    color: #059669;
}

.moderation-btn.doubt:hover:not(:disabled) {
    border-color: #ef4444;
    background: #fef2f2;
    color: #dc2626;
}

.moderation-btn.doubt.voted,
.moderation-btn.doubt.active {
    border-color: #ef4444;
    background: #fee2e2;
    color: #dc2626;
}

.moderation-btn .btn-icon {
    font-size: 18px;
}

.moderation-btn .vote-count {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.moderation-btn.trust.voted .vote-count,
.moderation-btn.trust.active .vote-count {
    background: #a7f3d0;
    color: #047857;
}

.moderation-btn.doubt.voted .vote-count,
.moderation-btn.doubt.active .vote-count {
    background: #fecaca;
    color: #b91c1c;
}

.moderation-hint {
    margin-top: 12px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 480px) {
    .moderation-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .moderation-btn {
        padding: 12px;
    }
}

/* ===== СТАТУС ГОЛОСОВАНИЯ ===== */
.moderation-status {
    margin-top: 12px;
    padding: 10px 14px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #475569;
}

.moderation-status .status-icon {
    font-size: 18px;
}

.moderation-status .status-text {
    font-weight: 500;
}

.moderation-btn.voted,
.moderation-btn.active {
    cursor: default;
}

.moderation-btn.voted .vote-count,
.moderation-btn.active .vote-count {
    font-weight: 700;
}

/* ===== КНОПКА ПОДПИСКИ В ДЕТАЛЬНОМ ПОПАПЕ ===== */

.panel-subscribe-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-family: inherit;
}

.panel-subscribe-btn:hover:not(:disabled) {
    background: #e2e8f0;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.panel-subscribe-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.panel-subscribe-btn:disabled {
    cursor: default;
    opacity: 0.7;
}

/* Состояние "Подписан" */
.panel-subscribe-btn.is-subscribed {
    background: #dcfce7;
    border-color: #86efac;
    color: #16a34a;
}

.panel-subscribe-btn.is-subscribed:hover:not(:disabled) {
    background: #bbf7d0;
    border-color: #4ade80;
}

/* Состояние "Это вы!" */
.panel-subscribe-btn.is-self {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #64748b;
    cursor: default;
    opacity: 0.8;
}

/* Иконки внутри кнопки */
.panel-subscribe-btn .subscribe-icon {
    font-size: 14px;
    line-height: 1;
}

.panel-subscribe-btn .subscribe-text {
    font-size: 12px;
    font-weight: 600;
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
    .panel-subscribe-btn {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .panel-subscribe-btn .subscribe-text {
        font-size: 11px;
    }
    
    .panel-subscribe-btn .subscribe-icon {
        font-size: 12px;
    }
}

/* Анимация появления кнопки */
.panel-subscribe-btn {
    animation: fadeInSubscribe 0.3s ease;
}

@keyframes fadeInSubscribe {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== МИНИАТЮРЫ В ПРОСМОТРЩИКЕ ФОТО ===== */

.photo-viewer-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px 16px 16px;
    max-width: 100%;
    justify-content: center;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.photo-viewer-thumbs::-webkit-scrollbar {
    height: 4px;
}

.photo-viewer-thumbs::-webkit-scrollbar-track {
    background: transparent;
}

.photo-viewer-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.photo-viewer-thumb {
    flex: 0 0 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.5;
    flex-shrink: 0;
}

.photo-viewer-thumb:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.photo-viewer-thumb.active {
    border-color: #3b82f6;
    opacity: 1;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.photo-viewer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Адаптивность */
@media (max-width: 768px) {
    .photo-viewer-thumb {
        flex: 0 0 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .photo-viewer-thumb {
        flex: 0 0 50px;
        height: 50px;
    }
    
    .photo-viewer-thumbs {
        padding: 8px 10px 12px 10px;
        gap: 6px;
    }
}