/* ========================================
   YORUM SİSTEMİ - MODERN TASARIM
   ======================================== */

.wvp-comments-container {
    max-width: 100%;
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    margin: 40px 0;
    overflow: visible !important;
    /* KRİTİK DEĞİŞİKLİK */
    z-index: 10;
}

/* Header Bölümü */
/* Header Bölümü */
.wvp-comments-header {
    background: linear-gradient(135deg, #394EFF, #5865F2);
    color: white;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    gap: 20px;
    border-radius: 16px 16px 0 0;
    z-index: 20;
}

.wvp-header-left h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white !important;
}

.wvp-header-left p {
    opacity: 0.9;
    font-size: 15px;
    font-weight: 300;
    margin: 0;
    color: rgba(255, 255, 255, 0.9) !important;
}

.wvp-rating-summary {
    background: rgba(255, 255, 255, 0.15);
    padding: 16px 24px;
    border-radius: 12px;
    text-align: center;
    min-width: 140px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.wvp-average-rating {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    color: white !important;
}

.wvp-stars {
    color: #FFD700;
    font-size: 16px;
    margin-bottom: 8px;
    display: flex;
    gap: 4px;
    justify-content: center;
}

.wvp-stars i {
    width: 16px;
    height: 16px;
}

.wvp-rating-summary small {
    opacity: 0.9;
    font-size: 13px;
    color: white;
    display: block;
}

/* Yorum Ekle Butonu - ÖNEMLİ! */
/* Yorum Ekle Butonu - Zırhlı Versiyon */
.wvp-add-comment-btn {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: #1a1a19 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 28px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3) !important;
    transition: all 0.3s ease !important;
    z-index: 9999 !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
    margin: 0 !important;
    height: auto !important;
    line-height: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
}



.wvp-add-comment-btn:hover {
    background: #2a2a28 !important;
}



.wvp-add-comment-btn i {
    font-size: 16px;
}

/* Yorumlar Scroll Box */
.wvp-comments-scroll-box {
    max-height: 500px;
    overflow-y: auto;
    padding: 50px 30px 30px;
    scrollbar-width: thin;
    scrollbar-color: #5865F2 #f1f1f1;
    position: relative;
    z-index: 10;
    border-radius: 0 0 16px 16px;
    /* Alt köşeler */
}

.wvp-comments-scroll-box::-webkit-scrollbar {
    width: 8px;
}

.wvp-comments-scroll-box::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.wvp-comments-scroll-box::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #cbfe1c 0%, #5865F2 100%);
    border-radius: 10px;
}

/* Yorum Yok */
.wvp-no-comments {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.wvp-no-comments i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
    color: #6c757d;
}

.wvp-no-comments h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #495057;
    font-weight: 600;
}

.wvp-no-comments p {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
}

/* Yorum Kartı */
.wvp-comment-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.wvp-comment-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wvp-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.wvp-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wvp-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4da6ff, #0066cc);
    /* Mavi - Varsayılan (Tek) */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.wvp-avatar img {
    width: 32px;
    height: 32px;
    align-items: center !important;
    margin-left: 5px;
    margin-bottom: 1px;
    object-fit: contain;
}

/* Çift sıradakiler için Yeşil Arka Plan */
.wvp-comment-card:nth-child(even) .wvp-avatar {
    background: linear-gradient(135deg, #8cd916, #4d8000);
}

.wvp-user-details h3 {
    font-size: 17px;
    margin: 0 0 4px 0;
    color: #212529;
    font-weight: 600;
}

.wvp-comment-date {
    color: #6c757d;
    font-size: 14px;
}

.wvp-user-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #FFD700;
    font-size: 16px;
}

.wvp-comment-text {
    line-height: 1.6;
    color: #2e3237;
    margin-bottom: 15px;
    font-size: 19px;
}

.wvp-comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f1f3f5;
}

.wvp-badges-container {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* ============================================
   BADGE TASARIMLARI - KREATİF & MODERN
   - Box-shadow YOK
   - Border-radius YOK (Düz kenarlar)
   - Hover efekti YOK
   - Her rol için özel renk
   ============================================ */

.wvp-verified-badge,
.wvp-role-badge {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
    position: relative;
}

.wvp-role-badge {
    /* Varsayılan (Guest/Üye) - Gri Tonları */
    background: linear-gradient(90deg, #6B7280 0%, #4B5563 100%);
    color: #F3F4F6;
}

/* ============================================
   ADMİNİSTRATOR - Kırmızı & Siyah (Güçlü & Otorite)
   ============================================ */
.wvp-role-badge.role-administrator {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 50%, #000000 100%);
    color: #FFFFFF;
    border: 3px solid #FF0000;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* İkon ekle */
.wvp-role-badge.role-administrator::before {
    content: "👑";
    margin-right: 4px;
    filter: drop-shadow(0 0 3px rgba(255, 0, 0, 0.8));
}

/* ============================================
   VIP ÜYE - Neon Yeşil → Siyah (Premium)
   ============================================ */
.wvp-role-badge.role-vip_member,
.wvp-role-badge.role-vip_user {
    background: linear-gradient(135deg, #CBFE1C 0%, #000000 100%);
    color: #CBFE1C;
    border: 2px solid #CBFE1C;
    font-weight: 900;
    text-shadow: 0 0 4px rgba(203, 254, 28, 0.5);
}

.wvp-role-badge.role-vip_member::before,
.wvp-role-badge.role-vip_user::before {
    content: "⭐";
    margin-right: 4px;
    filter: drop-shadow(0 0 3px rgba(203, 254, 28, 0.8));
}

/* ============================================
   WEB TASARIMCI - Siyah & Neon Yeşil
   ============================================ */
.wvp-role-badge.role-css_js_designer {
    background: #000000;
    color: #00FF00;
    border: 2px solid #00FF00;
    font-weight: 900;
}

.wvp-role-badge.role-css_js_designer::before {
    content: "💻";
    margin-right: 4px;
}

/* ============================================
   MAĞAZA YÖNETİCİSİ - Koyu Mavi (Professional)
   ============================================ */
.wvp-role-badge.role-shop_manager {
    background: linear-gradient(90deg, #1E3A8A 0%, #1E40AF 100%);
    color: #FFFFFF;
    border: 2px solid #3B82F6;
    font-weight: 800;
}

.wvp-role-badge.role-shop_manager::before {
    content: "🏪";
    margin-right: 4px;
}

/* ============================================
   MÜŞTERİ - Turkuaz & Yeşil (Fresh)
   ============================================ */
.wvp-role-badge.role-customer {
    background: linear-gradient(90deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    border: 2px solid #34D399;
    font-weight: 800;
}

.wvp-role-badge.role-customer::before {
    content: "🛒";
    margin-right: 4px;
}

/* ============================================
   TRANSLATOR - Turuncu (Energetic)
   ============================================ */
.wvp-role-badge.role-translator {
    background: linear-gradient(90deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF;
    border: 2px solid #FBBF24;
    font-weight: 800;
}

.wvp-role-badge.role-translator::before {
    content: "🌍";
    margin-right: 4px;
}

/* ============================================
   EDITÖR - İndigo (Creative)
   ============================================ */
.wvp-role-badge.role-editor {
    background: linear-gradient(90deg, #6366F1 0%, #4F46E5 100%);
    color: #FFFFFF;
    border: 2px solid #818CF8;
    font-weight: 800;
}

.wvp-role-badge.role-editor::before {
    content: "✏️";
    margin-right: 4px;
}

/* ============================================
   YAZAR - Mor (Artistic)
   ============================================ */
.wvp-role-badge.role-author {
    background: linear-gradient(90deg, #8B5CF6 0%, #7C3AED 100%);
    color: #FFFFFF;
    border: 2px solid #A78BFA;
    font-weight: 800;
}

.wvp-role-badge.role-author::before {
    content: "📝";
    margin-right: 4px;
}

/* ============================================
   ABONE (Subscriber) - Mavi (Standard)
   ============================================ */
.wvp-role-badge.role-subscriber {
    background: linear-gradient(90deg, #3B82F6 0%, #2563EB 100%);
    color: #FFFFFF;
    border: 2px solid #60A5FA;
    font-weight: 800;
}

.wvp-role-badge.role-subscriber::before {
    content: "👤";
    margin-right: 4px;
}

/* ============================================
   KATILIMCI (Contributor) - Gri-Mavi
   ============================================ */
.wvp-role-badge.role-contributor {
    background: linear-gradient(90deg, #64748B 0%, #475569 100%);
    color: #FFFFFF;
    border: 2px solid #94A3B8;
    font-weight: 800;
}

.wvp-role-badge.role-contributor::before {
    content: "🤝";
    margin-right: 4px;
}


.wvp-helpful-buttons {
    display: flex;
    gap: 10px;
}

.wvp-helpful-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #495057;
}

.wvp-helpful-btn:hover {
    background: #e9ecef;
}

.wvp-helpful-btn.active {
    background: #e7f5ff;
    border-color: #4dabf7;
    color: #0c8599;
}

/* Daha Fazla Yükle */
.wvp-load-more-btn {
    width: 100%;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    margin-top: 10px;
    color: #495057;
}

.wvp-load-more-btn:hover {
    background: #e9ecef;
}

/* ========================================
   POPUP MODAL
   ======================================== */

.wvp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.wvp-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wvp-popup-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.wvp-popup-overlay.active .wvp-popup-content {
    transform: translateY(0);
}

.wvp-popup-content::-webkit-scrollbar {
    width: 8px;
}

.wvp-popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.wvp-popup-content::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

/* Popup Header Row */
.wvp-popup-header-row {
    background: linear-gradient(135deg, #394EFF, #5865F2);
    padding: 20px 30px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wvp-popup-header-row h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: white !important;
    background: none;
    padding: 0;
}

.wvp-popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}

.wvp-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: rotate(90deg);
}

.wvp-popup-content>p {
    color: #6c757d;
    margin: 0;
    padding: 0 30px 20px;
}

/* Form */
.wvp-review-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    padding-top: 0;
}

.wvp-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wvp-form-group label {
    font-weight: 600;
    color: #212529;
    font-size: 15px;
}

.wvp-form-group input,
.wvp-form-group textarea {
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.wvp-form-group input:focus,
.wvp-form-group textarea:focus {
    outline: none;
    border-color: #5865F2;
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
}

.wvp-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Yıldız Rating */
.wvp-star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
    font-size: 28px;
}

.wvp-star-rating input {
    display: none;
}

.wvp-star-rating label {
    cursor: pointer;
    color: #dee2e6;
    transition: all 0.2s ease;
}

.wvp-star-rating label:hover,
.wvp-star-rating label:hover~label,
.wvp-star-rating input:checked~label {
    color: #FFD700;
}

/* Submit Button */
.wvp-submit-btn {
    background: linear-gradient(135deg, #cbfe1c 0%, #000 100%) !important;
    color: #fff !important;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.6s ease, transform 0.3s ease, opacity 0.3s ease;
}

.wvp-submit-btn:hover {
    background: linear-gradient(135deg, #000 0%, #cbfe1c 100%) !important;
    color: #fff !important;
    opacity: 0.95;
    transform: translateY(-1px);
}


/* ========================================
   RESPONSİVE
   ======================================== */

@media (max-width: 768px) {
    .wvp-comments-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .wvp-header-left h2 {
        font-size: 24px;
    }

    .wvp-rating-summary {
        width: 100%;
        padding: 12px 20px;
    }

    .wvp-average-rating {
        font-size: 36px;
    }

    .wvp-add-comment-btn {
        bottom: -20px;
        padding: 10px 24px;
        font-size: 14px;
    }

    .wvp-comments-scroll-box {
        padding: 50px 20px 20px;
        max-height: 450px;
    }

    .wvp-comment-card {
        padding: 20px;
    }

    .wvp-comment-header {
        flex-direction: column;
        gap: 12px;
    }

    .wvp-user-rating {
        align-self: flex-start;
    }

    .wvp-comment-footer {
        /*flex-direction: column;*/
        gap: 12px;
        align-items: flex-start;
    }

    .wvp-helpful-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .wvp-review-form {
        padding: 20px;
    }

    .wvp-star-rating {
        font-size: 24px;
    }
}