:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --bg-glass: rgba(26, 26, 26, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent: #00d4ff;
    --accent-hover: #00b8e6;
    --border: rgba(255, 255, 255, 0.1);
    --danger: #ff4757;
    --warning: #ffa502;
    --success: #2ed573;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Liquid Glass эффект */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
}

/* Навигация */
.navbar {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent) !important;
}

.nav-link {
    color: var(--text-secondary) !important;
    transition: color 0.3s;
    margin: 0 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary) !important;
}

.btn-submit {
    background: var(--accent);
    color: var(--bg-primary) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}

.btn-submit:hover {
    background: var(--accent-hover);
}

/* Герой секция */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.1;
    top: -250px;
    right: -250px;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Посты */
.posts-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.post-media {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
}

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

.post-card:hover .post-media img {
    transform: scale(1.05);
}

.video-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.video-preview i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.post-content {
    padding: 1.5rem;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-category {
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.post-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.post-location {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.license-plates {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.license-plate {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.post-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.post-stats,
.post-reactions {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.post-stats span,
.post-reactions span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Детальная страница поста */
.post-detail {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border);
}

.post-detail-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.license-plates-large {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.license-plate-large {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #000;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    border: 3px solid #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.post-detail-content {
    margin-bottom: 2rem;
}

.post-detail-content h5 {
    color: var(--accent);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.post-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.media-item {
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.media-item img,
.media-item video,
.media-item iframe {
    width: 100%;
    display: block;
}

.media-item img {
    cursor: pointer;
    transition: transform 0.3s;
}

.media-item img:hover {
    transform: scale(1.05);
}

/* Контакты */
.contact-info {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.contact-info h5 {
    color: var(--accent);
    margin-bottom: 1rem;
}

#contactsHidden p {
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

/* Реакции */
.reactions-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.reactions-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.reaction-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-primary);
}

.reaction-btn:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

.reaction-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
}

.reaction-emoji {
    font-size: 1.5rem;
}

.reaction-count {
    font-weight: 600;
}

/* Комментарии */
.comments-section {
    margin-top: 2rem;
}

.comments-section h5 {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.comment-item {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.comment-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* Видео страница */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.video-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s, border-color 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
}

.video-player iframe,
.video-player video {
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 1.5rem;
}

.video-info h5 {
    margin-bottom: 0.5rem;
}

.video-meta {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.video-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Страница свидетелей */
.witness-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.witness-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 300px 1fr;
    transition: transform 0.3s, border-color 0.3s;
}

.witness-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.witness-image {
    width: 100%;
    height: 100%;
    min-height: 250px;
    background: var(--bg-secondary);
}

.witness-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.witness-content {
    padding: 2rem;
}

.witness-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.witness-header h4 {
    color: var(--accent);
    margin: 0;
}

.witness-info {
    margin-bottom: 1rem;
}

.witness-info p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.witness-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.witness-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Модальные окна */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.modal-header {
    border-bottom: 1px solid var(--border);
}

.modal-title {
    color: var(--accent);
}

.btn-close {
    filter: invert(1);
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-secondary);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
}

.form-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Кнопки */
.btn-primary {
    background: var(--accent);
    border: none;
    color: var(--bg-primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
    font-weight: 600;
    border-radius: 12px;
}

.btn-outline-primary:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-outline-light {
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
    background: transparent;
    font-weight: 600;
    border-radius: 12px;
}

.btn-outline-light:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-outline-secondary {
    border: 1px solid var(--border);
    color: var(--text-secondary);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Алерты */
.alert-info {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--accent);
    color: var(--text-primary);
    border-radius: 12px;
}

.alert-success {
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid var(--success);
    color: var(--text-primary);
    border-radius: 12px;
}

.alert-danger {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid var(--danger);
    color: var(--text-primary);
    border-radius: 12px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
}

/* Sidebar */
.sidebar-widget {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.sidebar-widget h5 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    margin-top: 4rem;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .witness-card {
        grid-template-columns: 1fr;
    }
    
    .witness-image {
        min-height: 200px;
    }
    
    .post-media-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .post-detail {
        padding: 1rem;
    }
    
    .license-plate-large {
        font-size: 1.2rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Анимации загрузки */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
}

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

/* Бейджи */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}

.bg-warning {
    background: var(--warning) !important;
    color: var(--bg-primary) !important;
}

.bg-success {
    background: var(--success) !important;
    color: var(--bg-primary) !important;
}

.bg-danger {
    background: var(--danger) !important;
    color: var(--text-primary) !important;
}

/* Page title */
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}