
/* =====================================================
/assets/ui/ljh-campaign.css
LJH Campaign Module – CLEAN STABLE VERSION

CAMPAIGN SECTIONS

- Campaign roof section

- Carousel section
===================================================== */


/* =====================================================
CAMPAIGN – ROOF (TOP SECTION)
===================================================== */

.ljh-campaign-roof {
    position: relative;
    margin-top: 26px; /* 🔥 exakt avstånd från rubriken */

    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 40px;
}

/* PANEL */

.ljh-campaign-panel {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 720px; /* 🔥 större igen som innan */

    padding: 28px 36px;
    border-radius: 16px;

    text-align: center;

    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.96),
        rgba(240,245,255,0.94)
    );

    border: 3px solid #e6c36a;

    box-shadow:
        0 20px 60px rgba(0,0,0,0.45),
        inset 0 2px 10px rgba(255,255,255,0.7);

    transform: translateY(-6px); /* 🔥 lyfter upp panelen */
}

/* =====================================================
CAMPAIGN – CTA
===================================================== */

.ljh-campaign-btn {
    display: inline-block;
    margin-top: 16px;

    padding: 12px 20px;

    text-decoration: none;
    border-radius: 14px;

    font-weight: 600;

    background: linear-gradient(
        145deg,
        #fff6b0,
        #f3d76a,
        #d4a21e
    );

    border: 2px solid #c99b18;

    box-shadow:
        0 4px 12px rgba(0,0,0,0.35);

    transition: transform 0.2s ease;
}

.ljh-campaign-btn:hover {
    transform: translateY(-1px);
}

/* =====================================================
CAMPAIGN – DOUBLE ROW LIGHTS
===================================================== */

.ljh-campaign-lights {
    position: absolute;

    top: -46px; /* 🔥 justera höjd */
    left: 50%;
    transform: translateX(-50%);

    width: 100%;
    max-width: 760px; /* lite större än panel */

    pointer-events: none;
    z-index: 1;
}

.ljh-light-row {
    height: 10px;
    margin: 4px 0;
    border-radius: 999px;

    animation: ljh-blink 1.2s infinite linear;
}

/* TOP – mindre */
.ljh-light-row.top {
    background-image: radial-gradient(circle, #ffe38a 3px, transparent 4px);
    background-size: 22px 10px;

    filter: drop-shadow(0 0 6px rgba(255,215,120,0.6));
}

/* BOTTOM – större */
.ljh-light-row.bottom {
    background-image: radial-gradient(circle, #ffe38a 5px, transparent 6px);
    background-size: 28px 12px;

    filter:
        drop-shadow(0 0 10px rgba(255,215,120,0.8))
        drop-shadow(0 2px 4px rgba(0,0,0,0.25));

    animation-delay: 0.6s;
}

@keyframes ljh-blink {
    0%   { opacity: 0.6; }
    50%  { opacity: 1; }
    100% { opacity: 0.6; }
}


/* =====================================================
CAMPAIGN – TITLE & TEXTS
===================================================== */

.ljh-campaign-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 6px;

    color: #5b8fe8; /* mjuk blå */
    letter-spacing: 0.3px;
}

/* =====================================================
   CAMPAIGN BADGE – READABLE FIX
===================================================== */

.ljh-campaign-badge {

  font-weight: 700;
  font-size: 0.95rem;

  color: rgba(255,255,255,0.92); /* 🔥 mycket tydligare */

  padding: 6px 12px;
  border-radius: 12px;

  backdrop-filter: blur(10px);

  letter-spacing: 0.2px;
}


/* -----------------------------
   ACTIVE (metallic blue)
----------------------------- */

.ljh-campaign-badge.is-active {
  background: linear-gradient(
    180deg,
    rgba(60,140,255,0.55),
    rgba(20,80,180,0.65)
  );

  border: 1px solid rgba(120,180,255,0.6);
}


/* -----------------------------
   WARNING (metallic orange)
----------------------------- */

.ljh-campaign-badge.is-warning {
  background: linear-gradient(
    180deg,
    rgba(255,160,60,0.55),
    rgba(180,90,20,0.65)
  );

  border: 1px solid rgba(255,190,120,0.6);
}


/* -----------------------------
   ENDED (metallic red)
----------------------------- */

.ljh-campaign-badge.is-ended {
  background: linear-gradient(
    180deg,
    rgba(255,80,80,0.55),
    rgba(160,30,30,0.65)
  );

  border: 1px solid rgba(255,120,120,0.6);
}


/* -----------------------------
   UPCOMING (soft blue)
----------------------------- */

.ljh-campaign-badge.is-upcoming {
  background: linear-gradient(
    180deg,
    rgba(120,180,255,0.45),
    rgba(40,100,200,0.55)
  );

  border: 1px solid rgba(150,200,255,0.6);
}

.ljh-campaign-description {
    font-size: 22px;
    margin-top: 8px;
    margin-bottom: 18px;

    color: #4a5f7a;
    opacity: 0.9;
}

.ljh-campaign-price {
    font-size: 36px;
    font-weight: 700;

    color: #1b5e20;

    margin-bottom: 6px;

    text-shadow:
        0 0 6px rgba(76,175,80,0.25);
}

.ljh-campaign-price span {
    font-size: 18px;
    font-weight: 500;
    color: #6b7f99;
    margin-left: 6px;
}

.ljh-campaign-value {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;

    font-size: 15px;
    margin-bottom: 14px;
}

.ljh-old-price {
    text-decoration: line-through;
    color: #9aa6b8;
}

.ljh-discount {
    color: #2e7d32;
    font-weight: 600;
}

.ljh-campaign-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* =====================================================
CAROUSEL – CONTAINER
===================================================== */

.ljh-carousel {
    width: 100%;
    margin-top: 10px;
    background: transparent;

    overflow: hidden;
}

/* =====================================================
CAROUSEL – TRACK (RADEN)
===================================================== */

.ljh-carousel-track {
    display: flex;
    background: transparent;

    transition: transform 0.4s ease; /* redo för slide senare */
}

/* =====================================================
CAROUSEL – SLIDE (VIEWPORT)
===================================================== */

.ljh-carousel-slide {
    flex: 0 0 100%; /* 🔥 EN SLIDE TAR HELA BREDDEN */

    display: flex;
    justify-content: center; /* 🔥 CENTRERAR KORTET */
    cursor: grab;
}

.ljh-carousel-slide.dragging {
    opacity: 0.4;
    transform: scale(0.98);
    cursor: grabbing;
}

/* =====================================================
CAROUSEL – CARD
===================================================== */

.ljh-carousel-card {
    position: relative; /* säkerställer rätt positionering */

    width: 100%;
    max-width: 480px; /* 🔥 öka från 360 → 480 */

    border-radius: 14px;
    overflow: hidden;

    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);

    box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}

.ljh-carousel-card .ljh-campaign-content {
    display: none;
}


/* =====================================================
CAROUSEL – SORT ICON
===================================================== */

.ljh-sort-icon {
    width: 120px;
    height: 60px;
    user-select: none;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        145deg,
        #0b1f3a,
        #112e55
    );

    border: 2px solid rgba(200,200,200,0.4);

    box-shadow:
        0 6px 14px rgba(0,0,0,0.35),
        inset 0 1px 2px rgba(255,255,255,0.1);

    cursor: grab;
    position: relative;

    flex-shrink: 0;
}

.ljh-sort-number {
    font-size: 22px;
    font-weight: 700;
    color: #dbe9ff;
    letter-spacing: 1px;
}

.ljh-sort-icon.dragging {
    opacity: 0.4;
    transform: scale(0.95);
}

.ljh-sort-icon::before {
    content: "🖼";

    position: absolute;
    top: 6px;
    left: 8px;

    font-size: 12px;
    opacity: 0.7;
}


/* =====================================================
CAROUSEL – SORT CARD
===================================================== */

.ljh-carousel-sort-mode {
    position: relative;

    margin-top: 28px;
    padding: 18px 20px;

    border-radius: 18px;

    display: flex;
    gap: 18px;
    overflow-x: auto;

    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0.02)
    );

    backdrop-filter: blur(10px);

    box-shadow:
        inset 0 2px 6px rgba(255,255,255,0.08),
        0 12px 30px rgba(0,0,0,0.35);
}

.ljh-sort-card {
    min-width: 200px;
    flex-shrink: 0;

    padding: 8px;
    border-radius: 12px;

    background: rgba(0,0,0,0.25);

    cursor: grab;

    transition: transform 0.15s ease;
}

.ljh-sort-card:hover {
    transform: translateY(-2px);
}

.ljh-carousel-sort-mode::before {
    content: "";

    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);

    width: 60%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,215,120,0.6),
        transparent
    );
}

.ljh-sort-card img {
    width: 100%;
    border-radius: 10px;
    pointer-events: none;
}

.ljh-sort-card.dragging {
    opacity: 0.5;
    transform: scale(0.96);
}

.ljh-sort-content {
    margin-top: 6px;
    font-size: 13px;
}


/* =====================================================
CAROUSEL – DRAG & DROP
===================================================== */

.ljh-drop-zone {
    margin-top: 10px;
    padding: 12px;
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    color: #9fb3c8;
}

.ljh-drop-zone.dragover {
    border-color: #5b8fe8;
    background: rgba(91,143,232,0.08);
}


/* =====================================================
CAROUSEL – IMAGE
===================================================== */

.ljh-carousel-image {
    width: 100%;
    height: 100%;
    pointer-events: none;

    aspect-ratio: 2 / 1;
    object-fit: cover;

    display: block;
}


/* =====================================================
CAROUSEL – DELETE BUTTON
===================================================== */

.ljh-carousel-delete-btn {
    position: absolute;
    z-index: 10; /* så den alltid ligger över bilden */
    transition: transform 0.15s ease, background 0.2s ease;

    top: 10px;
    right: 10px; /* 🔥 höger istället för vänster */

    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: #ff3b3b;
    color: #fff;

    border: none;
    cursor: pointer;

    font-size: 16px;
    font-weight: bold;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 4px 10px rgba(0,0,0,0.4);
}

.ljh-carousel-delete-btn:hover {
    background: #ff1f1f;
    transform: scale(1.05);
}

.ljh-carousel-delete-btn:active {
    transform: scale(0.92);
}







