/* ============================================
   TAG COLLECTION PAGE STYLES
   ============================================ */

/* Tag Collection Header */
.tag-collection-header {
    background: linear-gradient(135deg, #3e2723 0%, #5d4037 50%, #4a332c 100%);
    color: white;
    padding: 40px 5% 60px;
    position: relative;
    overflow: hidden;
}

.tag-collection-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(255, 193, 7, 0.1) 0%, transparent 25%);
    pointer-events: none;
}

.tag-header-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Breadcrumb */
.tag-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #ffcc80;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.breadcrumb-current {
    color: #ffcc80;
    font-weight: 600;
}

/* Tag Collection Hero */
.tag-collection-hero {
    display: block;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tag-hero-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.tag-icon-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.tag-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffcc80, #ffb74d);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3e2723;
    font-size: 2.5rem;
    box-shadow: 0 10px 25px rgba(255, 179, 71, 0.3);
    transform: rotate(-5deg);
    animation: tag-icon-float 3s ease-in-out infinite;
}

@keyframes tag-icon-float {
    0%, 100% { transform: rotate(-5deg) translateY(0); }
    50% { transform: rotate(-5deg) translateY(-10px); }
}

.tag-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin: 0;
}

.tag-prefix {
    color: #ffcc80;
    font-weight: 400;
}

.tag-followers {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    margin-top: 8px;
    font-family: 'Roboto', sans-serif;
}

.tag-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

.tag-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.tag-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.tag-stat .stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffcc80;
    line-height: 1;
    font-family: 'Playfair Display', serif;
}

.tag-stat .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.tag-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.tag-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.follow-btn {
    background: linear-gradient(135deg, #ffcc80, #ffb74d);
    color: #3e2723;
}

.follow-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 179, 71, 0.4);
    gap: 12px;
}

.share-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.rss-btn {
    background: #ff9800;
    color: white;
}

.rss-btn:hover {
    background: #f57c00;
    transform: translateY(-3px);
}

/* Tag Hero Image */
.tag-hero-image {
    position: relative;
    height: 350px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.tag-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tag-hero-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(62, 39, 35, 0.1) 0%,
        rgba(62, 39, 35, 0.4) 100%);
}

.popular-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: linear-gradient(135deg, #ff6b35, #ff8e53);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

/* Tag Collection Content */
.tag-collection-content {
    padding: 60px 5%;
    background: #f9f7f4;
}

.tag-content-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

/* Filters */
.tag-filters {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(215, 204, 200, 0.3);
    flex-wrap: wrap;
    gap: 20px;
}

.filters-left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.sort-by {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #5d4037;
    font-weight: 600;
    font-size: 0.95rem;
}

.sort-by i {
    color: #8d6e63;
}

.sort-select {
    padding: 10px 15px;
    border: 2px solid #d7ccc8;
    border-radius: 10px;
    background: white;
    color: #5d4037;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
}

.sort-select:focus {
    outline: none;
    border-color: #8d6e63;
    box-shadow: 0 0 0 3px rgba(141, 110, 99, 0.1);
}

.filter-toggle {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f0eb;
    border: 2px solid #d7ccc8;
    padding: 10px 20px;
    border-radius: 20px;
    color: #5d4037;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-toggle-btn.active,
.filter-toggle-btn:hover {
    background: #5d4037;
    color: white;
    border-color: #5d4037;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(93, 64, 55, 0.2);
}

.filters-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.view-toggle {
    display: flex;
    gap: 5px;
    background: #f5f0eb;
    padding: 5px;
    border-radius: 12px;
    border: 1px solid rgba(215, 204, 200, 0.5);
}

.view-toggle-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #8d6e63;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.view-toggle-btn.active,
.view-toggle-btn:hover {
    background: white;
    color: #5d4037;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.results-count {
    color: #5d4037;
    font-weight: 600;
    font-size: 1rem;
}

.count-number {
    color: #8d6e63;
    font-weight: 800;
}

/* Main Content */
.tag-main-content {
    grid-column: 1 / 2;
}

/* Content Grid */
.tag-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.list-view {
    display: none;
}

/* Content Cards */
.tag-content-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(215, 204, 200, 0.3);
}

.tag-content-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(93, 64, 55, 0.1);
    border-color: rgba(141, 110, 99, 0.3);
}

.featured-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #3e2723;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(255, 179, 0, 0.3);
}

/* Card Image */
.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.featured-card .card-image {
    height: 100%;
    min-height: 300px;
}

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

.tag-content-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 50%,
        rgba(44, 24, 16, 0.3) 100%);
}

.content-type {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #5d4037;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(5px);
}

.trending-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ff6b35, #ff8e53);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.video-duration {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Card Content */
.card-content {
    padding: 25px;
}

.featured-card .card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.meta-category,
.meta-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8d6e63;
    font-weight: 500;
}

.meta-category i,
.meta-date i {
    color: #a1887f;
    font-size: 0.9rem;
}

.card-title {
    margin-bottom: 15px;
}

.card-link {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #3e2723;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.card-link:hover {
    color: #8d6e63;
    text-decoration: underline;
}

.featured-card .card-link {
    font-size: 1.8rem;
}

.card-excerpt {
    color: #5d4037;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(215, 204, 200, 0.5);
    flex-wrap: wrap;
    gap: 15px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.author-name {
    font-weight: 600;
    color: #3e2723;
    font-size: 0.95rem;
}

.card-stats {
    display: flex;
    gap: 20px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8d6e63;
    font-size: 0.9rem;
    font-weight: 500;
}

.stat i {
    color: #a1887f;
    font-size: 0.9rem;
}

/* Pagination */
.tag-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(215, 204, 200, 0.5);
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f0eb;
    color: #5d4037;
    border: 2px solid #d7ccc8;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #5d4037;
    color: white;
    border-color: #5d4037;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(93, 64, 55, 0.2);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-number {
    width: 45px;
    height: 45px;
    background: #f5f0eb;
    border: 2px solid #d7ccc8;
    border-radius: 50%;
    color: #5d4037;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-number.active,
.page-number:hover {
    background: #5d4037;
    color: white;
    border-color: #5d4037;
    transform: scale(1.1);
}

.page-dots {
    color: #8d6e63;
    font-weight: 600;
    padding: 0 5px;
}

/* Sidebar */
.tag-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(215, 204, 200, 0.3);
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #3e2723;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.widget-title i {
    color: #8d6e63;
}

/* Related Tags */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f0eb;
    color: #5d4037;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #5d4037;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(93, 64, 55, 0.2);
}

.tag-name {
    font-weight: 600;
}

.tag-count {
    background: rgba(255, 255, 255, 0.5);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.tag-item:hover .tag-count {
    background: rgba(255, 255, 255, 0.2);
}

/* Contributors */
.contributors-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contributor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(215, 204, 200, 0.5);
}

.contributor:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contributor-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contributor-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contributor-details {
    flex: 1;
}

.contributor-name {
    font-size: 1rem;
    font-weight: 600;
    color: #3e2723;
    margin-bottom: 4px;
}

.contributor-stats {
    font-size: 0.85rem;
    color: #8d6e63;
}

.follow-btn-small {
    width: 40px;
    height: 40px;
    background: #f5f0eb;
    border: none;
    border-radius: 50%;
    color: #5d4037;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.follow-btn-small:hover {
    background: #5d4037;
    color: white;
    transform: scale(1.1);
}

/* Products */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.product-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(215, 204, 200, 0.5);
}

.product-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.product-image {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.product-details {
    flex: 1;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: #3e2723;
    margin-bottom: 4px;
}

.product-category {
    font-size: 0.85rem;
    color: #8d6e63;
    margin-bottom: 8px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #ffb300;
    font-size: 0.9rem;
}

.rating-text {
    font-weight: 600;
    color: #5d4037;
    font-size: 0.9rem;
}

.view-all-products {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5d4037;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    justify-content: center;
    padding: 10px;
    border-radius: 10px;
    background: #f5f0eb;
    margin-top: 10px;
}

.view-all-products:hover {
    background: #5d4037;
    color: white;
    gap: 12px;
}

/* Newsletter */
.newsletter-widget p {
    color: #5d4037;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-input {
    padding: 12px 15px;
    border: 2px solid #d7ccc8;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #3e2723;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: #8d6e63;
    box-shadow: 0 0 0 3px rgba(141, 110, 99, 0.1);
}

.newsletter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #5d4037;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #4a332c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(93, 64, 55, 0.2);
}

.privacy-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #8d6e63;
    margin-top: 15px;
}

.privacy-note i {
    font-size: 0.9rem;
}

/* Statistics Section */
.tag-statistics {
    background: linear-gradient(135deg, #3e2723 0%, #4a332c 100%);
    color: white;
    padding: 80px 5%;
    margin-top: 60px;
}

.statistics-container {
    max-width: 1200px;
    margin: 0 auto;
}

.statistics-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    justify-content: center;
}

.statistics-title i {
    color: #ffcc80;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.statistic-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.statistic-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.statistic-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ffcc80, #ffb74d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #3e2723;
    font-size: 1.8rem;
}

.statistic-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.statistic-number {
    font-size: 3rem;
    font-weight: 800;
    color: #ffcc80;
    line-height: 1;
    font-family: 'Playfair Display', serif;
}

.statistic-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.statistic-trend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
}

.statistic-trend.up {
    color: #a5d6a7;
}

.statistic-trend i {
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .tag-collection-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tag-content-container {
        grid-template-columns: 1fr;
    }
    
    .tag-main-content {
        grid-column: 1;
    }
    
    .featured-card {
        grid-column: 1;
        display: block;
    }
    
    .featured-card .card-image {
        height: 250px;
    }
}

@media (max-width: 992px) {
    .tag-main-title {
        font-size: 2.8rem;
    }
    
    .tag-content-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .tag-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .filters-left,
    .filters-right {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .tag-collection-header {
        padding: 30px 4% 40px;
    }
    
    .tag-main-title {
        font-size: 2.2rem;
    }
    
    .tag-description {
        font-size: 1.1rem;
    }
    
    .tag-stats {
        justify-content: center;
    }
    
    .tag-actions {
        justify-content: center;
    }
    
    .tag-content-grid {
        grid-template-columns: 1fr;
    }
    
    .card-link {
        font-size: 1.3rem;
    }
    
    .featured-card .card-link {
        font-size: 1.5rem;
    }
    
    .statistics-title {
        font-size: 2rem;
    }
    
    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .tag-main-title {
        font-size: 1.8rem;
    }
    
    .tag-followers {
        font-size: 0.9rem;
    }
    
    .tag-stats {
        gap: 20px;
    }
    
    .tag-stat .stat-number {
        font-size: 1.8rem;
    }
    
    .tag-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tag-action-btn {
        justify-content: center;
    }
    
    .tag-hero-image {
        height: 250px;
    }
    
    .filters-left {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .sort-by {
        justify-content: space-between;
    }
    
    .pagination-numbers {
        display: none;
    }
    
    .statistics-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tag-content-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.tag-content-card:nth-child(1) { animation-delay: 0.1s; }
.tag-content-card:nth-child(2) { animation-delay: 0.2s; }
.tag-content-card:nth-child(3) { animation-delay: 0.3s; }
.tag-content-card:nth-child(4) { animation-delay: 0.4s; }
.tag-content-card:nth-child(5) { animation-delay: 0.5s; }
.tag-content-card:nth-child(6) { animation-delay: 0.6s; }