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

/* Main Layout */
.tag-main {
    margin-top: 5px;
    padding-top: 5px;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
}
/* Layout */
.tag-page-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    margin: 5px;
}

@media (max-width: 1024px) {
    .tag-page-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .tag-page-layout {
        gap: 30px;
        margin: 5px;
    }
}

/* Tag Header */
.tag-page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 50px 40px 40px;
    margin-bottom: 50px;
    border: 1px solid #e9ecef;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .tag-page-header {
        padding: 40px 25px 35px;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .tag-page-header {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
}

.header-content {
    position: relative;
    z-index: 2;
}

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

@media (max-width: 768px) {
    .tag-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

.tag-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .tag-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

.tag-title-section {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .tag-title-section {
        gap: 15px;
    }
}

.tag-title {
    font-size: 42px;
    font-weight: 800;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
    flex: 1;
}

@media (max-width: 768px) {
    .tag-title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .tag-title {
        font-size: 28px;
    }
}

.tag-count-badge {
    background: #e74c3c;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(231, 76, 60, 0.3);
    white-space: nowrap;
}

.tag-count-badge span {
    display: inline-block;
    animation: countPulse 2s infinite;
}

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

.tag-description-wrapper {
    margin-bottom: 35px;
}

.tag-description {
    line-height: 1.7;
    color: #5d6d7e;
    font-size: 17px;
    max-width: 800px;
}

@media (max-width: 768px) {
    .tag-description {
        font-size: 16px;
    }
}

.tag-description p {
    margin: 0;
}

.tag-stats-wrapper {
    margin-bottom: 35px;
}

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

@media (max-width: 768px) {
    .tag-stats {
        gap: 15px;
    }
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: white;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    color: #5d6d7e;
    border: 1px solid #e9ecef;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.stat-pill:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.stat-pill i {
    color: #667eea;
    font-size: 16px;
}

.related-tags-wrapper {
    margin-top: 40px;
}

.related-tags-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 15px;
    color: #7f8c8d;
    font-weight: 600;
}

.related-tags-label i {
    color: #9b59b6;
    font-size: 16px;
}

.related-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.related-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: white;
    border-radius: 25px;
    font-size: 14px;
    color: #5d6d7e;
    text-decoration: none;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.related-tag-item:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.related-tag-count {
    font-size: 12px;
    color: #95a5a6;
    font-weight: 500;
}

.tag-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 35px;
    margin-top: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .tag-banner {
        padding: 30px 25px;
        margin-top: 30px;
    }
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

.banner-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .banner-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

.banner-text h3 {
    margin: 0 0 15px 0;
    font-size: 26px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .banner-text h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }
}

.banner-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .banner-text p {
        font-size: 15px;
    }
}

.banner-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
}

.banner-wave svg {
    width: 100%;
    height: 100%;
    fill: rgba(255,255,255,0.1);
}

/* Content Section */
.tag-content-section {
    margin-top: 30px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 768px) {
    .content-header {
        margin-bottom: 30px;
        gap: 15px;
    }
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 24px;
    }
}

.section-title i {
    color: #667eea;
}

.content-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sort-select {
    padding: 12px 18px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: white;
    color: #5d6d7e;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    min-width: 200px;
    transition: all 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

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

@media (max-width: 1024px) {
    .content-grid {
        gap: 5px;
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 5px;
        margin-bottom: 50px;
    }
}

@media (max-width: 480px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

.content-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.tag-trending-badge, .new-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag-trending-badge {
    background: #e74c3c;
    color: white;
}

.new-badge {
    background: #2ecc71;
    color: white;
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.image-link {
    display: block;
    width: 100%;
    height: 100%;
}

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

.content-card:hover .content-image {
    transform: scale(1.08);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 52px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-categories {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
}

.category-tag {
    padding: 6px 12px;
    background: rgba(255,255,255,0.95);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.music-genre {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.genre-tag {
    padding: 6px 12px;
    background: #9b59b6;
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.format-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-content {
    padding: 5px;
}

@media (max-width: 768px) {
    .card-content {
        padding: 5px;
    }
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #7f8c8d;
}

@media (max-width: 480px) {
    .card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (max-width: 480px) {
    .meta-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.date-info, .artist-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-right .post-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-value {
    font-weight: 600;
    color: #2c3e50;
}

.card-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .card-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #667eea;
}

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

.card-excerpt p {
    margin: 0;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.post-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
    color: #5d6d7e;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.post-tag i {
    font-size: 11px;
}

.more-tags {
    font-size: 13px;
    color: #95a5a6;
    font-style: italic;
    align-self: center;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.primary-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.3);
}

.action-batan {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    background: white;
    color: #e74c3c;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-batan:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
    transform: translateY(-2px);
}

.action-batan.liked {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

/* Pagination */
.tag-pagination {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e9ecef;
}

@media (max-width: 768px) {
    .tag-pagination {
        margin-top: 50px;
        padding-top: 30px;
    }
}

.pagination-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 15px;
    color: #7f8c8d;
    flex-wrap: wrap;
    gap: 15px;
}

.post-count {
    font-weight: 600;
    color: #5d6d7e;
}

.pagination-links ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.pagination-links a,
.pagination-links span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    color: #5d6d7e;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 48px;
    justify-content: center;
}

.pagination-links a:hover {
    background: #f8f9fa;
    color: #667eea;
    transform: translateY(-2px);
}

.pagination-links .current {
    background: #667eea;
    color: white;
    font-weight: 600;
}

/* Empty State */
.no-content-found {
    text-align: center;
    padding: 80px 30px;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .no-content-found {
        padding: 60px 20px;
        margin: 30px 0;
    }
}

.empty-state {
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

@media (max-width: 768px) {
    .empty-icon {
        width: 80px;
        height: 80px;
        font-size: 32px;
        margin-bottom: 25px;
    }
}

.empty-state h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px;
}

@media (max-width: 768px) {
    .empty-state h3 {
        font-size: 24px;
        margin-bottom: 15px;
    }
}

.empty-state p {
    color: #7f8c8d;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 35px;
}

@media (max-width: 768px) {
    .empty-state p {
        font-size: 16px;
        margin-bottom: 30px;
    }
}

.empty-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .btn-primary, .btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
    }
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: white;
    color: #5d6d7e;
    border: 1px solid #e9ecef;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-3px);
}

/* Sidebar */
.tag-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

@media (max-width: 1024px) {
    .tag-sidebar {
        position: static;
        margin-top: 40px;
        top: auto;
    }
}

.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

@media (max-width: 768px) {
    .sidebar-widget {
        padding: 25px;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .sidebar-widget {
        padding: 20px;
    }
}

.widget-header {
    margin-bottom: 25px;
}

.widget-subtitle {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
    line-height: 1.4;
}

/* Popular Tagged Widget */
.popular-tagged-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 768px) {
    .popular-tagged-list {
        gap: 15px;
    }
}

.popular-tagged-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 5px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.popular-tagged-item:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateX(8px);
}

.popular-rank {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.popular-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.popular-image-link {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.popular-tagged-item:hover .popular-image {
    transform: scale(1.1);
}

.popular-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.popular-details {
    flex: 1;
}

.popular-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.popular-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-title a:hover {
    color: #667eea;
}

.popular-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #7f8c8d;
}

.meta-date, .meta-views {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Popular Tags Widget */
.popular-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.tag-cloud-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #5d6d7e;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tag-cloud-item:hover {
    background: white;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.tag-color-light {
    background: rgba(102, 126, 234, 0.1);
}

.tag-color-medium {
    background: rgba(102, 126, 234, 0.2);
}

.tag-color-dark {
    background: rgba(102, 126, 234, 0.3);
}

.tag-count {
    font-size: 12px;
    color: #95a5a6;
    font-weight: 500;
}

.view-all-tags {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #667eea;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    gap: 15px;
    color: #764ba2;
}

/* Recent Posts Widget */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-post-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.recent-post-item:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.recent-post-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-post-item:hover .recent-post-thumb {
    transform: scale(1.1);
}

.recent-post-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.recent-post-content {
    flex: 1;
}

.recent-post-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.recent-post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-title a:hover {
    color: #667eea;
}

.recent-post-meta {
    font-size: 13px;
    color: #7f8c8d;
}

.recent-post-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Widget Empty States */
.widget-empty {
    text-align: center;
    padding: 40px 25px;
    color: #7f8c8d;
    font-size: 15px;
    border: 2px dashed #e9ecef;
    border-radius: 10px;
}

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

.tag-page-header,
.tag-content-section,
.sidebar-widget {
    animation: fadeInUp 0.6s ease-out;
}

.tag-page-header { animation-delay: 0.1s; }
.tag-content-section { animation-delay: 0.2s; }
.sidebar-widget { animation: fadeInUp 0.6s ease-out 0.3s; }

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .tag-page-layout {
        gap: 40px;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .tag-page-layout {
        grid-template-columns: 1fr;
    }
    
    .tag-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        margin-top: 40px;
    }
    
    .sidebar-widget {
        margin-bottom: 0;
    }
    
    .popular-tags-widget {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .tag-main {
        margin-top: 5px;
        padding-top: 5px;
    }
    
    .tag-sidebar {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .content-controls {
        width: 100%;
    }
    
    .sort-select {
        width: 100%;
    }
    
    .tag-stats {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .related-tags-list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .related-tag-item {
        width: 100%;
        justify-content: space-between;
    }
    
    .empty-actions {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .page-container {
        padding: 5px;
    }
    
    .tag-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tag-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .meta-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .pagination-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .popular-content,
    .recent-post-content {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tag-page-header {
        padding: 25px 18px;
    }
    
    .tag-title {
        font-size: 26px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .content-grid {
        gap: 5px;
    }
    
    .sidebar-widget {
        padding: 20px 18px;
    }
}

/* Print Styles */
@media print {
    .tag-breadcrumb,
    .tag-sidebar,
    .content-controls,
    .action-batan,
    .image-overlay {
        display: none;
    }
    
    .tag-page-layout {
        grid-template-columns: 1fr;
    }
    
    .tag-page-header {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .content-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
.tag-rank-number {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    line-height: 1;
    min-width: 40px;
    text-align: center;
}