/* Tags Page Styles */
.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.tags-index {
    margin: 30px 0;
    padding: 15px 20px;
    background: #2a2a2a;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.tags-index a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 6px;
    background: #1a1a1a;
    border: 1px solid #333;
    transition: all 0.2s;
    min-width: 40px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tags-index a:hover {
    background: #de2600;
    color: #fff;
    border-color: #de2600;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(222, 38, 0, 0.3);
}

.tags-filter {
    margin: 30px 0;
}

.filter-input {
    width: 100%;
    max-width: 600px;
    padding: 14px 20px;
    border: 2px solid #333;
    background: #2a2a2a;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.filter-input:focus {
    outline: none;
    border-color: #de2600;
    background: #333;
}

.tags-list {
    margin-top: 30px;
}

.tag-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #de2600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.tag-items {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tag-item {
    margin: 0;
}

.tag-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #2a2a2a;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s;
    border: 1px solid #333;
    min-height: 50px;
}

.tag-link:hover {
    background: #333;
    border-color: #de2600;
    transform: translateY(-1px);
}

.tag-name {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    line-height: 1.3;
    flex: 1;
    margin-right: 10px;
}

.tag-count {
    font-size: 13px;
    color: #999;
    background: #1a1a1a;
    padding: 4px 8px;
    border-radius: 3px;
    white-space: nowrap;
    display: inline-block;
    font-weight: 600;
}

.tag-link:hover .tag-count {
    background: #de2600;
    color: #fff;
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .tag-items {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 24px;
    }
    
    .tags-index {
        padding: 12px 15px;
        gap: 8px;
    }
    
    .tags-index a {
        font-size: 13px;
        padding: 8px 12px;
        min-width: 35px;
    }
    
    .filter-input {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .tag-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .tag-link {
        padding: 8px 10px;
        min-height: 45px;
        flex-direction: row;
    }
    
    .tag-name {
        font-size: 12px;
        margin-right: 8px;
    }
    
    .tag-count {
        font-size: 12px;
        padding: 3px 6px;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Hide sections with no visible tags */
.tag-section[style*="display: none"] {
    display: none !important;
}

