/* ========================================
   STORIES TAB — Approved Mockup Design
   Prefix: pst- (printigly stories tab)
   Scoped under #tab-stories for specificity
   ======================================== */

/* Header */
#tab-stories .pst-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f2f5;
}

#tab-stories .pst-header__left h2 {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 4px;
}

#tab-stories .pst-header__left h2 i {
    color: var(--printigly-primary, #FF6B35);
    margin-right: 8px;
    font-size: 20px;
}

#tab-stories .pst-header__left p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

#tab-stories .pst-header__count {
    background: rgba(255,107,53,0.08);
    color: var(--printigly-primary, #FF6B35);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    white-space: nowrap;
}

/* Story list */
#tab-stories .pst-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Card */
#tab-stories .pst-card {
    background: #fafbfc;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}

#tab-stories .pst-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    transform: translateY(-2px);
    border-color: #dde1e8;
}

/* Card header */
#tab-stories .pst-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
}

#tab-stories .pst-card__customer {
    display: flex;
    align-items: center;
    gap: 12px;
}

#tab-stories .pst-card__avatar {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    flex-shrink: 0;
}

#tab-stories .pst-card__name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
}

#tab-stories .pst-card__role {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 1px;
}

#tab-stories .pst-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(37,99,235,0.06);
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

#tab-stories .pst-card__tag i {
    font-size: 10px;
}

/* Card body */
#tab-stories .pst-card__body {
    padding: 16px 24px;
}

#tab-stories .pst-card__title {
    font-size: 17px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.4;
    margin-bottom: 10px;
}

#tab-stories .pst-card__text {
    font-size: 14px;
    color: #555;
    line-height: 1.75;
}

#tab-stories .pst-card__text p {
    margin: 0 0 8px;
    font-size: 14px;
    color: #555;
    line-height: 1.75;
}

#tab-stories .pst-card__text p:last-child {
    margin: 0;
}

/* Quote style variant */
#tab-stories .pst-card--quote .pst-card__body {
    position: relative;
    padding-left: 52px;
}

#tab-stories .pst-card--quote .pst-card__body::before {
    content: '\201C';
    position: absolute;
    left: 24px;
    top: 12px;
    font-size: 48px;
    line-height: 1;
    color: var(--printigly-primary, #FF6B35);
    opacity: 0.2;
    font-family: Georgia, serif;
}

/* Result callout */
#tab-stories .pst-card__result {
    margin: 16px 24px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.15);
    border-radius: 12px;
    padding: 14px 18px;
}

#tab-stories .pst-card__result-icon {
    width: 32px;
    min-width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(34,197,94,0.12);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

#tab-stories .pst-card__result-text {
    font-size: 14px;
    font-weight: 700;
    color: #15803d;
    line-height: 1.4;
}

/* Specs footer */
#tab-stories .pst-card__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 24px 20px;
    list-style: none;
}

#tab-stories .pst-spec {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    transition: border-color 0.2s;
}

#tab-stories .pst-spec:hover {
    border-color: #d0d5dd;
}

#tab-stories .pst-spec__label {
    color: #64748b;
    font-weight: 600;
}

#tab-stories .pst-spec__value {
    color: #1a1a2e;
    font-weight: 700;
}

/* WhatsApp CTA */
#tab-stories .pst-cta {
    margin-top: 28px;
    padding: 24px;
    background: linear-gradient(135deg, #f0f7ff 0%, #fef3eb 100%);
    border-radius: 14px;
    border: 1px solid #e8ecf2;
    text-align: center;
}

#tab-stories .pst-cta__text {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

#tab-stories .pst-cta__sub {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
}

#tab-stories .pst-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Mulish', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

#tab-stories .pst-cta__btn:hover {
    background: #1ebe57;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37,211,102,0.3);
    color: #fff;
}

#tab-stories .pst-cta__btn i {
    font-size: 16px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    #tab-stories .pst-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    #tab-stories .pst-header__left h2 {
        font-size: 19px;
    }

    #tab-stories .pst-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px 18px 0;
    }

    #tab-stories .pst-card__body {
        padding: 12px 18px;
    }

    #tab-stories .pst-card__title {
        font-size: 15px;
    }

    #tab-stories .pst-card__result {
        margin: 12px 18px 0;
        padding: 12px 14px;
    }

    #tab-stories .pst-card__footer {
        padding: 14px 18px 18px;
    }

    #tab-stories .pst-card--quote .pst-card__body {
        padding-left: 18px;
    }

    #tab-stories .pst-card--quote .pst-card__body::before {
        display: none;
    }

    #tab-stories .pst-cta {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    #tab-stories .pst-header__left h2 {
        font-size: 17px;
    }

    #tab-stories .pst-header__left h2 i {
        display: none;
    }

    #tab-stories .pst-card__avatar {
        width: 38px;
        min-width: 38px;
        height: 38px;
        font-size: 13px;
    }

    #tab-stories .pst-card__name {
        font-size: 14px;
    }

    #tab-stories .pst-card__text,
    #tab-stories .pst-card__text p {
        font-size: 13px;
    }

    #tab-stories .pst-spec {
        padding: 6px 10px;
        font-size: 11px;
    }

    #tab-stories .pst-cta__text {
        font-size: 14px;
    }

    #tab-stories .pst-cta__btn {
        width: 100%;
        justify-content: center;
    }
}
