/* Single Post Metadata Modern Styles */

.article-metadata {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.article-metadata:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.meta-row {
    display: flex;
    align-items: flex-start;
    /* Align top for multi-line badges */
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.meta-label {
    font-weight: 700;
    color: #333;
    min-width: 100px;
    /* Fixed width for labels */
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    font-size: 14px;
}

.meta-label i {
    margin-right: 8px;
    color: #555;
    width: 16px;
    text-align: center;
}

.meta-value {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

/* --- Modern Badges --- */
.badge-modern {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    /* Pill shape */
    color: white !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.badge-modern:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Shine Effect */
.badge-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: all 0.5s;
}

.badge-modern:hover::after {
    left: 150%;
    transition: all 0.5s;
}

/* --- Variants --- */

/* Kategori - Blue Gradient */
.badge-modern-category {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
}

/* Tags - Dark/Gray Gradient */
.badge-modern-tag {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
    border-radius: 4px;
    /* Slightly squarer for tags */
}

.badge-modern-tag::before {
    content: '#';
    margin-right: 2px;
    opacity: 0.7;
}

/* Label - Teal/Green Gradient */
.badge-modern-label {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* Penulis - Author Style */
.meta-author-link {
    font-weight: 700;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    background: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    display: inline-flex;
    align-items: center;
}

.meta-author-link:hover {
    color: #0072ff;
    border-color: #0072ff;
    background: #f0f8ff;
}

/* Daerah & Biro Links */
.meta-location-link {
    color: #e65100;
    /* Orange */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.meta-location-link:hover {
    color: #ff6d00;
    border-bottom-color: #ff6d00;
}

.meta-biro-link {
    color: #6a1b9a;
    /* Purple */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.meta-biro-link:hover {
    color: #8e24aa;
    border-bottom-color: #8e24aa;
}

/* Single Post Metadata Modern Styles */

.article-metadata {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.article-metadata:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.meta-row {
    display: flex;
    align-items: flex-start;
    /* Align top for multi-line badges */
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.meta-label {
    font-weight: 700;
    color: #333;
    min-width: 100px;
    /* Fixed width for labels */
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    font-size: 14px;
}

.meta-label i {
    margin-right: 8px;
    color: #555;
    width: 16px;
    text-align: center;
}

.meta-value {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

/* --- Modern Badges --- */
.badge-modern {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    /* Pill shape */
    color: white !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.badge-modern:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Shine Effect */
.badge-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: all 0.5s;
}

.badge-modern:hover::after {
    left: 150%;
    transition: all 0.5s;
}

/* --- Variants --- */

/* Kategori - Blue Gradient */
.badge-modern-category {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
}

/* Tags - Dark/Gray Gradient */
.badge-modern-tag {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
    border-radius: 4px;
    /* Slightly squarer for tags */
}

.badge-modern-tag::before {
    content: '#';
    margin-right: 2px;
    opacity: 0.7;
}

/* Label - Teal/Green Gradient */
.badge-modern-label {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* Penulis - Author Style */
.meta-author-link {
    font-weight: 700;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    background: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    display: inline-flex;
    align-items: center;
}

.meta-author-link:hover {
    color: #0072ff;
    border-color: #0072ff;
    background: #f0f8ff;
}

/* Daerah & Biro Links */
.meta-location-link {
    color: #e65100;
    /* Orange */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.meta-location-link:hover {
    color: #ff6d00;
    border-bottom-color: #ff6d00;
}

.meta-biro-link {
    color: #6a1b9a;
    /* Purple */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.meta-biro-link:hover {
    color: #8e24aa;
    border-bottom-color: #8e24aa;
}

/* Responsive */
@media (max-width: 576px) {
    .meta-row {
        flex-direction: column;
    }

    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.meta-location-link:hover {
    color: #ff6d00;
    border-bottom-color: #ff6d00;
}

.meta-biro-link {
    color: #6a1b9a;
    /* Purple */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.meta-biro-link:hover {
    color: #8e24aa;
    border-bottom-color: #8e24aa;
}

/* Single Post Metadata Modern Styles */

.article-metadata {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.article-metadata:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.meta-row {
    display: flex;
    align-items: flex-start;
    /* Align top for multi-line badges */
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.meta-label {
    font-weight: 700;
    color: #333;
    min-width: 100px;
    /* Fixed width for labels */
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    font-size: 14px;
}

.meta-label i {
    margin-right: 8px;
    color: #555;
    width: 16px;
    text-align: center;
}

.meta-value {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

/* --- Modern Badges --- */
.badge-modern {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    /* Pill shape */
    color: white !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.badge-modern:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Shine Effect */
.badge-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: all 0.5s;
}

.badge-modern:hover::after {
    left: 150%;
    transition: all 0.5s;
}

/* --- Variants --- */

/* Kategori - Blue Gradient */
.badge-modern-category {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
}

/* Tags - Dark/Gray Gradient */
.badge-modern-tag {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
    border-radius: 4px;
    /* Slightly squarer for tags */
}

.badge-modern-tag::before {
    content: '#';
    margin-right: 2px;
    opacity: 0.7;
}

/* Label - Teal/Green Gradient */
.badge-modern-label {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* Penulis - Author Style */
.meta-author-link {
    font-weight: 700;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    background: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    display: inline-flex;
    align-items: center;
}

.meta-author-link:hover {
    color: #0072ff;
    border-color: #0072ff;
    background: #f0f8ff;
}

/* Daerah & Biro Links */
.meta-location-link {
    color: #e65100;
    /* Orange */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.meta-location-link:hover {
    color: #ff6d00;
    border-bottom-color: #ff6d00;
}

.meta-biro-link {
    color: #6a1b9a;
    /* Purple */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.meta-biro-link:hover {
    color: #8e24aa;
    border-bottom-color: #8e24aa;
}

/* Responsive */
@media (max-width: 576px) {
    .meta-row {
        flex-direction: column;
    }

    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.meta-location-link:hover {
    color: #ff6d00;
    border-bottom-color: #ff6d00;
}

.meta-biro-link {
    color: #6a1b9a;
    /* Purple */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.meta-biro-link:hover {
    color: #8e24aa;
    border-bottom-color: #8e24aa;
}

/* Single Post Metadata Modern Styles */

.article-metadata {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.article-metadata:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.meta-row {
    display: flex;
    align-items: flex-start;
    /* Align top for multi-line badges */
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.meta-label {
    font-weight: 700;
    color: #333;
    min-width: 100px;
    /* Fixed width for labels */
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    font-size: 14px;
}

.meta-label i {
    margin-right: 8px;
    color: #555;
    width: 16px;
    text-align: center;
}

.meta-value {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

/* --- Modern Badges --- */
.badge-modern {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    /* Pill shape */
    color: white !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.badge-modern:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Shine Effect */
.badge-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: all 0.5s;
}

.badge-modern:hover::after {
    left: 150%;
    transition: all 0.5s;
}

/* --- Variants --- */

/* Kategori - Blue Gradient */
.badge-modern-category {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
}

/* Tags - Dark/Gray Gradient */
.badge-modern-tag {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
    border-radius: 4px;
    /* Slightly squarer for tags */
}

.badge-modern-tag::before {
    content: '#';
    margin-right: 2px;
    opacity: 0.7;
}

/* Label - Teal/Green Gradient */
.badge-modern-label {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* Penulis - Author Style */
.meta-author-link {
    font-weight: 700;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    background: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    display: inline-flex;
    align-items: center;
}

.meta-author-link:hover {
    color: #0072ff;
    border-color: #0072ff;
    background: #f0f8ff;
}

/* Daerah & Biro Links */
.meta-location-link {
    color: #e65100;
    /* Orange */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.meta-location-link:hover {
    color: #ff6d00;
    border-bottom-color: #ff6d00;
}

.meta-biro-link {
    color: #6a1b9a;
    /* Purple */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.meta-biro-link:hover {
    color: #8e24aa;
    border-bottom-color: #8e24aa;
}

/* Responsive */
@media (max-width: 576px) {
    .meta-row {
        flex-direction: column;
    }

    .meta-label {
        margin-bottom: 5px;
    }
}

/* Engagement Stats Alignment - Card Style (Single Line Enforced) */
.engagement-stats {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Start alignment */
    flex-wrap: nowrap;
    /* Prevent wrapping */
    gap: 20px;
    margin-top: 20px;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* Ensure no overflow */
}

.stat-item {
    display: inline-flex;
    align-items: center;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    /* Keep text on one line */
}

.stat-item i {
    margin-right: 8px;
    color: #0056b3;
    font-size: 16px;
    flex-shrink: 0;
    /* Prevent icon shrinking */
}

.stat-number {
    font-weight: 700;
    color: #333;
    margin: 0 4px;
}

/* Responsive adjustments for very small screens */
@media (max-width: 400px) {
    .engagement-stats {
        gap: 10px;
        padding: 10px 15px;
    }

    .stat-item {
        font-size: 11px;
        /* Smaller font */
    }

    .stat-item i {
        font-size: 13px;
        margin-right: 5px;
    }
}