/* === Общие стили === */
:root {
    --color-new: #dc3545;
    --color-confirmed: #fd7e14;
    --color-in-progress: #0dcaf0;
    --color-fixed: #198754;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f5f6f8;
}

/* === Герой-секция === */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

/* === Карточки ям === */
.pothole-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pothole-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pothole-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.pothole-card .placeholder-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

/* === Статус-бейджи === */
.badge-new {
    background-color: var(--color-new);
}

.badge-confirmed {
    background-color: var(--color-confirmed);
}

.badge-in-progress {
    background-color: var(--color-in-progress);
    color: #000;
}

.badge-fixed {
    background-color: var(--color-fixed);
}

/* === Серьёзность === */
.severity-low {
    color: #198754;
}

.severity-medium {
    color: #fd7e14;
}

.severity-critical {
    color: #dc3545;
    font-weight: 600;
}

/* === Голосование === */
.vote-btn {
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 4px 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.vote-btn:hover {
    background: #fff3cd;
    border-color: #ffc107;
}

.vote-btn.voted {
    background: #ffc107;
    border-color: #ffc107;
    color: #000;
}

/* === Таймлайн истории === */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #dee2e6;
}

.timeline-item.status-new::before {
    background: var(--color-new);
    box-shadow: 0 0 0 2px var(--color-new);
}

.timeline-item.status-confirmed::before {
    background: var(--color-confirmed);
    box-shadow: 0 0 0 2px var(--color-confirmed);
}

.timeline-item.status-in-progress::before {
    background: var(--color-in-progress);
    box-shadow: 0 0 0 2px var(--color-in-progress);
}

.timeline-item.status-fixed::before {
    background: var(--color-fixed);
    box-shadow: 0 0 0 2px var(--color-fixed);
}

/* === Страница деталей === */
.photo-gallery img {
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.photo-gallery img:hover {
    opacity: 0.85;
}

/* === Карта === */
#mapContainer {
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* === Форма добавления === */
.form-section {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8f9fa;
}

.upload-zone:hover {
    border-color: #ffc107;
    background: #fffdf0;
}

.upload-zone.dragover {
    border-color: #ffc107;
    background: #fff3cd;
}

/* === Статистика === */
.stat-widget {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* === Адаптивность === */
@media (max-width: 768px) {
    .hero-section .display-5 {
        font-size: 1.75rem;
    }

    .hero-section .lead {
        font-size: 0.95rem;
    }

    #mapContainer {
        height: 400px;
    }
}

/* === Комментарии === */
.comment {
    border-left: 3px solid #dee2e6;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 600;
    font-size: 0.9rem;
}

.comment-date {
    font-size: 0.8rem;
    color: #6c757d;
}
