/*
Theme Name: link-news - дочерняя тема
Template: link-news
Theme URI: http://example.com/
Description: Дочерняя тема для темы link-news
Author: Treba
Author URI: http://example.com/about/
Version: 1.0
*/

/* Custom styles for Transports CPT */

/* Badges & Chips */
.tr-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    margin-right: 6px;
    margin-bottom: 6px;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.tr-number-badge {
    background-color: var(--primary-color, #f99e00);
    color: #fff;
}

.tr-type-badge {
    background-color: #e0f2fe;
    color: #0369a1;
}

.tr-type-badge:hover {
    background-color: #0369a1;
    color: #fff;
}

.tr-city-badge {
    background-color: #dcfce7;
    color: #15803d;
}

.tr-city-badge:hover {
    background-color: #15803d;
    color: #fff;
}

.transport-meta-badges {
    margin-bottom: 12px;
}

.transport-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    font-size: 13px;
    color: var(--text-color-light, #83868b);
    margin-top: 10px;
    margin-bottom: 20px;
}

.transport-meta-row i {
    color: var(--primary-color, #f99e00);
    margin-right: 4px;
}

.transport-featured-image {
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
}

.transport-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.transport-footer-badges {
    border-top: 1px solid var(--border-color, #E8E9EB);
    margin-top: 30px;
    padding-top: 20px;
}

.footer-taxonomy-list {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-taxonomy-list a {
    color: var(--primary-color, #f99e00);
    text-decoration: none;
    font-weight: 600;
}

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

/* Grid & Cards */
.transports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.transport-card {
    background: #fff;
    border: 1px solid var(--border-color, #E8E9EB);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.transport-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: var(--primary-color, #f99e00);
}

.transport-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.transport-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.transport-card:hover .transport-card-image img {
    transform: scale(1.06);
}

.transport-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.transport-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.transport-card-badges .tr-badge {
    padding: 2px 6px;
    font-size: 9px;
    margin: 0;
}

.transport-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px 0;
}

.transport-card-title a {
    color: var(--text-color-dark, #1A202B);
    text-decoration: none;
    transition: color 0.2s ease;
}

.transport-card-title a:hover {
    color: var(--primary-color, #f99e00);
}

.transport-card-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-color-normal, #3D4452);
    margin-bottom: 15px;
    flex-grow: 1;
}

.transport-card-meta {
    border-top: 1px solid var(--border-color, #E8E9EB);
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-color-light, #83868b);
}

.transport-card-meta i {
    color: var(--primary-color, #f99e00);
}

/* Filter sections on Archives */
.transports-filter-section {
    background-color: var(--light-bg-color, #f0f2f7);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-color-dark, #1A202B);
    min-width: 130px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color-normal, #3D4452);
    background-color: #fff;
    border: 1px solid var(--border-color, #E8E9EB);
    border-radius: 20px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: var(--primary-color, #f99e00);
    color: var(--primary-color, #f99e00);
}

.filter-chip.active {
    background-color: var(--primary-color, #f99e00);
    color: #fff !important;
    border-color: var(--primary-color, #f99e00);
}

.chip-count {
    font-size: 10px;
    opacity: 0.7;
    margin-left: 3px;
}

/* Taxonomy Page specifics */
.transport-taxonomy-header {
    margin-bottom: 25px;
}

.taxonomy-meta-info {
    margin-top: 10px;
    margin-bottom: 15px;
}

.routes-count-badge {
    background-color: var(--light-bg-color, #f0f2f7);
    color: var(--text-color-dark, #1A202B);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.other-terms-section {
    margin-top: 40px;
    border-top: 2px solid var(--border-color, #E8E9EB);
    padding-top: 30px;
}

.terms-grid-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.term-chip {
    background: #fff;
    border: 1px solid var(--border-color, #E8E9EB);
    color: var(--text-color-normal, #3D4452);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.term-chip:hover {
    border-color: var(--primary-color, #f99e00);
    color: var(--primary-color, #f99e00);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.term-chip .count {
    background-color: var(--light-bg-color, #f0f2f7);
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    color: var(--text-color-light, #83868b);
}

/* Sidebar Custom Widgets */
.transports-sidebar-area .widget {
    background-color: #fff;
    border: 1px solid var(--border-color, #E8E9EB);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.transport-sidebar-list, .transport-sidebar-terms-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.transport-sidebar-list li, .transport-sidebar-terms-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--clr-sub-border, #f1f1f1);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.transport-sidebar-list li:last-child, .transport-sidebar-terms-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.transport-sidebar-list li:first-child, .transport-sidebar-terms-list li:first-child {
    padding-top: 0;
}

.transport-sidebar-list li a, .transport-sidebar-terms-list li a {
    color: var(--text-color-normal, #3D4452);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.transport-sidebar-list li a:hover, .transport-sidebar-terms-list li a:hover {
    color: var(--primary-color, #f99e00);
}

.transport-sidebar-list li.current-active-item > a,
.transport-sidebar-terms-list li.active-term > a {
    color: var(--primary-color, #f99e00);
    font-weight: 700;
}

.transport-sidebar-terms-list li .count {
    font-size: 11px;
    background-color: var(--light-bg-color, #f0f2f7);
    color: var(--text-color-light, #83868b);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.transport-sidebar-terms-list li.active-term .count {
    background-color: var(--primary-color, #f99e00);
    color: #fff;
}

/* Popular list styling */
.widget_popular_routes li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-left: 28px;
}

.popular-rank {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--light-bg-color, #f0f2f7);
    color: var(--text-color-dark, #1A202B);
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget_popular_routes li.current-active-item .popular-rank {
    background-color: var(--primary-color, #f99e00);
    color: #fff;
}

.popular-views {
    font-size: 11px;
    color: var(--text-color-light, #83868b);
    margin-left: auto;
}

.popular-views i {
    color: var(--primary-color, #f99e00);
}

/* All routes btn in sidebar */
.widget_all_routes_button {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.btn-all-routes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary-color, #f99e00);
    color: #fff !important;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    transition: background-color 0.25s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(249, 158, 0, 0.2);
}

.btn-all-routes:hover {
    background-color: #e08e00;
    transform: translateY(-2px);
}

.btn-all-routes:active {
    transform: translateY(0);
}

/* Related section on Single */
.related-transports-section {
    margin-top: 40px;
    border-top: 2px solid var(--border-color, #E8E9EB);
    padding-top: 30px;
}

/* Responsiveness */
@media (max-width: 768px) {
    .transports-filter-section {
        padding: 15px;
    }
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .filter-label {
        min-width: auto;
    }
}