/* New Rating Card Design - Centered */
.post-rating-card-new {
    margin-top: 40px;
    background: white;
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.rating-title {
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.rating-title .fa-duotone {
    font-size: 32px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-stars-interactive {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

.rating-star {
    font-size: 52px;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rating-star:hover,
.rating-star.active {
    color: var(--color-primary);
    transform: scale(1.15);
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: center;
    margin-bottom: 40px;
    padding: 24px;
    background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-white) 100%);
    border-radius: 16px;
}

.rating-score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
    background: white;
}

.rating-score-circle .fa-duotone {
    font-size: 24px;
    color: var(--color-primary);
}

.score-number {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.rating-info {
    text-align: right;
}

.rating-label {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
}

.rating-count {
    display: block;
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-label {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    min-width: 20px;
}

.bar-container {
    flex: 1;
    height: 12px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.bar-percentage {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    min-width: 60px;
    text-align: left;
}

/* Post Navigation */
.post-navigation-wrapper {
    margin-top: 40px;
    margin-bottom: 50px;
}

.post-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.post-nav-item {
    position: relative;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px 28px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
    min-height: 130px;
}

.post-nav-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(var(--color-primary-rgb), 0.2);
}

.nav-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.5;
    text-align: right;
}

.nav-icon {
    position: absolute;
    font-size: 60px;
    opacity: 0.08;
    transition: all 0.3s;
}

.next-post .nav-icon {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.prev-post .nav-icon {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.post-nav-item:hover .nav-icon {
    opacity: 0.15;
}

/* Related Posts Archive Style */
.related-posts-section .fakhama-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.related-posts-section .fakhama-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 40px rgba(var(--color-primary-rgb), 0.18);
}

.related-posts-section .card-thumb {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.related-posts-section .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.related-posts-section .fakhama-card:hover .card-thumb img {
    transform: scale(1.1);
}

.related-posts-section .card-date-floating {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 12px 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.related-posts-section .card-date-floating .day {
    display: block;
    font-size: 24px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.related-posts-section .card-date-floating .month {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    margin-top: 4px;
}

.related-posts-section .card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(67, 233, 123, 0.4);
}

.related-posts-section .card-body {
    padding: 28px;
}

.related-posts-section .card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.related-posts-section .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.related-posts-section .card-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 12px;
}

.related-posts-section .card-title a {
    color: #1e293b;
    text-decoration: none;
}

.related-posts-section .fakhama-card:hover .card-title a {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.related-posts-section .card-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 20px;
}

.related-posts-section .card-footer {
    display: flex;
}

.related-posts-section .card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

@media(max-width: 768px) {
    .post-rating-card-new {
        grid-template-columns: 1fr;
    }

    .post-nav-grid {
        grid-template-columns: 1fr;
    }

    .rating-summary {
        flex-direction: column;
    }

    .rating-stars-interactive {
        gap: 12px;
    }

    .rating-star {
        font-size: 44px;
    }
}

/* Rating Toast Notification */
.rating-toast {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 20px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(var(--color-primary-rgb), 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 9999;
}

.rating-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.rating-toast i {
    font-size: 24px;
}

.rating-toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.rating-toast-success {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

/* Related Posts Section Title with Icon */
.related-posts-section .section-title {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.related-posts-section .section-title .fa-duotone {
    font-size: 36px;
    color: var(--color-primary);
    -webkit-text-fill-color: var(--color-primary);
    --fa-primary-color: var(--color-primary);
    --fa-secondary-color: var(--color-secondary);
    --fa-secondary-opacity: 0.6;
}


/* Premium Share Buttons - Horizontal Layout with Names */
.post-share {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.post-share strong {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.share-btn i {
    font-size: 20px;
}

.share-btn span {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
}