/* ==========================================================================
   "Προετοιμασία για Xmas και Black Friday" page
   (resources/views/landingpages/xmas-prep.blade.php)
   Loaded AFTER the Black Friday page CSS: buttons, cards, titles, trust,
   photos and the final section come from there ("bfl-" classes).
   Here only the new sections. All new classes start with "xp-".
   Colors: dark Christmas green + red, with the Black Friday yellow.
   ========================================================================== */

.xp {
    --xp-green: #0f3d2e;
    --xp-green-2: #17583f;
    --xp-red: #c8312f;
    --xp-cream: #fbf6ec;
}

/* Section titles on the light sections: Christmas green instead of the Black Friday purple.
   (Only these sections, so the dark ones keep their own colors.) */
.xp-timeline .bfl-section-title,
.xp-kits .bfl-section-title,
.xp-faq .bfl-section-title { color: var(--xp-green); }

/* ---------- 1. Hero ---------- */
.xp-hero {
    position: relative;
    overflow: hidden;
    padding: 110px 0 100px;
    color: #fff;
    background:
        radial-gradient(ellipse at 85% 10%, rgba(200, 49, 47, 0.45), transparent 55%),
        radial-gradient(ellipse at 10% 100%, rgba(246, 188, 22, 0.18), transparent 50%),
        linear-gradient(160deg, var(--xp-green) 0%, #0b2a20 100%);
}
.xp-hero__inner { position: relative; z-index: 1; }
.xp-hero__eyebrow {
    display: inline-block; margin-bottom: 22px; padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px;
    font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.xp-hero__title {
    max-width: 900px; margin: 0 0 22px;
    font-family: var(--bfl-display); font-weight: 900;
    font-size: clamp(2.3rem, 6.5vw, 4.8rem); line-height: 1.02;
    text-transform: uppercase; color: #fff;
}
.xp-hero__bf { color: var(--bfl-yellow); }
.xp-hero__xmas { color: #ff8a80; }
.xp-hero__text { max-width: 620px; margin: 0 0 26px; font-size: 1.1rem; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }
.xp-hero__badge {
    display: inline-block; margin-bottom: 30px; padding: 10px 18px;
    background: #000; color: #fff; border-radius: 10px; text-decoration: none;
    border-left: 4px solid var(--bfl-yellow); font-size: 0.95rem;
}
.xp-hero__badge strong { color: var(--bfl-yellow); }
.xp-hero__badge:hover { color: var(--bfl-yellow); }

/* Falling snow: two layers of small white dots that slide down */
.xp-hero__snow {
    position: absolute; inset: -200px 0 0; pointer-events: none; opacity: 0.5;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 120px 80px, #fff, transparent),
        radial-gradient(3px 3px at 200px 150px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 60px 190px, #fff, transparent);
    background-size: 240px 200px;
    animation: xpSnow 14s linear infinite;
}
@keyframes xpSnow { from { transform: translateY(0); } to { transform: translateY(200px); } }
@media (prefers-reduced-motion: reduce) { .xp-hero__snow { animation: none; } }

/* ---------- 2. Timeline ---------- */
.xp-timeline { padding: 90px 0; background: var(--xp-cream); }
.xp-timeline__list {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
    counter-reset: none;
}
.xp-timeline__item {
    position: relative; padding: 26px 22px 24px;
    background: #fff; border-radius: 16px; border-top: 5px solid var(--xp-green-2);
    box-shadow: 0 8px 24px rgba(15, 61, 46, 0.08);
}
.xp-timeline__item.is-now { border-top-color: var(--bfl-yellow); background: #111; color: #fff; }
.xp-timeline__item.is-now h3 { color: var(--bfl-yellow); }
.xp-timeline__item.is-now p { color: rgba(255, 255, 255, 0.8); }
.xp-timeline__when { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--xp-red); }
.xp-timeline__item.is-now .xp-timeline__when { color: var(--bfl-yellow); }
.xp-timeline__item h3 { margin: 8px 0 10px; font-size: 1.3rem; font-weight: 800; color: var(--xp-green); }
.xp-timeline__item p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: #444; }

/* ---------- 3. Checklist ---------- */
.xp-check { padding: 90px 0; background: var(--xp-green); }
.xp-check .bfl-section-title { color: #fff; }
.xp-check .bfl-section-text { color: rgba(255, 255, 255, 0.8); }
.xp-check__box { max-width: 820px; background: #fff; border-radius: 20px; padding: 28px; }
.xp-check__progress { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.xp-check__bar { flex: 1; height: 10px; background: #eef1ee; border-radius: 999px; overflow: hidden; }
.xp-check__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--xp-green-2), var(--bfl-yellow)); transition: width 0.4s ease; }
.xp-check__count { font-weight: 600; color: var(--xp-green); }
.xp-check__list { list-style: none; margin: 0; padding: 0; }
.xp-check__list li + li { border-top: 1px solid #eef0ee; }
.xp-check__item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 4px; cursor: pointer; margin: 0; }
.xp-check__item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.xp-check__tick {
    flex: 0 0 26px; width: 26px; height: 26px; margin-top: 1px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #c9d3cc; border-radius: 8px; color: transparent; transition: all 0.2s ease;
}
.xp-check__item input:checked + .xp-check__tick { background: var(--xp-green-2); border-color: var(--xp-green-2); color: #fff; }
.xp-check__item input:focus-visible + .xp-check__tick { outline: 3px solid var(--bfl-yellow); outline-offset: 2px; }
.xp-check__body strong { display: block; font-size: 1rem; color: #111; }
.xp-check__body small { display: block; margin-top: 3px; font-size: 0.88rem; line-height: 1.45; color: #666; }
.xp-check__item input:checked ~ .xp-check__body strong { color: #7a857e; text-decoration: line-through; }
.xp-check__done { margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: #fff7d6; font-weight: 700; color: #111; }
.xp-check__done a { color: var(--xp-red); }

/* ---------- 4. Kits ---------- */
.xp-kits { padding: 90px 0 40px; background: #fff; }
.xp-kit { margin-bottom: 56px; }
.xp-kit__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.xp-kit__icon {
    flex: 0 0 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: var(--xp-cream); color: var(--xp-red); font-size: 1.5rem;
}
.xp-kit__title { margin: 0 0 4px; font-size: 1.45rem; font-weight: 800; color: var(--xp-green); }
.xp-kit__text { margin: 0; color: #555; font-size: 0.95rem; }
.xp-kit__grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- 2b. "Ανά επιχείρηση" tabs ---------- */
.xp-biz { padding: 90px 0; background: #fff; }
.xp-biz .bfl-section-title { color: var(--xp-green); }
.xp-biz__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.xp-biz__tabs[hidden] { display: none; }
.xp-biz__tab {
    padding: 11px 22px; border-radius: 999px; cursor: pointer;
    border: 2px solid #e3e7e4; background: #fff; color: var(--xp-green);
    font-weight: 800; font-size: 0.95rem; transition: all 0.2s ease;
}
.xp-biz__tab:hover { border-color: var(--xp-green-2); }
.xp-biz__tab[aria-selected="true"] { background: var(--xp-green); border-color: var(--xp-green); color: #fff; }
.xp-biz__tab:focus-visible { outline: 3px solid var(--bfl-yellow); outline-offset: 2px; }

/* Without the script all panels show, so give them space between */
.xp-biz__panel + .xp-biz__panel { margin-top: 56px; }
.xp-biz__panel[hidden] { display: none; }
.xp-biz__tabs:not([hidden]) ~ .xp-biz__panel { margin-top: 0; }

.xp-biz__intro {
    display: grid; grid-template-columns: 420px 1fr; gap: 36px; align-items: center;
    background: var(--xp-cream); border-radius: 20px; padding: 24px; margin-bottom: 28px;
}
.xp-biz__photo { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: #eee; }
.xp-biz__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xp-biz__title { margin: 0 0 10px; font-size: 1.6rem; font-weight: 800; color: var(--xp-green); }
.xp-biz__text { margin: 0 0 16px; font-size: 1rem; line-height: 1.6; color: #333; }
.xp-biz__tips { list-style: none; margin: 0 0 22px; padding: 0; }
.xp-biz__tips li { display: flex; gap: 10px; padding: 5px 0; font-size: 0.95rem; color: #333; }
.xp-biz__tips i { color: var(--xp-red); font-size: 1.1rem; line-height: 1.3; }
.xp-biz__more { padding: 13px 24px; font-size: 0.95rem; }

/* Bundles and trust come right after the kits: soft cream to separate them */
.xp .bfl-bundles { background: var(--xp-cream); }

/* ---------- 8. FAQ ---------- */
.xp-faq { padding: 90px 0; background: var(--xp-cream); }
.xp-faq__list { max-width: 820px; }
.xp-faq__item { background: #fff; border-radius: 14px; margin-bottom: 12px; border: 1px solid #ece5d6; }
.xp-faq__item summary {
    list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
    font-weight: 700; color: #111;
}
.xp-faq__item summary::-webkit-details-marker { display: none; }
.xp-faq__item summary::after {
    content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    font-size: 1.4rem; color: var(--xp-red); transition: transform 0.2s ease;
}
.xp-faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.xp-faq__item p { margin: 0; padding: 0 20px 18px; color: #555; line-height: 1.6; }

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
    .xp-timeline__list { grid-template-columns: repeat(2, 1fr); }
    .xp-kit__grid { grid-template-columns: repeat(2, 1fr); }
    .xp-biz__intro { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Phone ---------- */
@media (max-width: 575px) {
    .xp-hero { padding: 70px 0 64px; }
    /* Smaller title so the long word "ΠΡΟΕΤΟΙΜΑΣΤΕΙΣ" fits on narrow phones */
    .xp-hero__title { font-size: clamp(1.6rem, 8.2vw, 2.3rem); }
    .xp-timeline, .xp-check, .xp-faq, .xp-biz { padding: 64px 0; }
    /* Tabs scroll sideways in one row instead of wrapping into many lines */
    .xp-biz__tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 22px; padding: 0 20px 4px; scrollbar-width: none; }
    .xp-biz__tab { flex: 0 0 auto; padding: 9px 16px; font-size: 0.88rem; }
    .xp-biz__intro { padding: 14px; }
    .xp-biz__title { font-size: 1.25rem; }
    .xp-biz__more { width: 100%; }
    .xp-kits { padding-top: 64px; }
    .xp-timeline__list { grid-template-columns: 1fr; }
    .xp-check__box { padding: 18px; }
    .xp-kit__grid { grid-template-columns: 1fr 1fr; gap: 12px; }

    /* Two narrow cards per row: smaller text and padding so they don't get too tall */
    .xp-kit__grid .bfl-card__body { padding: 12px 12px 14px; }
    .xp-kit__grid .bfl-card__title { font-size: 0.85rem; line-height: 1.3; }
    .xp-kit__grid .bfl-card__price { font-size: 0.75rem; }
    .xp-kit__grid .bfl-card__cta { font-size: 0.78rem; }
    .xp-kit__grid .bfl-card__sale { width: 52px; height: 52px; top: -8px; right: -6px; font-size: 0.95rem; }
    .xp-kit__title { font-size: 1.2rem; }
    .xp-kit__icon { flex-basis: 44px; height: 44px; font-size: 1.25rem; }
}
