/* ═══════════════════════════════════
   بخش دیدگاه‌ها — Glassmorphism
   ═══════════════════════════════════ */

/* ──── بخش کلی ──── */
.gc-section {
    padding: 80px 0 90px;
    position: relative;
}

/* ──── عنوان بخش ──── */
.gc-section-head {
    text-align: center;
    margin-bottom: 50px;
}

.gc-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 100px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: var(--shadow);
    color: var(--accent);
    font-weight: 800;
    font-size: .92rem;
    margin-bottom: 22px;
}

.gc-section-badge svg {
    color: var(--accent);
}

.gc-section-head h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--primary-dark);
    font-weight: 900;
    margin-bottom: 14px;
    line-height: 1.4;
}

.gc-section-head p {
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* ──── تعداد نظرات ──── */
.gc-count {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.gc-count span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.45);
    box-shadow: var(--shadow);
    color: var(--primary);
    font-weight: 800;
    font-size: .95rem;
}

.gc-count svg {
    color: var(--accent);
}

/* ═══════════════════════════════════
   لیست نظرات
   ═══════════════════════════════════ */
.gc-list {
    list-style: none !important;
    margin: 0 0 50px !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ریپلای‌ها */
.gc-list .children {
    list-style: none !important;
    margin: 22px 38px 0 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.gc-list .children::before {
    content: "";
    position: absolute;
    right: -20px;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent), transparent);
    border-radius: 3px;
    opacity: .45;
}

/* ──── کارت هر نظر ──── */
.comment-body {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 28px;
    padding: 32px 34px;
    box-shadow: var(--shadow);
    transition: all .35s ease;
    position: relative;
    overflow: hidden;
}

.comment-body::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent), transparent);
    opacity: 0;
    transition: opacity .35s ease;
}

.comment-body:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(230,126,34,.2);
}

.comment-body:hover::before {
    opacity: 1;
}

/* نظر نویسنده */
.comment-body.is-post-author {
    border-color: rgba(230,126,34,.25);
    background: rgba(255,255,255,.82);
}

.comment-body.is-post-author::before {
    opacity: 1;
    background: linear-gradient(to bottom, var(--accent), var(--accent-hover));
}

/* ریپلای کارت */
.gc-list .children .comment-body {
    background: rgba(255,255,255,.6);
    border-radius: 22px;
    padding: 26px 28px;
}

/* ──── هدر نظر ──── */
.gc-header {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.gc-author {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.gc-avatar {
    width: 56px !important;
    height: 56px !important;
    border-radius: 18px !important;
    border: 3px solid rgba(255,255,255,.8) !important;
    box-shadow: 0 6px 20px rgba(15,38,64,.1) !important;
    object-fit: cover;
    transition: transform .3s ease;
}

.gc-avatar:hover {
    transform: scale(1.06) rotate(2deg);
}

.gc-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gc-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gc-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--primary-dark);
}

.gc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 12px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(230,126,34,.3);
    letter-spacing: .3px;
}

.gc-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light) !important;
    font-size: .84rem;
    text-decoration: none !important;
    font-weight: 500;
    transition: color .3s;
}

.gc-date svg {
    opacity: .5;
}

.gc-date:hover {
    color: var(--accent) !important;
}

/* ──── متن نظر ──── */
.gc-content {
    color: var(--text-medium);
    line-height: 2.1;
    margin-bottom: 6px;
}

.gc-content p:last-child {
    margin-bottom: 0;
}

/* ──── در انتظار تایید ──── */
.gc-moderation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 12px 18px;
    border-radius: 16px;
    background: rgba(230,126,34,.08);
    border: 1px solid rgba(230,126,34,.2);
    color: var(--accent);
    font-weight: 700;
    font-size: .9rem;
}

/* ──── دکمه‌ها ──── */
.gc-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(27,58,92,.07);
    flex-wrap: wrap;
}

.gc-actions .comment-reply-link,
.gc-actions .gc-edit-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 100px;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all .3s ease;
    cursor: pointer;
    border: none;
    line-height: 1;
}

.gc-actions .comment-reply-link {
    background: rgba(230,126,34,.08);
    color: var(--accent) !important;
    border: 1px solid rgba(230,126,34,.16);
}

.gc-actions .comment-reply-link:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(230,126,34,.3);
    transform: translateY(-3px);
}

.gc-actions .gc-edit-link a {
    background: rgba(27,58,92,.06);
    color: var(--primary) !important;
    border: 1px solid rgba(27,58,92,.1);
}

.gc-actions .gc-edit-link a:hover {
    background: var(--primary);
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(27,58,92,.2);
    transform: translateY(-3px);
}

/* ═══════════════════════════════════
   حالت خالی و بسته
   ═══════════════════════════════════ */
.gc-empty {
    text-align: center;
    padding: 50px 30px;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.gc-empty-icon {
    margin-bottom: 14px;
    color: var(--text-light);
    opacity: .45;
}

.gc-empty p {
    color: var(--text-light);
    font-size: 1.05rem;
    font-weight: 600;
}

.gc-closed {
    text-align: center;
    padding: 28px;
    color: var(--text-light);
    font-weight: 600;
}

/* ═══════════════════════════════════
   جداکننده
   ═══════════════════════════════════ */
.gc-separator {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 50px 0 35px;
}

.gc-separator::before,
.gc-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(27,58,92,.1), transparent);
}

.gc-separator span {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.45);
    box-shadow: var(--shadow);
    color: var(--accent);
    flex-shrink: 0;
}

/* ═══════════════════════════════════
   فرم ثبت نظر
   ═══════════════════════════════════ */
.gc-form-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem) !important;
    color: var(--primary-dark) !important;
    font-weight: 900 !important;
    text-align: center;
    margin-bottom: 10px !important;
}

.gc-form-title small {
    display: inline-block;
    margin-right: 10px;
}

.gc-form-title small a {
    font-size: .82rem !important;
    color: var(--accent) !important;
    text-decoration: none !important;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 100px;
    background: rgba(230,126,34,.08);
    border: 1px solid rgba(230,126,34,.15);
    transition: all .3s;
}

.gc-form-title small a:hover {
    background: var(--accent);
    color: #fff !important;
}

.gc-form-notes {
    text-align: center;
    color: var(--text-light);
    font-size: .9rem;
    margin-bottom: 30px !important;
}

.gc-form-notes .required {
    color: var(--accent);
    font-weight: 800;
}

/* کارت فرم */
.comment-form {
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 32px;
    padding: 40px 38px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: all .4s ease;
}

.comment-form::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -100px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(230,126,34,.05), transparent 60%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.comment-form::after {
    content: "";
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(27,58,92,.04), transparent 60%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.comment-form:hover {
    box-shadow: 0 20px 60px rgba(230,126,34,.12);
    border-color: rgba(230,126,34,.15);
}

.comment-form > * {
    position: relative;
    z-index: 1;
}

/* لیبل‌ها */
.comment-form label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: .95rem;
}

.comment-form label svg {
    color: var(--accent);
    opacity: .7;
    flex-shrink: 0;
}

.comment-form .required {
    color: var(--accent);
    font-weight: 800;
}

/* ردیف 3 فیلد */
.gc-fields-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.gc-fields-row p {
    margin-bottom: 0 !important;
}

.comment-form p {
    margin-bottom: 22px;
}

/* اینپوت‌ها */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(27,58,92,.08);
    border-radius: 18px;
    background: rgba(255,255,255,.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: "Vazirmatn", sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
    transition: all .3s ease;
    line-height: 1.8;
    box-shadow: inset 0 2px 6px rgba(15,38,64,.03);
}

.comment-form textarea {
    min-height: 170px;
    resize: vertical;
    border-radius: 22px;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,.92);
    box-shadow: 0 0 0 4px rgba(230,126,34,.1),
                inset 0 2px 6px rgba(15,38,64,.02);
    transform: translateY(-2px);
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: #b0b8c4;
    font-weight: 400;
}

/* چک‌باکس */
.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px !important;
}

.comment-form-cookies-consent input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(27,58,92,.15);
    border-radius: 7px;
    background: rgba(255,255,255,.6);
    cursor: pointer;
    transition: all .3s ease;
    position: relative;
    flex-shrink: 0;
}

.comment-form-cookies-consent input[type="checkbox"]::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: .78rem;
    font-weight: 900;
    color: #fff;
    transition: transform .25s cubic-bezier(.4,0,.2,1);
}

.comment-form-cookies-consent input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(230,126,34,.3);
}

.comment-form-cookies-consent input[type="checkbox"]:checked::after {
    transform: translate(-50%, -50%) scale(1);
}

.comment-form-cookies-consent label {
    margin-bottom: 0 !important;
    color: var(--text-light);
    font-weight: 500;
    font-size: .88rem;
    cursor: pointer;
}

/* دکمه ارسال */
.form-submit {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0 !important;
}

.gc-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 60px;
    padding: 0 44px;
    border-radius: 60px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff !important;
    font-family: "Vazirmatn", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all .4s ease;
    box-shadow: 0 12px 35px rgba(230,126,34,.35);
    position: relative;
    overflow: hidden;
    line-height: 1;
}

.gc-submit::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    transition: left .6s ease;
}

.gc-submit:hover::before {
    left: 100%;
}

.gc-submit:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(230,126,34,.5);
}

.gc-submit:active {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(230,126,34,.4);
}

.gc-submit svg {
    flex-shrink: 0;
}

/* ═══════════════════════════════════
   صفحه‌بندی نظرات
   ═══════════════════════════════════ */
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 35px 0;
    flex-wrap: wrap;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 46px;
    height: 46px;
    padding: 0 16px;
    border-radius: 16px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: .92rem;
    transition: all .3s ease;
}

.nav-links a {
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.4);
    color: var(--primary) !important;
    box-shadow: var(--shadow);
}

.nav-links a:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff !important;
    box-shadow: 0 10px 30px rgba(230,126,34,.3);
    transform: translateY(-3px);
}

.nav-links span.current {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff !important;
    border: 1px solid transparent;
    box-shadow: 0 8px 25px rgba(15,38,64,.25);
}

/* ═══════════════════════════════════
   فرم ریپلای داخل نظرات
   ═══════════════════════════════════ */
.gc-list #respond {
    margin-top: 22px;
    margin-bottom: 22px;
}

.gc-list #respond .comment-form {
    border-radius: 24px;
    padding: 30px 28px;
    border-color: rgba(230,126,34,.2);
}

/* ═══════════════════════════════════
   انیمیشن
   ═══════════════════════════════════ */
@keyframes gcFadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gc-list > li {
    animation: gcFadeUp .55s ease both;
}
.gc-list > li:nth-child(1)  { animation-delay: .05s; }
.gc-list > li:nth-child(2)  { animation-delay: .1s; }
.gc-list > li:nth-child(3)  { animation-delay: .15s; }
.gc-list > li:nth-child(4)  { animation-delay: .2s; }
.gc-list > li:nth-child(5)  { animation-delay: .25s; }
.gc-list > li:nth-child(6)  { animation-delay: .3s; }
.gc-list > li:nth-child(7)  { animation-delay: .35s; }
.gc-list > li:nth-child(8)  { animation-delay: .4s; }
.gc-list > li:nth-child(9)  { animation-delay: .45s; }
.gc-list > li:nth-child(10) { animation-delay: .5s; }

/* ═══════════════════════════════════
   ریسپانسیو
   ═══════════════════════════════════ */
@media (max-width: 992px) {
    .gc-fields-row {
        grid-template-columns: 1fr 1fr;
    }

    .gc-list .children {
        margin-right: 22px !important;
    }
}

@media (max-width: 768px) {
    .gc-section {
        padding: 50px 0 60px;
    }

    .gc-fields-row {
        grid-template-columns: 1fr;
    }

    .gc-fields-row p {
        margin-bottom: 18px !important;
    }

    .comment-form {
        padding: 28px 22px;
        border-radius: 24px;
    }

    .comment-body {
        padding: 24px 22px;
        border-radius: 22px;
    }

    .gc-avatar {
        width: 46px !important;
        height: 46px !important;
        border-radius: 14px !important;
    }

    .gc-list .children {
        margin-right: 16px !important;
    }

    .gc-list .children::before {
        right: -12px;
    }

    .gc-submit {
        width: 100%;
        padding: 0 28px;
    }

    .gc-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .gc-actions {
        flex-wrap: wrap;
    }

    .gc-separator span {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .comment-form {
        padding: 22px 16px;
        border-radius: 20px;
    }

    .comment-body {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"],
    .comment-form textarea {
        padding: 14px 16px;
        border-radius: 14px;
        font-size: .95rem;
    }

    .comment-form textarea {
        min-height: 140px;
        border-radius: 18px;
    }

    .gc-submit {
        min-height: 54px;
        font-size: .95rem;
        border-radius: 50px;
    }

    .gc-name {
        font-size: .95rem;
    }

    .gc-section-head h2 {
        font-size: 1.6rem;
    }
}