/*
═══════════════════════════════════════════════════════════════

MODULE

Review Single Popup

STEP

03

GOAL

Style the Review Single Popup.

FILE

inc/reviews/components/review-single-popup/review-single-popup.css

DESCRIPTION

Styles for the single review popup.

RESPONSIBILITY

✔ Overlay

✔ Popup

✔ Header

✔ Body

✔ Footer

DEPENDENCIES

review-single-popup-template.php

═══════════════════════════════════════════════════════════════
*/

.dm-review-single-popup-overlay {
    display: none;
}

.dm-review-single-popup-overlay.active {
    display: flex;

    align-items: center;

    justify-content: center;

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    z-index: 999999;
}

/* ==========================================================
   Single Review Popup
========================================================== */

.dm-review-single-popup {
    width: 480px;

    max-width: 92vw;

    background: #18233e;

    color: #ffffff;

    border-radius: 22px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.05);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* ==========================================================
   Review Attributes
========================================================== */

.dm-review-single-popup-attributes {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 14px;

    margin-top: 22px;

    margin-bottom: 22px;

    padding-bottom: 20px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dm-review-attribute {
    display: flex;

    align-items: center;

    padding: 8px 18px;

    border-radius: 999px;

    background: rgba(139, 92, 246, 0.12);

    border: 1px solid rgba(139, 92, 246, 0.35);

    color: #c4b5fd;

    font-size: 13px;

    font-weight: 600;

    line-height: 1;
}

#dm-review-single-popup-content {
    margin-top: 18px;

    margin-bottom: 18px;

    color: #ffffff;

    font-size: 15px;

    line-height: 1.7;

    white-space: pre-wrap;

    overflow-wrap: anywhere;
}

/* ==========================================================
   Rating
========================================================== */

.dm-review-popup-rating-wrap {
    display: flex;

    justify-content: center;

    padding: 24px 0 18px;
}

#dm-review-single-popup-rating {
    font-size: 34px;

    letter-spacing: 6px;

    color: #f5b301;

    line-height: 1;
}

/* ==========================================================
   Header
========================================================== */

.dm-popup-header {
    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;
}

.dm-popup-close {
    position: absolute;

    top: 18px;

    right: 18px;

    width: 34px;

    height: 34px;

    border: none;

    background: none;

    color: #a5b4d6;

    font-size: 22px;

    cursor: pointer;

    transition: 0.25s;
}

.dm-popup-close:hover {
    color: #ffffff;

    transform: rotate(90deg);
}

/* ==========================================================
   Author
========================================================== */

#dm-review-single-popup-author {
    margin-top: 0;

    font-size: 22px;

    font-weight: 700;

    letter-spacing: 0.2px;
}

.dm-review-verified {
    margin: 4px 0 4px;

    color: #66d28f;

    font-size: 13px;

    font-weight: 500;
}

/* ==========================================================
   Date
========================================================== */

#dm-review-single-popup-date {
    margin-top: 6px;

    color: #93a4c3;

    font-size: 13px;

    font-weight: 500;
}

/* ==========================================================
   Content
========================================================== */

#dm-review-single-popup-content {
    margin-top: 18px;

    color: #ffffff;

    font-size: 15px;

    line-height: 1.7;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Veya senin tasarımına uygun renk/opaklık */
    padding-top: 16px; /* Çizgi ile metin arasında boşluk bırakmak için */
    margin-top: 16px; /* Üstündeki elemanla mesafe bırakmak için */
}

/* ==========================================================
   Footer Actions
========================================================== */

.dm-review-single-popup-footer-actions {
    margin-top: 12px;

    padding-top: 12px;

    padding-bottom: 0;

    color: #ffffff;

    font-size: 15px;
}

/* ==========================================================
   Body
========================================================== */

.dm-popup-body {
    padding: 28px 34px 0;
}

/* ==========================================================
   Meta
========================================================== */

.dm-review-meta {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 1px;

    margin-bottom: 10px;
}

#dm-review-single-popup-verified {
    color: #66d28f;

    font-size: 13px;

    font-weight: 600;
}

/* ==========================================================
   Photos
========================================================== */

.dm-review-single-popup-photos {
    margin-top: 24px;
}

.dm-review-photos-title {
    margin-bottom: 14px;

    color: #ffffff;

    font-size: 15px;

    font-weight: 600;
}

.dm-review-photos-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;
}

/* ==========================================================
   Photo Thumbnail
========================================================== */

.dm-review-photo {
    aspect-ratio: 1;

    border-radius: 12px;

    background: #243150;

    border: 1px solid rgba(255, 255, 255, 0.08);

    display: flex;

    align-items: center;

    justify-content: center;

    color: #8fa2c8;

    font-size: 13px;

    cursor: pointer;

    transition: 0.25s;
}

.dm-review-photo:hover {
    border-color: #7c5cff;

    transform: translateY(-2px);
}

.dm-review-photo-image {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    border-radius: 12px;

    transition: 0.25s;
}

.dm-review-photo:hover .dm-review-photo-image {
    transform: scale(1.06);
}

.dm-review-photo-more {
    position: relative;

    overflow: hidden;
}

.dm-review-photo-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(10, 15, 30, 0.55);

    backdrop-filter: blur(3px);

    color: #ffffff;

    font-size: 34px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);

    border-radius: 12px;

    transition: 0.25s;
}

.dm-review-photo-more:hover .dm-review-photo-overlay {
    background: rgba(10, 15, 30, 0.45);

    backdrop-filter: blur(6px);
}

/* ==========================================================
   User
========================================================== */

.dm-review-user {
    display: flex;

    flex-direction: column;

    align-items: center;

    margin-top: 2px;
}

/* ==========================================================
   Avatar
========================================================== */

.dm-review-avatar {
    width: 56px;

    height: 56px;

    border-radius: 50%;

    background: #8b5cf6;

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 24px;

    font-weight: 700;

    margin-bottom: 18px;

    user-select: none;
}

/* ==========================================================
   Seller Reply
========================================================== */

.dm-review-single-popup-reply {
    margin-top: 18px;

    padding-top: 18px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dm-review-reply-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 14px;
}

.dm-review-reply-title {
    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 15px;

    font-weight: 700;

    color: #ffffff;
}

.dm-review-reply-author {
    font-size: 14px;

    font-weight: 600;

    color: #bfa7ff;
}

.dm-review-reply-content {
    color: #d8dcea;

    font-size: 14px;

    line-height: 1.7;
}

/* ==========================================================
   Popup Actions
========================================================== */

.dm-popup-actions {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 12px;

    margin-top: 8px;
}

.dm-popup-action {
    display: flex;

    align-items: center;

    gap: 6px;

    padding: 6px 12px;

    border-radius: 999px;

    background: rgba(139, 92, 246, 0.1);

    border: 1px solid rgba(139, 92, 246, 0.35);

    color: #e8dfff;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.25s;

    white-space: nowrap;

    width: auto;

    flex: none;
}

.dm-popup-action:hover {
    background: rgba(139, 92, 246, 0.22);

    border-color: #8b5cf6;

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.25);
}

/* ==========================================================
   Footer Layout
========================================================== */

.dm-popup-footer {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: -10px;
}

.dm-popup-footer-left {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    flex: 1;
}

.dm-popup-footer-right {
    margin-left: auto;

    display: flex;

    gap: 10px;
}

.dm-popup-footer-divider {
    width: 1px;

    height: 26px;

    background: rgba(139, 92, 246, 0.45);

    box-shadow: 0 0 8px rgba(139, 92, 246, 0.45);

    margin: 0 7px;
}


/* ===== single review popup v2 ===== */
#dm-review-single-popup-overlay .dm-review-single-popup{width:min(560px,94vw);max-height:88vh;display:flex;flex-direction:column;overflow:hidden;background:#111827;border:1px solid #243247;border-radius:20px;box-shadow:0 30px 80px rgba(0,0,0,.55);padding:0;text-align:left}
#dm-review-single-popup-overlay .dm-popup-header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid #1e293b;background:linear-gradient(180deg,rgba(124,58,237,.10),rgba(17,24,39,0))}
#dm-review-single-popup-overlay .dm-review-user{display:flex;flex-direction:row;align-items:center;flex:1 1 auto;gap:14px;min-width:0;margin:0;padding:0;border:0;background:none}
#dm-review-single-popup-overlay .dm-review-avatar{width:46px;height:46px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:linear-gradient(135deg,#8b5cf6,#7c3aed);color:#fff;font-size:19px;font-weight:700;margin:0}
#dm-review-single-popup-overlay #dm-review-single-popup-avatar{flex:0 0 46px;margin:0}
#dm-review-single-popup-overlay .dm-popup-who{display:flex;flex-direction:column;gap:3px;min-width:0}
#dm-review-single-popup-overlay #dm-review-single-popup-author{margin:0;padding:0;border:0;color:#f1f5f9;font-size:17px;font-weight:700;line-height:1.2;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dm-review-single-popup-overlay .dm-review-meta{display:flex;align-items:center;gap:8px;margin:0;padding:0;font-size:12.5px;color:#64748b}
#dm-review-single-popup-overlay .dm-popup-badge--verified{color:#10b981;font-weight:600}
#dm-review-single-popup-overlay .dm-popup-badge--demo{color:#f59e0b;font-weight:600}
#dm-review-single-popup-overlay .dm-popup-badge--banned{color:#f87171;font-weight:600}
#dm-review-single-popup-overlay #dm-review-single-popup-date{margin:0;color:#64748b}
#dm-review-single-popup-overlay .dm-popup-close{position:static;flex:0 0 36px;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:#1f2937;color:#cbd5e1;font-size:20px;line-height:1;cursor:pointer;transition:background .2s,color .2s}
#dm-review-single-popup-overlay .dm-popup-close:hover{background:#7c3aed;color:#fff}
#dm-review-single-popup-overlay .dm-popup-body{flex:1 1 auto;min-height:0;overflow-y:auto;padding:20px 24px 24px;display:flex;flex-direction:column;gap:18px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#334155 transparent}
#dm-review-single-popup-overlay .dm-review-popup-rating-wrap{margin:0;padding:0;border:0;text-align:left}
#dm-review-single-popup-overlay #dm-review-single-popup-rating{margin:0;color:#f5b301;font-size:24px;letter-spacing:3px;line-height:1;text-align:left}
#dm-review-single-popup-overlay #dm-review-single-popup-content{margin:0;padding:0;border:0;color:#e2e8f0;font-size:15.5px;line-height:1.75;text-align:left;overflow-wrap:anywhere;white-space:pre-line}
#dm-review-single-popup-overlay .dm-review-single-popup-attributes{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;margin:0;padding:0}
#dm-review-single-popup-overlay .dm-review-attribute{padding:6px 13px;border-radius:999px;background:rgba(124,58,237,.14);border:1px solid rgba(124,58,237,.35);color:#c4b5fd;font-size:12.5px;font-weight:600;margin:0}
#dm-review-single-popup-overlay .dm-review-single-popup-photos{margin:0;padding:16px 0 0;border-top:1px solid #1e293b}
#dm-review-single-popup-overlay .dm-review-photos-title{margin:0 0 12px;color:#94a3b8;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;text-align:left}
#dm-review-single-popup-overlay .dm-review-photos-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px}
#dm-review-single-popup-overlay .dm-review-photo{aspect-ratio:1/1;border-radius:12px;overflow:hidden;border:1px solid #243247;background:#0b1222;cursor:zoom-in;transition:border-color .2s,transform .2s}
#dm-review-single-popup-overlay .dm-review-photo:hover{border-color:#7c3aed;transform:translateY(-2px)}
#dm-review-single-popup-overlay .dm-review-photo img{width:100%;height:100%;object-fit:cover;display:block}
#dm-review-single-popup-overlay .dm-review-single-popup-helpful{margin:0;padding:16px 0 0;border-top:1px solid #1e293b}
#dm-review-single-popup-overlay .dm-popup-footer{margin:0;padding:0;border:0;background:none;display:block}
#dm-review-single-popup-overlay .dm-popup-footer-left{display:flex;gap:10px;margin:0;justify-content:flex-start}
#dm-review-single-popup-overlay .dm-helpful-button,#dm-review-single-popup-overlay .dm-not-helpful-button{flex:0 0 auto;width:auto;min-width:0;display:inline-flex;align-items:center;gap:10px;padding:8px 16px;border:1px solid #2a3850;border-radius:999px;background:#0f172a;color:#cbd5e1;font-size:13px;font-weight:600;cursor:pointer;transition:border-color .2s,background .2s,color .2s}
#dm-review-single-popup-overlay .dm-helpful-button:hover{border-color:#10b981;color:#6ee7b7}
#dm-review-single-popup-overlay .dm-not-helpful-button:hover{border-color:#f87171;color:#fca5a5}
#dm-review-single-popup-overlay .dm-helpful-count{min-width:22px;padding:1px 8px;border-radius:999px;background:rgba(124,58,237,.18);color:#c4b5fd;font-size:12px;font-weight:700;text-align:center}
@media (max-width:600px){#dm-review-single-popup-overlay .dm-popup-header{padding:16px}#dm-review-single-popup-overlay .dm-popup-body{padding:16px}}
#dm-review-single-popup-overlay .dm-review-popup-rating-wrap{display:flex;justify-content:flex-start;align-items:center}
