/* ==========================================================================
   DC Testimonials – Frontend + Admin styles
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --dct-bg: #0f0a1e;
    --dct-card-bg: #1a1233;
    --dct-card-bg-hover: #201840;
    --dct-card-border: rgba(124,58,237,.12);
    --dct-card-border-hover: rgba(124,58,237,.35);
    --dct-purple: #7c3aed;
    --dct-purple-light: #a78bfa;
    --dct-purple-glow: rgba(124,58,237,.15);
    --dct-pink: #d946ef;
    --dct-gold: #fbbf24;
    --dct-text-white: #f4f0fb;
    --dct-text-light: #c9bdd9;
    --dct-text-muted: #8574a0;
    --dct-success: #34d399;
    --dct-success-bg: rgba(52,211,153,.12);
    --dct-danger: #dc2626;
    --dct-radius: 14px;
    --dct-shadow: 0 2px 12px rgba(0,0,0,.35);
    --dct-shadow-md: 0 8px 24px rgba(0,0,0,.45);
    --dct-shadow-lg: 0 12px 40px rgba(0,0,0,.55);

    /* Admin (light theme) */
    --dct-admin-gray-50: #f9fafb;
    --dct-admin-gray-100: #f3f4f6;
    --dct-admin-gray-200: #e5e7eb;
    --dct-admin-gray-300: #d1d5db;
    --dct-admin-gray-400: #9ca3af;
    --dct-admin-gray-500: #6b7280;
    --dct-admin-gray-600: #4b5563;
    --dct-admin-gray-700: #374151;
    --dct-admin-gray-800: #1f2937;
    --dct-admin-primary: #1e3a5f;
}

/* ---------- Font ---------- */
.dct-wrap,
.dct-wrap * {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- Animations ---------- */
@keyframes dctFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes dctPulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0); }
    50%      { box-shadow: 0 0 20px 2px rgba(124,58,237,.15); }
}

/* ==========================================================================
   FRONTEND – Shortcode cards  (dark theme)
   ========================================================================== */

.dct-wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 40px 20px;
    background: var(--dct-bg);
    border-radius: 20px;
}

.dct-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* -- Card -- */
.dct-card {
    background: var(--dct-card-bg);
    border: 1px solid var(--dct-card-border);
    border-radius: var(--dct-radius);
    padding: 26px 28px;
    box-shadow: 0 4px 25px rgba(124,58,237,.4), 0 0 50px rgba(124,58,237,.15);
    transition: all .3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    position: relative;
    animation: dctFadeUp .5s ease both;
    overflow: hidden;
}

.dct-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--dct-radius);
    background: linear-gradient(135deg, rgba(124,58,237,.04) 0%, transparent 60%);
    pointer-events: none;
}

.dct-card:nth-child(1) { animation-delay: 0s; }
.dct-card:nth-child(2) { animation-delay: .08s; }
.dct-card:nth-child(3) { animation-delay: .16s; }
.dct-card:nth-child(4) { animation-delay: .24s; }
.dct-card:nth-child(5) { animation-delay: .32s; }
.dct-card:nth-child(6) { animation-delay: .4s; }

.dct-card:hover {
    background: var(--dct-card-bg-hover);
    border-color: var(--dct-card-border-hover);
    box-shadow: 0 8px 35px rgba(124,58,237,.5), 0 0 60px rgba(124,58,237,.25);
    transform: translateY(-3px);
}

/* -- Card top: avatar + info + social -- */
.dct-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.dct-avatar-wrap {
    flex-shrink: 0;
    position: relative;
}

.dct-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(124,58,237,.35);
    transition: border-color .3s;
}

.dct-card:hover .dct-avatar {
    border-color: var(--dct-purple);
}

.dct-avatar-initials {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dct-purple) 0%, var(--dct-pink) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .5px;
    transition: transform .3s;
}

.dct-card:hover .dct-avatar-initials {
    transform: scale(1.05);
}

.dct-user-info {
    flex: 1;
    min-width: 0;
}

.dct-name {
    margin: 0 0 3px;
    font-size: 16px;
    font-weight: 600;
    color: #FF71C5 !important;
    line-height: 1.3;
    letter-spacing: .2px;
}

.dct-meta {
    margin: 0;
    font-size: 13px;
    color: var(--dct-text-muted);
    line-height: 1.4;
}

/* Social icons */
.dct-social-wrap {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.dct-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,.05);
    color: var(--dct-text-muted);
    text-decoration: none;
    transition: all .25s ease;
    border: 1px solid transparent;
}

.dct-social-btn:hover {
    background: var(--dct-purple-glow);
    color: var(--dct-purple-light);
    border-color: rgba(124,58,237,.3);
    transform: translateY(-2px);
}

/* -- Badges row -- */
.dct-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.dct-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 11px;
    border-radius: 6px;
    line-height: 1.5;
    letter-spacing: .2px;
    transition: all .25s ease;
}

.dct-badge svg {
    flex-shrink: 0;
}

.dct-badge-cert {
    background: rgba(124,58,237,.12);
    color: var(--dct-purple-light);
    border: 1px solid rgba(124,58,237,.2);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .4px;
}

.dct-card:hover .dct-badge-cert {
    background: rgba(124,58,237,.18);
    border-color: rgba(124,58,237,.35);
}

.dct-badge-pass {
    background: transparent;
    color: var(--dct-text-muted);
    border: none;
    padding-left: 0;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .1px;
    text-transform: none;
}

.dct-badge-pass svg {
    flex-shrink: 0;
    color: var(--dct-success);
}

/* -- Divider -- */
.dct-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(124,58,237,.2) 0%, rgba(255,255,255,.04) 50%, rgba(124,58,237,.2) 100%);
    margin-bottom: 16px;
}

/* -- Body / quote -- */
.dct-body {
    flex: 1;
    position: relative;
    padding-left: 24px;
}

.dct-quote-icon {
    font-size: 56px;
    line-height: 1;
    color: rgba(124,58,237,.18);
    font-family: Georgia, 'Times New Roman', serif;
    position: absolute;
    top: -12px;
    left: -2px;
    pointer-events: none;
    user-select: none;
}

.dct-headline {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--dct-gold);
    position: relative;
    z-index: 1;
    line-height: 1.45;
}

.dct-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: var(--dct-text-light);
    position: relative;
    z-index: 1;
}

/* -- Footer / more button -- */
.dct-footer {
    text-align: center;
    margin-top: 36px;
}

.dct-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--dct-purple) 0%, var(--dct-pink) 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: all .3s ease;
    box-shadow: 0 4px 20px rgba(124,58,237,.3);
    letter-spacing: .3px;
}

.dct-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124,58,237,.4);
    color: #fff;
}

.dct-error {
    text-align: center;
    color: #f87171;
    padding: 24px;
    font-size: 14px;
    background: rgba(248,113,113,.08);
    border-radius: 10px;
    border: 1px solid rgba(248,113,113,.15);
}

/* -- Responsive -- */
@media (max-width: 768px) {
    .dct-wrap {
        padding: 24px 14px;
        border-radius: 14px;
    }

    .dct-list {
        gap: 14px;
    }

    .dct-card {
        padding: 20px 18px;
    }

    .dct-card-top {
        flex-wrap: wrap;
    }

    .dct-social-wrap {
        width: 100%;
        margin-top: 6px;
    }

    .dct-body {
        padding-left: 20px;
    }
}

/* ==========================================================================
   ADMIN – Table, filters, toggles, modal  (light WP theme)
   ========================================================================== */

.dct-admin-wrap {
    max-width: 100%;
}

.dct-total-badge {
    display: inline-block;
    background: var(--dct-admin-gray-100);
    color: var(--dct-admin-gray-600);
    font-size: 13px;
    padding: 2px 10px;
    border-radius: 12px;
    vertical-align: middle;
    margin-left: 8px;
}

/* -- Filters bar -- */
.dct-filters-bar {
    background: #fff;
    border: 1px solid var(--dct-admin-gray-200);
    border-radius: 10px;
    padding: 14px 18px;
    margin: 16px 0;
}

.dct-filters-bar form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.dct-input-search {
    min-width: 220px;
    padding: 6px 12px;
    border: 1px solid var(--dct-admin-gray-300);
    border-radius: 6px;
    font-size: 14px;
}

.dct-select {
    padding: 6px 10px;
    border: 1px solid var(--dct-admin-gray-300);
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

/* -- Table -- */
.dct-main-table {
    border-collapse: separate;
    border-spacing: 0;
}

.dct-main-table th {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.dct-tbl-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
}

.dct-tbl-initials {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--dct-admin-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.dct-email {
    font-size: 12px;
    color: var(--dct-admin-gray-500);
    word-break: break-all;
}

.dct-preview {
    font-size: 13px;
    color: var(--dct-admin-gray-500);
    font-style: italic;
}

.dct-pin-indicator {
    cursor: default;
}

.dct-row-pinned {
    background: #fffbeb !important;
}

/* -- Toggle buttons -- */
.dct-toggle {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--dct-admin-gray-300);
    border-radius: 20px;
    background: var(--dct-admin-gray-50);
    color: var(--dct-admin-gray-500);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    line-height: 1.6;
}

.dct-toggle:hover {
    border-color: var(--dct-admin-gray-400);
    background: var(--dct-admin-gray-100);
}

.dct-toggle.is-active {
    border-color: #16a34a;
    background: #dcfce7;
    color: #16a34a;
}

.dct-toggle.is-active:hover {
    background: #bbf7d0;
}

.dct-toggle.is-loading {
    opacity: .5;
    pointer-events: none;
}

/* -- Empty state -- */
.dct-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--dct-admin-gray-400);
    font-size: 15px;
}

/* -- Pagination -- */
.dct-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.dct-pag-info {
    font-size: 13px;
    color: var(--dct-admin-gray-500);
    margin-right: 8px;
}

.dct-pag-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    background: var(--dct-admin-primary);
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.dct-pag-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--dct-admin-gray-300);
    border-radius: 6px;
    font-size: 13px;
    color: var(--dct-admin-gray-700);
    text-decoration: none;
    transition: background .15s;
}

.dct-pag-link:hover {
    background: var(--dct-admin-gray-100);
}

/* -- Notice -- */
#dct-notice {
    margin: 12px 0;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
}

#dct-notice.dct-notice-success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #86efac;
}

#dct-notice.dct-notice-error {
    background: #fee2e2;
    color: var(--dct-danger);
    border: 1px solid #fca5a5;
}

/* -- Modal -- */
.dct-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dct-modal-box {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--dct-shadow-lg);
    position: relative;
    padding: 32px;
}

.dct-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--dct-admin-gray-400);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color .15s;
}

.dct-modal-close:hover {
    color: var(--dct-admin-gray-700);
}

/* Modal content */
.dct-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.dct-modal-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--dct-admin-gray-200);
}

.dct-modal-initials {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--dct-admin-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

.dct-modal-name {
    margin: 0 0 2px;
    font-size: 18px;
    font-weight: 600;
}

.dct-modal-meta {
    margin: 0;
    font-size: 13px;
    color: var(--dct-admin-gray-500);
}

.dct-modal-section {
    margin-bottom: 16px;
}

.dct-modal-section h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--dct-admin-gray-400);
    margin: 0 0 6px;
    font-weight: 600;
}

.dct-modal-section p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--dct-admin-gray-700);
}

.dct-modal-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dct-modal-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* -- Settings code block -- */
.dct-code-block {
    background: var(--dct-admin-gray-50);
    border: 1px solid var(--dct-admin-gray-200);
    border-radius: 6px;
    padding: 16px;
    font-size: 13px;
    overflow-x: auto;
}
