/* DesignDekh Trust Card — trust-card.css */

.ddtc-card {
    margin-top: 14px;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    background: #ffffff;
    animation: ddtcFadeIn 0.5s ease both;
}

@keyframes ddtcFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- shared row ---- */
.ddtc-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
}

/* ---- urgency bar ---- */
.ddtc-urgency {
    background: #fff8ed;
    border-bottom: 1px solid #f0d9a8;
}
.ddtc-pulse-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: #e8a020;
    animation: ddtcPulse 1.8s ease-in-out infinite;
}
@keyframes ddtcPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}
.ddtc-urgency-text {
    color: #7a4a05;
    font-size: 13px;
    line-height: 1.4;
}
.ddtc-timer {
    font-weight: 600;
    background: #f0d9a8;
    padding: 1px 6px;
    border-radius: 4px;
    color: #6b3d02;
    font-variant-numeric: tabular-nums;
}

/* ---- viewers bar ---- */
.ddtc-viewers {
    background: #f0f7ff;
    border-bottom: 1px solid #c5dcf5;
}
.ddtc-viewer-dots {
    display: flex;
    gap: 3px;
    align-items: center;
}
.ddtc-vdot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #378ADD;
}
.ddtc-viewers-text {
    color: #0c447c;
    font-size: 13px;
    font-weight: 500;
}

/* ---- social proof ---- */
.ddtc-proof {
    border-bottom: 1px solid #e4e4e4;
    flex-wrap: wrap;
    gap: 6px;
}
.ddtc-stars {
    display: flex;
    gap: 2px;
    align-items: center;
}
.ddtc-proof-text {
    color: #555;
    font-size: 13px;
}
.ddtc-proof-text strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* ---- trust grid ---- */
.ddtc-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #e4e4e4;
}
.ddtc-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 14px;
}
.ddtc-trust-item:nth-child(1),
.ddtc-trust-item:nth-child(3) {
    border-right: 1px solid #e4e4e4;
}
.ddtc-trust-item:nth-child(1),
.ddtc-trust-item:nth-child(2) {
    border-bottom: 1px solid #e4e4e4;
}
.ddtc-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ddtc-icon-green { background: #EAF3DE; }
.ddtc-icon-blue  { background: #E6F1FB; }
.ddtc-icon-teal  { background: #E1F5EE; }
.ddtc-icon-amber { background: #FAEEDA; }

.ddtc-trust-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ddtc-trust-label {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}
.ddtc-trust-sub {
    font-size: 11px;
    color: #777;
    line-height: 1.4;
}

/* blinking shipping days */
.ddtc-blink-text {
    font-weight: 600;
    color: #0F6E56;
    animation: ddtcBlink 2.4s ease-in-out infinite;
    display: inline-block;
}
@keyframes ddtcBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

/* ---- COD bar ---- */
.ddtc-cod {
    border-bottom: 1px solid #e4e4e4;
    flex-wrap: wrap;
    gap: 8px;
}
.ddtc-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 4px;
    white-space: nowrap;
}
.ddtc-badge-green { background: #EAF3DE; color: #3B6D11; }
.ddtc-badge-red   { background: #FCEBEB; color: #A32D2D; }

.ddtc-cod-text {
    color: #555;
    font-size: 13px;
}

/* ---- stock / scarcity bar ---- */
.ddtc-stock {
    gap: 10px;
    flex-wrap: nowrap;
}
.ddtc-stock-bar-wrap {
    flex: 1;
    height: 5px;
    background: #ebebeb;
    border-radius: 3px;
    overflow: hidden;
    min-width: 40px;
}
.ddtc-stock-bar-fill {
    height: 100%;
    background: #E24B4A;
    border-radius: 3px;
    transition: width 0.6s ease;
}
.ddtc-stock-label {
    color: #555;
    font-size: 12px;
    white-space: nowrap;
}

/* -----------------------------------------------
   MOBILE RESPONSIVE
----------------------------------------------- */
@media (max-width: 480px) {
    .ddtc-card { font-size: 12px; border-radius: 10px; }
    .ddtc-row  { padding: 9px 12px; gap: 8px; }

    .ddtc-trust-grid { grid-template-columns: 1fr 1fr; }
    .ddtc-trust-item { padding: 9px 10px; gap: 7px; }
    .ddtc-trust-label { font-size: 11px; }
    .ddtc-trust-sub   { font-size: 10px; }

    .ddtc-icon { width: 28px; height: 28px; min-width: 28px; border-radius: 6px; }
    .ddtc-icon svg { width: 15px; height: 15px; }

    .ddtc-urgency-text { font-size: 12px; }
    .ddtc-viewers-text { font-size: 12px; }
    .ddtc-proof-text   { font-size: 12px; }

    .ddtc-stock-label  { font-size: 11px; }
    .ddtc-badge        { font-size: 10px; padding: 2px 7px; }
    .ddtc-timer        { font-size: 12px; }
}

@media (max-width: 360px) {
    .ddtc-trust-grid { grid-template-columns: 1fr; }
    .ddtc-trust-item:nth-child(1),
    .ddtc-trust-item:nth-child(3) { border-right: none; }
    .ddtc-trust-item:nth-child(1),
    .ddtc-trust-item:nth-child(2),
    .ddtc-trust-item:nth-child(3) { border-bottom: 1px solid #e4e4e4; }
}
