/*
    Σελίδες φτιαγμένες από ενότητες (blocks).
    Σερβίρεται ως /_content/QuisAdminPanel/css/blocks.css, ίδιο σε όλα τα sites.

    Τα χρώματα και τα στρογγυλέματα είναι μεταβλητές: κάθε site τα αλλάζει στο δικό του CSS,
    ορίζοντας ξανά τις μεταβλητές μέσα σε .qb ή στο :root. Μην αντιγράφεις κανόνες στο site.

    Προϋποθέσεις: Bootstrap 5 (grid, accordion) και μία γραμματοσειρά εικονιδίων
    (Font Awesome ή Bootstrap Icons) — το πλήρες όνομα των κλάσεων μπαίνει από τα δεδομένα.
*/

.qb {
    --qb-primary: #301b7b;
    --qb-accent: #902da5;
    --qb-ink: #1d1b26;
    --qb-text: #4a4760;
    --qb-intro: #55526a;
    --qb-small: #6b6878;
    --qb-border: #e2e0ea;
    --qb-tint: #ece8f7;
    --qb-surface: #f0f0f6;
    --qb-hero-bg: linear-gradient(135deg, #301b7b 0%, #5a2a93 55%, #902da5 100%);
    --qb-radius: 20px;
    --qb-radius-small: 12px;
    /* Το σημάδι της λίστας. Με Bootstrap Icons π.χ. "bootstrap-icons" και "\f26e". */
    --qb-list-icon-font: "Font Awesome 5 Free";
    --qb-list-icon: "\f00c";
    --qb-list-icon-weight: 900;

    letter-spacing: normal;
    color: var(--qb-ink);
}

.qb h1, .qb h2, .qb h3 {
    color: var(--qb-primary);
    letter-spacing: normal;
}

/* Ενότητα, κοινά */
.qb-section { margin-top: 56px; }
.qb-section > h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; }
.qb-section > .qb-intro { color: var(--qb-intro); font-size: 1.05rem; margin-bottom: 24px; }
.qb-small { color: var(--qb-small); font-size: .9rem; }

/* Εικόνες */
.qb-phone {
    display: block;
    width: 100%;
    max-width: 280px;
    border-radius: 28px;
    border: 8px solid var(--qb-ink);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
    background: #fff;
}

.qb-image, .qb-desktop {
    display: block;
    width: 100%;
    border-radius: var(--qb-radius-small);
    border: 1px solid var(--qb-border);
    box-shadow: 0 12px 30px rgba(48, 27, 123, .18);
}

/* Κουμπιά */
.qb-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.qb-btn { display: inline-block; padding: 12px 22px; border-radius: var(--qb-radius-small); font-weight: 600; text-decoration: none; }
.qb-btn-light { background: #fff; color: var(--qb-primary); }
.qb-btn-light:hover { color: var(--qb-accent); }
.qb-btn-outline { border: 2px solid rgba(255, 255, 255, .8); color: #fff; }
.qb-btn-outline:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.qb-btn-primary { background: var(--qb-primary); color: #fff; }
.qb-btn-primary:hover { background: var(--qb-accent); color: #fff; }

/* hero */
.qb-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
    padding: 40px 32px;
    border-radius: var(--qb-radius);
    background: var(--qb-hero-bg);
    color: #fff;
}

.qb-hero h1 { color: #fff; font-size: 2.6rem; font-weight: 700; margin-bottom: 8px; }
.qb-hero .qb-lead { font-size: 1.35rem; font-weight: 600; margin-bottom: 16px; }
.qb-hero p { font-size: 1.05rem; line-height: 1.6; opacity: .95; }
.qb-hero-text { flex: 1 1 360px; }
.qb-hero-image { flex: 0 1 280px; margin: 0 auto; }

.qb-badge {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    margin-top: 20px;
    padding: 10px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .35);
}

.qb-badge strong { font-size: 1.6rem; font-weight: 700; color: #fff; }
.qb-badge span { font-size: .95rem; opacity: .9; }

/* Το hero είναι συνήθως πρώτο. Αν μπει πιο κάτω, θέλει απόσταση από την προηγούμενη ενότητα. */
.qb > * + .qb-hero { margin-top: 56px; }

/* cards */
.qb-card { height: 100%; padding: 22px; border: 1px solid var(--qb-border); border-radius: 16px; background: #fff; }
.qb-card h3 { font-size: 1.1rem; font-weight: 700; margin: 12px 0 8px; }
.qb-card p { margin: 0; color: var(--qb-text); line-height: 1.55; }
.qb-card p + p { margin-top: .6rem; }

.qb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--qb-radius-small);
    background: var(--qb-tint);
    color: var(--qb-primary);
    font-size: 1.3rem;
}

/* steps */
.qb-steps { counter-reset: step; }
.qb-step { position: relative; padding-left: 56px; margin-bottom: 20px; }

.qb-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--qb-primary);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qb-step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.qb-step p { margin: 0; color: var(--qb-text); }
.qb-step p + p { margin-top: .6rem; }

/* gallery */
.qb-gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.qb-gallery-item { flex: 0 1 240px; text-align: center; }
.qb-gallery-item span { color: var(--qb-text); font-size: .95rem; }

.qb-gallery-item .qb-phone {
    max-width: 240px;
    margin: 0 auto 12px;
    border-width: 7px;
    box-shadow: 0 12px 30px rgba(48, 27, 123, .25);
}

.qb-gallery-item .qb-image { margin-bottom: 12px; }

/* list */
.qb-list { padding-left: 0; list-style: none; }
.qb-list li { position: relative; padding-left: 30px; margin-bottom: 10px; line-height: 1.55; }

.qb-list li::before {
    content: var(--qb-list-icon);
    font-family: var(--qb-list-icon-font);
    font-weight: var(--qb-list-icon-weight);
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--qb-accent);
}

/* faq */
.qb-faq .accordion-button { font-weight: 600; letter-spacing: normal; }
.qb-faq .accordion-button:not(.collapsed) { color: var(--qb-primary); background: var(--qb-tint); }

/* cta */
.qb-cta { margin-top: 56px; padding: 32px; border-radius: var(--qb-radius); background: var(--qb-surface); text-align: center; }
.qb-cta h2 { font-weight: 700; }
.qb-cta .qb-actions { justify-content: center; }
.qb-cta .qb-btn-light { border: 2px solid var(--qb-primary); }

@media (max-width: 576px) {
    .qb-hero { padding: 28px 18px; }
    .qb-hero h1 { font-size: 2rem; }
}
