/* =========================================
   MU-KA Features CSS
   Security Badges, Compare, Reviews, Notifications
   ========================================= */

/* ---- Footer Security Badges ---- */
.site-footer-security {
    padding: 1rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.security-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #63b392;
    background: rgba(99, 179, 146, 0.08);
    padding: 0.4rem 0.9rem;
    border-radius: 2rem;
    border: 1px solid rgba(99, 179, 146, 0.15);
}

/* ---- Checkout Security Section ---- */
.checkout-security {
    background: linear-gradient(135deg, rgba(99,179,146,0.05), rgba(99,179,146,0.02));
    border: 1px solid rgba(99,179,146,0.15);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.checkout-security-title {
    font-size: 1rem;
    font-weight: 700;
    color: #63b392;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkout-security-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.checkout-security-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #b0b0c0;
}

.checkout-security-item .icon {
    font-size: 1.1rem;
}

/* ---- Compare Nav Link ---- */
.compare-nav-link {
    position: relative;
}

#compareCount {
    font-weight: 700;
}

/* ---- Compare Page ---- */
.compare-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.compare-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.compare-empty h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.compare-empty p {
    color: #8a8a9a;
    margin-bottom: 1.5rem;
}

.compare-table-wrapper {
    overflow-x: auto;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    vertical-align: top;
}

.compare-table th {
    background: rgba(255,255,255,0.04);
    font-weight: 600;
    color: #b0b0c0;
    white-space: nowrap;
    width: 140px;
}

.compare-table td {
    min-width: 200px;
}

.compare-product-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.compare-product-name {
    font-weight: 600;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.compare-product-price {
    font-weight: 700;
    color: #63b392;
    font-size: 1.1rem;
}

.compare-stock-available {
    color: #63b392;
    font-weight: 500;
}

.compare-stock-unavailable {
    color: #e57373;
    font-weight: 500;
}

.compare-remove-btn {
    background: rgba(229, 115, 115, 0.1);
    color: #e57373;
    border: 1px solid rgba(229, 115, 115, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.compare-remove-btn:hover {
    background: rgba(229, 115, 115, 0.2);
}

/* Compare button on product cards */
.compare-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #b0b0c0;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.compare-btn:hover,
.compare-btn.active {
    background: rgba(99,179,146,0.15);
    border-color: rgba(99,179,146,0.3);
    color: #63b392;
}

/* ---- Reviews Section ---- */
.reviews-section {
    margin-top: 2rem;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: rgba(255,255,255,0.04);
    border-radius: 1rem;
}

.reviews-avg-rating {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fbbf24;
}

.reviews-avg-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reviews-stars {
    color: #fbbf24;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.reviews-count {
    color: #8a8a9a;
    font-size: 0.85rem;
}

.review-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.review-author {
    font-weight: 600;
    font-size: 0.95rem;
}

.review-date {
    font-size: 0.8rem;
    color: #8a8a9a;
}

.review-rating {
    color: #fbbf24;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.review-comment {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #d0d0d0;
}

.review-images {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.review-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Review Form */
.review-form {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.star-rating-input {
    display: flex;
    gap: 0.25rem;
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    font-size: 1.8rem;
    color: #3a3a50;
    transition: color 0.15s;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: #fbbf24;
}

/* ---- Notification Center ---- */
.notification-panel {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.notification-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.notification-panel-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

.notification-badge {
    background: #e57373;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    min-width: 20px;
    text-align: center;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.notification-message {
    font-size: 0.82rem;
    color: #8a8a9a;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

.notification-unread {
    background: rgba(99, 179, 146, 0.05);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.notification-empty {
    text-align: center;
    color: #8a8a9a;
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .checkout-security-items {
        grid-template-columns: 1fr;
    }

    .security-badges {
        gap: 0.75rem;
    }

    .compare-table {
        font-size: 0.82rem;
    }

    .compare-table th,
    .compare-table td {
        padding: 0.75rem;
    }

    .reviews-summary {
        flex-direction: column;
        text-align: center;
    }
}
