/* ============================================
   СТИЛИ ДЛЯ ТАКСОНОМИИ ОРГАНИЗАЦИЙ
   ============================================ */

/* СТАТИСТИКА ОРГАНИЗАЦИИ */
.organization-stats {
    display: flex;
    gap: 15px;
    margin: 15px 0 20px;
    flex-wrap: wrap;
}

.stat-item {
    transition: transform 0.2s;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.95em;
    border: 1px solid;
}
.org-title {
    font-size: 1.6rem;
}
.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.stat-item:first-child {
    background: #f0f7ff;
    border-color: #d4e4f5;
}

.stat-item:first-child span {
    color: #0066cc;
}

.stat-item:nth-child(2) {
    background: #fff4e6;
    border-color: #ffe0b2;
}

.stat-item:nth-child(2) span {
    color: #e67e22;
}

.stat-item:last-child {
    background: #f5f5f5;
    border-color: #ddd;
}

/* АРХИВНОЕ ОПИСАНИЕ */
.archive-description {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-left: 4px solid #bb1919;  /* Главный цвет сайта */
}

/* ВКЛАДКИ */
.org-tabs {
    margin: 0 0 25px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.tab-link {
    padding: 12px 25px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    font-weight: 400;
    border-bottom: 3px solid transparent;
    color: #666;
}

.tab-link.active {
    color: #bb1919 !important;  /* Главный цвет сайта */
    border-bottom-color: #bb1919 !important;
    font-weight: 600 !important;
}

.tab-link:hover {
    color: #bb1919 !important;
    border-bottom-color: #bb1919 !important;
    background: rgba(187, 25, 25, 0.02);
}

/* ЗАГОЛОВКИ ВКЛАДОК */
.tab-header {
    margin-bottom: 20px;
}

.tab-header h2 {
    font-size: 1.3em;
    color: #333;
}

/* ГРИД АРХИВА */
.archive-grid {
    margin-bottom: 30px;
}

/* СООБЩЕНИЕ "НЕТ ЗАПИСЕЙ" */
.no-posts-message {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.no-posts-message span {
    font-size: 48px;
    opacity: 0.3;
}

.no-posts-message h3 {
    margin: 15px 0;
    color: #666;
}

.no-posts-message p {
    color: #999;
}

.no-posts-message a {
    color: #bb1919;  /* Главный цвет сайта */
    text-decoration: none;
}

.no-posts-message a:hover {
    text-decoration: underline;
}

/* ============================================
   ТЕМНАЯ ТЕМА
   ============================================ */

body.dark .stat-item:first-child,
body.dark-mode .stat-item:first-child {
    background: #1a2a3a;
    border-color: #2a4055;
}

body.dark .stat-item:first-child span,
body.dark-mode .stat-item:first-child span {
    color: #66b0ff;
}

body.dark .stat-item:nth-child(2),
body.dark-mode .stat-item:nth-child(2) {
    background: #332a1a;
    border-color: #55442a;
}

body.dark .stat-item:nth-child(2) span,
body.dark-mode .stat-item:nth-child(2) span {
    color: #ffaa66;
}

body.dark .stat-item:last-child,
body.dark-mode .stat-item:last-child {
    background: #2a2a2a;
    border-color: #444;
}

body.dark .archive-description,
body.dark-mode .archive-description {
    background: #2a2a2a;
    border-left-color: #ff4d4d;
    color: #ddd;
}

body.dark .tab-link,
body.dark-mode .tab-link {
    color: #aaa;
}

body.dark .tab-link.active,
body.dark-mode .tab-link.active {
    color: #ff4d4d !important;
    border-bottom-color: #ff4d4d !important;
}

body.dark .tab-link:hover,
body.dark-mode .tab-link:hover {
    color: #ff4d4d !important;
    border-bottom-color: #ff4d4d !important;
    background: rgba(255, 77, 77, 0.1);
}

body.dark .tab-header h2,
body.dark-mode .tab-header h2 {
    color: #fff;
}

body.dark .no-posts-message,
body.dark-mode .no-posts-message {
    background: #2a2a2a;
}

body.dark .no-posts-message h3,
body.dark-mode .no-posts-message h3 {
    color: #ccc;
}

body.dark .no-posts-message p,
body.dark-mode .no-posts-message p {
    color: #888;
}

body.dark .no-posts-message a,
body.dark-mode .no-posts-message a {
    color: #ff4d4d;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 768px) {
    .org-tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .tab-link {
        text-align: center;
        padding: 10px 15px !important;
        font-size: 0.9em;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .tab-link:last-child {
        border-bottom: none;
    }
    
    .organization-stats {
        justify-content: center;
    }
    
    .stat-item {
        width: 100%;
        text-align: center;
    }
    
    .no-posts-message {
        padding: 40px 20px;
    }
    
    .no-posts-message span {
        font-size: 36px;
    }
}