/* ─── SPT References – Frontend styles ─────────────────────────────────────── */

/* ─── MINI shortcode ─────────────────────────────────────────────────────── */

.spt-ref-mini {
    background: var(--spt-bg, #f0f4f8);
    color: var(--spt-text, #232324);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    font-family: inherit !important;
    box-sizing: border-box;
    width: 100%;
}

.spt-ref-mini-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.2rem;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--spt-text, #232324);
    opacity: 0.5;
}

.spt-ref-mini-label::before,
.spt-ref-mini-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: currentColor;
    opacity: 0.3;
}

.spt-ref-mini-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,110,255,0.2) transparent;
    -webkit-overflow-scrolling: touch;
}

.spt-ref-mini-track::-webkit-scrollbar { height: 4px; }
.spt-ref-mini-track::-webkit-scrollbar-track { background: transparent; }
.spt-ref-mini-track::-webkit-scrollbar-thumb { background: rgba(0,110,255,0.2); border-radius: 4px; }

.spt-ref-mini-card {
    flex-shrink: 0 !important;
    width: 210px !important;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px !important;
    padding: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    box-sizing: border-box;
    transition: box-shadow 0.2s, transform 0.2s;
}

.spt-ref-mini-card:hover {
    box-shadow: 0 4px 20px rgba(0,110,255,0.10);
    transform: translateY(-2px);
}

.spt-ref-mini-info { flex: 1; }

.spt-ref-mini-title {
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #232324 !important;
    margin: 0 0 3px !important;
    line-height: 1.3 !important;
}

.spt-ref-mini-sub {
    font-family: inherit !important;
    font-size: 12px !important;
    color: #555 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.spt-ref-mini-screens {
    display: flex !important;
    align-items: flex-end !important;
    gap: 6px !important;
}

.spt-ref-laptop { width: 118px; flex-shrink: 0; }

.spt-ref-laptop-screen {
    border: 2px solid #c0ccda;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
    height: 70px;
    background: #f0f4f8;
}

.spt-ref-laptop-screen img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.spt-ref-laptop-base { background: #c0ccda; height: 5px; }

.spt-ref-laptop-stand {
    background: #c0ccda;
    height: 3px;
    width: 38%;
    margin: 0 auto;
    border-radius: 0 0 3px 3px;
}

.spt-ref-mobile { width: 38px; flex-shrink: 0; }

.spt-ref-mobile-screen {
    border: 2px solid #c0ccda;
    border-radius: 5px;
    overflow: hidden;
    height: 60px;
    background: #f0f4f8;
}

.spt-ref-mobile-screen img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.spt-ref-mobile-btn {
    width: 14px;
    height: 2px;
    background: #c0ccda;
    border-radius: 2px;
    margin: 2px auto 0;
}

.spt-ref-screen-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f0fe 0%, #f5f8fc 100%);
}

.spt-ref-mini-cat {
    display: inline-block !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    padding: 2px 10px !important;
    border-radius: 20px !important;
    background: rgba(0,110,255,0.08) !important;
    color: #006EFF !important;
    line-height: 1.6 !important;
}

/* ─── FULL shortcode ─────────────────────────────────────────────────────── */

.spt-ref-full {
    background: var(--spt-bg, #ffffff);
    font-family: inherit !important;
    box-sizing: border-box;
    width: 100%;
}

.spt-ref-full-header {
    padding: 2rem 2rem 1.2rem;
    border-bottom: 1px solid rgba(128,128,128,0.15);
}

.spt-ref-full-heading {
    font-family: inherit !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: var(--spt-text, #101728) !important;
    margin: 0 0 6px !important;
    line-height: 1.2 !important;
}

.spt-ref-full-subheading {
    font-family: inherit !important;
    font-size: 15px !important;
    color: var(--spt-text, #232324) !important;
    opacity: 0.55;
    margin: 0 !important;
}

/* Szekciók */
.spt-ref-full-section {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    align-items: center !important;
    border-bottom: 1px solid rgba(128,128,128,0.12);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.spt-ref-full-section.spt-ref-visible {
    opacity: 1;
    transform: translateY(0);
}

.spt-ref-full-section.spt-ref-reverse { direction: rtl; }
.spt-ref-full-section.spt-ref-reverse > * { direction: ltr; }

/* Szöveg oldal */
.spt-ref-full-text {
    padding: 2.5rem 2.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 13px !important;
    background: var(--spt-bg, #ffffff);
}

.spt-ref-full-cat {
    display: inline-block !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 3px 12px !important;
    border-radius: 20px !important;
    background: rgba(0,110,255,0.10) !important;
    color: var(--spt-btn, #006EFF) !important;
    width: fit-content !important;
    line-height: 1.6 !important;
}

.spt-ref-full-title {
    font-family: inherit !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--spt-text, #101728) !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.spt-ref-full-client {
    font-family: inherit !important;
    font-size: 13px !important;
    color: var(--spt-text, #232324) !important;
    opacity: 0.5;
    margin: 0 !important;
}

.spt-ref-full-desc {
    font-family: inherit !important;
    font-size: 14px !important;
    color: var(--spt-text, #232324) !important;
    line-height: 1.75 !important;
    opacity: 0.85;
}

.spt-ref-full-desc p { margin: 0 0 8px !important; }
.spt-ref-full-desc p:last-child { margin-bottom: 0 !important; }

.spt-ref-full-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-top: 2px !important;
}

.spt-ref-full-tag {
    font-family: inherit !important;
    font-size: 12px !important;
    padding: 3px 10px !important;
    border-radius: 5px !important;
    border: 1px solid var(--spt-tag-border, rgba(128,128,128,0.25)) !important;
    color: var(--spt-text, #232324) !important;
    opacity: 0.75;
    line-height: 1.6 !important;
    background: transparent !important;
}

.spt-ref-full-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--spt-btn, #006EFF) !important;
    padding: 10px 22px !important;
    border: 2px solid var(--spt-btn, #006EFF) !important;
    border-radius: 8px !important;
    width: fit-content !important;
    text-decoration: none !important;
    margin-top: 4px !important;
    transition: background 0.2s, color 0.2s !important;
    background: transparent !important;
}

.spt-ref-full-btn:hover {
    background: var(--spt-btn, #006EFF) !important;
    color: #ffffff !important;
}

.spt-ref-full-btn:hover svg { stroke: #ffffff; }

/* Vizuális oldal */
.spt-ref-full-visual {
    padding: 2.5rem 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--spt-section-bg, rgba(0,0,0,0.03));
    min-height: 320px;
}

/* ─── Eszközkeretek (nagyobb) ────────────────────────────────────────────── */

.spt-ref-device-wrap {
    position: relative;
    width: 380px;
    height: 270px;
}

/* Laptop nagy */
.spt-ref-laptop-lg {
    width: 340px;
    position: absolute;
    left: 0;
    top: 0;
}

.spt-ref-laptop-lg-screen {
    border: 3px solid #a0b4c8;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    height: 210px;
    background: #e8f0f8;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}

.spt-ref-laptop-lg-screen img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    display: block !important;
}

.spt-ref-laptop-lg-base {
    background: #a0b4c8;
    height: 10px;
    border-radius: 0 0 3px 3px;
}

.spt-ref-laptop-lg-stand {
    background: #a0b4c8;
    height: 6px;
    width: 30%;
    margin: 0 auto;
    border-radius: 0 0 6px 6px;
}

/* Mobil nagy */
.spt-ref-mobile-lg {
    position: absolute;
    right: -5px;
    bottom: 0;
    width: 90px;
    background: #ffffff;
    border: 3px solid #a0b4c8;
    border-radius: 16px;
    padding: 8px 4px 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.spt-ref-mobile-lg-notch {
    width: 28px;
    height: 5px;
    background: #a0b4c8;
    border-radius: 3px;
    margin: 0 auto 5px;
}

.spt-ref-mobile-lg-screen {
    overflow: hidden;
    height: 148px;
    border-radius: 5px;
    background: #e8f0f8;
}

.spt-ref-mobile-lg-screen img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    display: block !important;
}

.spt-ref-mobile-lg-btn {
    width: 26px;
    height: 4px;
    background: #a0b4c8;
    border-radius: 3px;
    margin: 7px auto 0;
}

/* ─── Reszponzív ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .spt-ref-full-section {
        grid-template-columns: 1fr !important;
    }

    .spt-ref-full-section.spt-ref-reverse { direction: ltr; }

    .spt-ref-full-visual {
        padding: 2rem 1.5rem !important;
        min-height: 240px;
    }

    .spt-ref-device-wrap {
        width: 300px;
        height: 215px;
    }

    .spt-ref-laptop-lg { width: 268px; }
    .spt-ref-laptop-lg-screen { height: 166px; }

    .spt-ref-mobile-lg { width: 72px; right: -4px; }
    .spt-ref-mobile-lg-screen { height: 118px; }

    .spt-ref-full-text { padding: 2rem 1.5rem !important; }
    .spt-ref-full-heading { font-size: 22px !important; }

    .spt-ref-mini-card { width: 180px !important; }
}

@media (max-width: 480px) {
    .spt-ref-device-wrap {
        width: 240px;
        height: 174px;
    }

    .spt-ref-laptop-lg { width: 214px; }
    .spt-ref-laptop-lg-screen { height: 132px; }

    .spt-ref-mobile-lg { width: 58px; right: -4px; }
    .spt-ref-mobile-lg-screen { height: 94px; }
}
