/* 
==============================
   Post-Related Styles - Enhanced
   Following Codimate Solutions Design System
============================== 
*/

:root {
    --primary-color: #5d0dcd;
    --primary-light: #9b59b6;
    --primary-dark: #4a0aa8;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --background-light: #f8f9fa;
    --border-color: #e9ecef;
    --shadow-light: 0 8px 25px rgba(0,0,0,0.06);
    --shadow-medium: 0 15px 35px rgba(0,0,0,0.1);
    --border-radius: 18px;
    --border-radius-small: 12px;
    --transition: all 0.3s ease;
}

/* 
==============================
   Enhanced Tag Page Styles
============================== 
*/

.tag-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.tag-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.tag-hero .container {
    position: relative;
    z-index: 2;
}

.tag-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.tag-content {
    max-width: 600px;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(15px);
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tag-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 25px 0;
    line-height: 1.2;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tag-description {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 35px;
    opacity: 0.95;
}

.tag-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-search {
    margin-top: 35px;
}

.search-form {
    max-width: 500px;
}

.search-container {
    position: relative;
    display: flex;
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 6px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    color: white;
    outline: none;
    font-weight: 500;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.search-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Enhanced Tag Visual Element */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tag-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.tag-icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tag-icon-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
}

.tag-icon-circle:hover {
    transform: scale(1.05) rotateY(180deg);
    box-shadow: 0 20px 45px rgba(0,0,0,0.3);
}

.pulse-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.pulse-ring {
    width: 140px;
    height: 140px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    position: absolute;
    animation: pulse 2s ease-out infinite;
}

.pulse-ring-delay {
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.tag-display {
    text-align: center;
}

.tag-chip {
    display: inline-block;
    padding: 15px 30px;
    background: rgba(255,255,255,0.2);
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* 
==============================
   Enhanced Category Page Styles
============================== 
*/

.category-hero {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.category-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(15px);
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.category-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 25px 0;
    line-height: 1.2;
}

.category-description {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 35px;
    opacity: 0.95;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

/* 
==============================
   Enhanced Posts Grid & Cards
============================== 
*/

.tag-layout,
.category-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    margin-top: 50px;
}

.posts-grid {
    display: grid;
    gap: 40px;
}

.post-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(93, 13, 205, 0.05);
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(93, 13, 205, 0.1);
}

.post-card:hover::before {
    transform: scaleX(1);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.post-type.badge {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(93, 13, 205, 0.25);
    position: relative;
    overflow: hidden;
}

.post-type.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.post-type.badge:hover::before {
    left: 100%;
}

.post-category {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 6px 12px;
    background: rgba(93, 13, 205, 0.08);
    border-radius: var(--border-radius-small);
    transition: var(--transition);
    border: 1px solid rgba(93, 13, 205, 0.1);
}

.post-category:hover {
    background: rgba(93, 13, 205, 0.15);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(93, 13, 205, 0.2);
}

.post-title {
    margin: 20px 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.post-title a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateX(3px);
}

.post-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 25px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(93, 13, 205, 0.1);
    gap: 15px;
}

.read-more-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(93, 13, 205, 0.3);
    position: relative;
    overflow: hidden;
}

.read-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 13, 205, 0.4);
    color: white;
}

.read-more-btn:hover::before {
    left: 100%;
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

.post-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    color: white;
    padding: 6px 14px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    color: white;
}

.tag:hover::before {
    opacity: 1;
}

/* 
==============================
   Enhanced Sidebar Styles
============================== 
*/

.tag-sidebar,
.category-sidebar,
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.sidebar-widget {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(93, 13, 205, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.sidebar-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
    border-color: rgba(93, 13, 205, 0.1);
}

.sidebar-widget:hover::before {
    transform: scaleX(1);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(93, 13, 205, 0.1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.widget-title i {
    color: var(--primary-color);
    font-size: 18px;
}

/* Enhanced Tag Info Widget */
.tag-info-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
    color: white;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.tag-info-widget::before {
    background: rgba(255,255,255,0.2);
}

.tag-info-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.tag-info-widget .widget-title::after {
    background: rgba(255,255,255,0.5);
}

.tag-info-widget .widget-title i {
    color: rgba(255,255,255,0.9);
}

.tag-display .tag-badge {
    font-size: 16px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 25px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.3);
    display: inline-block;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Enhanced Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud-item {
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.tag-cloud-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tag-cloud-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    color: white;
}

.tag-cloud-item:hover::before {
    opacity: 1;
}

/* Enhanced Recent Posts Widget */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(93, 13, 205, 0.1);
    transition: all 0.3s ease;
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-item:hover {
    background-color: rgba(93, 13, 205, 0.02);
    padding-left: 5px;
    border-radius: 8px;
}

.recent-post-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
    transition: var(--transition);
    display: block;
}

.recent-post-link:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.recent-post-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.recent-post-meta i {
    color: var(--primary-color);
}

/* Enhanced Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
    color: white;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.newsletter-widget::before {
    background: rgba(255,255,255,0.2);
}

.newsletter-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.newsletter-widget .widget-title::after {
    background: rgba(255,255,255,0.5);
}

.newsletter-widget .widget-title i {
    color: rgba(255,255,255,0.9);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-input {
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 14px;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.newsletter-input:focus {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
    outline: none;
}

.newsletter-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(15px);
}

.newsletter-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
}

/* 
==============================
   Enhanced Search Results
============================== 
*/

.search-info {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(93, 13, 205, 0.05);
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.search-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(93, 13, 205, 0.02));
    z-index: 1;
}

.search-info h3 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 22px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.search-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 16px;
    position: relative;
    z-index: 2;
}

.search-term {
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(93, 13, 205, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Enhanced No Posts State */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(93, 13, 205, 0.05);
}

.no-posts-icon {
    font-size: 72px;
    color: rgba(93, 13, 205, 0.3);
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.no-posts h3 {
    font-size: 28px;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.no-posts p {
    color: var(--text-light);
    font-size: 16px;
    max-width: 400px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* 
==============================
   Enhanced Pagination
============================== 
*/

.pagination-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    border: 1px solid rgba(93, 13, 205, 0.1);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pagination .page-link:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 13, 205, 0.3);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(93, 13, 205, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.5;
    background: #f8f9fa;
}

.pagination .page-item.disabled .page-link:hover {
    background: #f8f9fa;
    color: var(--text-muted);
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* 
==============================
   Enhanced CTA Section
============================== 
*/

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.cta-description {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 
==============================
   Enhanced Tag Page Specific Styles
============================== 
*/

/* Breadcrumb Navigation */
.breadcrumb-section {
    margin-bottom: 40px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb a:hover {
    color: white;
    transform: translateX(2px);
}

.breadcrumb .separator {
    color: rgba(255,255,255,0.6);
    margin: 0 5px;
}

.breadcrumb .current {
    color: white;
    font-weight: 600;
}

/* Enhanced Search Info */
.search-info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px 30px;
}

.search-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.search-content {
    flex: 1;
}

.search-content h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.tag-highlight {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Enhanced Tag Info Widget */
.tag-info-content {
    text-align: center;
}

.tag-display-large {
    margin: 20px 0;
}

.tag-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(15px);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.tag-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-box {
    text-align: center;
    padding: 15px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-box .stat-number {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-box .stat-label {
    font-size: 11px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Category List */
.category-info {
    flex: 1;
}

.category-name {
    display: block;
    font-weight: 600;
    margin-bottom: 3px;
}

.category-desc {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.3;
}

/* Enhanced Newsletter Widget */
.newsletter-content {
    text-align: center;
}

.newsletter-icon {
    margin: 0 auto 15px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.newsletter-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 12px;
    opacity: 0.8;
}

.newsletter-note i {
    font-size: 10px;
}

/* Enhanced Navigation Buttons */
.navigation-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(93, 13, 205, 0.1);
    font-weight: 500;
}

.nav-btn:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(93, 13, 205, 0.3);
}

.nav-btn i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Enhanced CTA Section */
.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-icon {
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    animation: float 3s ease-in-out infinite;
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0 40px;
    flex-wrap: wrap;
}

.cta-stat {
    text-align: center;
    padding: 15px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 120px;
}

.cta-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.cta-stat-label {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced No Posts State */
.no-posts-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Current Tag Highlight */
.tag-current {
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
}

.tag-current::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(255,255,255,0.5), transparent);
    border-radius: 17px;
    z-index: -1;
}

/* Enhanced Animation Delays */
.fade-in[style*="animation-delay"] {
    animation-fill-mode: both;
}

/* Enhanced Tag Cloud with Icons */
.tag-cloud-item i {
    margin-right: 4px;
    font-size: 10px;
}

/* Enhanced Responsive Improvements */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 13px;
        flex-wrap: wrap;
    }
    
    .search-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .tag-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .stat-box {
        padding: 10px;
    }
    
    .stat-box .stat-number {
        font-size: 18px;
    }
    
    .cta-stats {
        gap: 20px;
    }
    
    .cta-stat {
        min-width: 100px;
        padding: 12px 15px;
    }
    
    .cta-stat-number {
        font-size: 20px;
    }
    
    .no-posts-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .category-desc {
        display: none;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 12px;
    }
    
    .tag-badge-large {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .newsletter-content p {
        font-size: 14px;
    }
    
    .cta-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .cta-stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-stat {
        width: 100%;
        max-width: 200px;
    }
}

/* Enhanced Print Styles */
@media print {
    .breadcrumb-section,
    .hero-search,
    .hero-buttons,
    .search-info .btn,
    .newsletter-widget,
    .navigation-buttons,
    .cta-section {
        display: none !important;
    }
    
    .tag-hero {
        background: none !important;
        color: black !important;
        padding: 20px 0 !important;
    }
    
    .tag-title {
        color: black !important;
    }
    
    .tag-description {
        color: #666 !important;
    }
}