/**
 * Ain Prokash Comment Shield — Frontend Styles
 */

/* লগইন বক্স (যখন ইউজার লগইন ছাড়া পেজে ঢুকবে) */
.ap-cs-login-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.ap-cs-login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.ap-cs-login-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.ap-cs-login-title {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.ap-cs-login-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    max-width: 480px;
    line-height: 1.5;
}

.ap-cs-btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 15px 0;
}

#ap-cs-google-btn {
    display: inline-flex;
    justify-content: center;
}

.ap-cs-privacy-note {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 10px;
}

.ap-cs-admin-warning {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 6px;
    padding: 12px;
}

/* লগইন থাকা অবস্থায় ইউজার ব্যাজ */
.ap-cs-user-badge {
    margin-bottom: 20px;
}

.ap-cs-user-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
}

.ap-cs-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #10b981;
}

.ap-cs-user-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ap-cs-display-name {
    font-size: 15px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ap-cs-verified-tag {
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
}

.ap-cs-logout-link {
    font-size: 13px;
    color: #ef4444;
    text-decoration: none;
    font-weight: 500;
}

.ap-cs-logout-link:hover {
    text-decoration: underline;
}

.ap-cs-notice-banner {
    background: #fefce8;
    border-left: 4px solid #eab308;
    border-radius: 4px;
    padding: 10px 14px;
    margin-top: 10px;
    font-size: 13px;
    color: #713f12;
    line-height: 1.5;
}

/* গুগল অ্যাভাটার বৃত্তাকার ডিসপ্লে */
.ap-cs-g-avatar {
    border-radius: 50% !important;
}

/* লোডিং স্পিনার */
.ap-cs-spinner-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #2563eb;
    font-weight: 600;
    margin-top: 10px;
}

.ap-cs-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid #bfdbfe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: ap-cs-spin 0.8s linear infinite;
}

@keyframes ap-cs-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .ap-cs-login-box {
        padding: 18px 12px;
    }
    .ap-cs-login-title {
        font-size: 17px;
    }
    .ap-cs-user-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ==========================================================================
   প্রিমিয়াম কমেন্ট লিস্ট ও কার্ড স্টাইলিং (Ultra-Premium Comments Engine)
   ========================================================================== */

/* কমেন্ট লিস্ট ও রিসেট */
#comments ol.comment-list,
#comments ul.comment-list,
.comment-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 28px 0 !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

li.ap-cs-comment-item {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

/* কমেন্ট বক্স ও কন্টেইনার ওভাররাইড */
#comments-box.container-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 25px !important;
}

#comments-box .block-head {
    border-bottom: 2px solid #e2e8f0 !important;
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
    position: relative !important;
}

#comments-box .block-head::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 64px;
    height: 2px;
    background: #2563eb;
    border-radius: 2px;
}

#comments-title {
    font-size: 21px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    line-height: 1.4 !important;
}

/* কমেন্ট শিরোনাম fallback */
#comments > h3,
#comments .comments-title,
.comments-title {
    font-size: 21px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 32px 0 20px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

#comments > h3::after,
#comments .comments-title::after,
.comments-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 64px;
    height: 2px;
    background: #2563eb;
    border-radius: 2px;
}

/* মূল প্রিমিয়াম কার্ড ডিজাইন */
.ap-cs-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.ap-cs-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
}

/* অ্যাডমিন/আইন প্রকাশ টিম কার্ড */
.ap-cs-card.ap-cs-card-admin {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-left: 4px solid #1e40af;
    box-shadow: 0 4px 16px -2px rgba(30, 64, 175, 0.06);
}

/* অপেক্ষমাণ (Pending Moderation) কার্ড */
.ap-cs-card.ap-cs-card-pending {
    background: #fffdf5;
    border: 1.5px dashed #f59e0b;
}

.ap-cs-pending-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef3c7;
    color: #92400e;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    margin: 14px 0;
    border: 1px solid #fde68a;
    line-height: 1.5;
}

.ap-cs-pending-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* কার্ড হেডার */
.ap-cs-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 14px;
}

/* অ্যাভাটার ফ্রেম ও সিল */
.ap-cs-avatar-frame {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.ap-cs-card-avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #e2e8f0 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06) !important;
    display: block !important;
}

.ap-cs-card-admin .ap-cs-card-avatar {
    border-color: #3b82f6 !important;
}

.ap-cs-seal-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.ap-cs-seal-admin {
    background: #1e40af;
    color: #ffffff;
}

.ap-cs-seal-verified {
    background: #10b981;
    color: #ffffff;
    font-weight: 900;
}

/* মেটা তথ্য */
.ap-cs-meta-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-grow: 1;
}

.ap-cs-author-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ap-cs-author-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.ap-cs-card-admin .ap-cs-author-name {
    color: #1e3a8a;
}

/* অথর ব্যাজ */
.ap-cs-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.2px;
    line-height: 1;
}

.ap-cs-badge-admin {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
}

.ap-cs-badge-verified {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.ap-cs-time-line {
    font-size: 12.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* কমেন্ট বডি */
.ap-cs-card-body {
    font-size: 15.5px;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 14px;
    word-break: break-word;
}

.ap-cs-card-body p {
    margin: 0 0 10px 0;
}

.ap-cs-card-body p:last-child {
    margin-bottom: 0;
}

/* কার্ড ফুটার ও রিপ্লাই বাটন */
.ap-cs-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.ap-cs-card-footer a.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #475569 !important;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.ap-cs-card-footer a.comment-reply-link:hover {
    color: #0f172a !important;
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.ap-cs-card-footer a.ap-cs-reply-login-trigger:hover {
    color: #1e40af !important;
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
}

.ap-cs-reply-arrow {
    font-size: 13px;
    color: #2563eb;
}

/* থ্রেডেড বা নেস্টেড রিপ্লাই (Nested comments) */
ol.children,
ul.children {
    list-style: none !important;
    padding-left: 36px !important;
    margin: 16px 0 0 0 !important;
    position: relative;
    border-left: 2px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* কমেন্ট সাবমিট ফর্ম প্রিমিয়াম স্টাইলিং */
.comment-respond {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    margin-top: 28px;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
}

.comment-reply-title {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 18px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ap-cs-form-title-icon {
    font-size: 20px;
}

.ap-cs-form-field-wrap {
    margin-bottom: 16px;
}

.ap-cs-textarea {
    width: 100% !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    color: #1e293b !important;
    background: #fcfcfd !important;
    transition: all 0.2s ease !important;
    resize: vertical;
    box-sizing: border-box !important;
    line-height: 1.6 !important;
}

.ap-cs-textarea:focus {
    outline: none !important;
    border-color: #2563eb !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
}

.ap-cs-textarea-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12.5px;
    color: #64748b;
}

.ap-cs-field-hint {
    color: #64748b;
    line-height: 1.4;
}

/* সাবমিট বাটন */
.ap-cs-submit-btn,
#commentform input#submit,
.form-submit input#submit {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 28px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
}

.ap-cs-submit-btn:hover,
#commentform input#submit:hover,
.form-submit input#submit:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35) !important;
    background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
}

.ap-cs-submit-btn:active,
#commentform input#submit:active,
.form-submit input#submit:active {
    transform: translateY(0) !important;
}

@media (max-width: 600px) {
    .ap-cs-card {
        padding: 16px 16px;
    }
    ol.children,
    ul.children {
        padding-left: 14px !important;
    }
    .ap-cs-author-line {
        gap: 6px;
    }
}

