/* ════════════════════════════════════════════════════════════
   WIDGETS EXTRA — Ilysha Design Blocks
   Tabs, Accordion, Pricing, Posts, Social, Map, Hours,
   Before/After, Flip, Logos, Progress, Counter, Search,
   Video, IconBox
   ════════════════════════════════════════════════════════════ */

/* ─── Tabs ─────────────────────────────────────────────────── */
.ilysha-tabs { padding: 60px 0; }
.ilysha-tabs__nav {
    display: flex; justify-content: center; gap: 8px;
    border-bottom: 1px solid var(--border); margin-bottom: 40px;
    flex-wrap: wrap;
}
.ilysha-tabs__btn {
    background: transparent; border: none; cursor: pointer;
    color: var(--text-muted); font-family: var(--font-sans);
    font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
    padding: 14px 24px; position: relative; transition: color .3s;
}
.ilysha-tabs__btn:hover { color: var(--text); }
.ilysha-tabs__btn.is-active { color: var(--gold); }
.ilysha-tabs__btn.is-active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
    height: 2px; background: var(--gold);
}
.ilysha-tabs__panel { display: none; color: var(--text-muted); line-height: 1.8; }
.ilysha-tabs__panel.is-active { display: block; animation: ilyshaFade .4s ease; }
@keyframes ilyshaFade { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none;} }

/* ─── Accordion ────────────────────────────────────────────── */
.ilysha-accordion { max-width: 820px; margin: 0 auto; padding: 40px 0; }
.ilysha-accordion__item {
    border-bottom: 1px solid var(--border);
    padding: 6px 0;
}
.ilysha-accordion__title {
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; padding: 22px 0; color: var(--text);
    font-family: var(--font-serif); font-size: 20px; font-weight: 500;
    transition: color .3s;
}
.ilysha-accordion__title:hover { color: var(--gold); }
.ilysha-accordion__icon {
    color: var(--gold); font-size: 22px; transition: transform .3s;
    line-height: 1;
}
.ilysha-accordion__item.is-open .ilysha-accordion__icon { transform: rotate(45deg); }
.ilysha-accordion__content {
    max-height: 0; overflow: hidden; color: var(--text-muted); line-height: 1.8;
    transition: max-height .4s ease, padding .3s ease;
}
.ilysha-accordion__item.is-open .ilysha-accordion__content {
    max-height: 600px; padding: 0 0 22px;
}

/* ─── Pricing ──────────────────────────────────────────────── */
.ilysha-pricing { padding: 80px 0; }
.ilysha-pricing__grid {
    display: grid; gap: 28px; max-width: 1100px; margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.ilysha-pricing__plan {
    background: var(--bg-alt); border: 1px solid var(--border);
    padding: 44px 32px; text-align: center; position: relative;
    transition: transform .3s, border-color .3s;
}
.ilysha-pricing__plan:hover { border-color: var(--gold); }
.ilysha-pricing__plan.is-featured {
    transform: translateY(-8px); border-color: var(--gold);
    box-shadow: 0 20px 60px rgba(var(--gold-rgb), 0.08);
}
.ilysha-pricing__badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--gold); color: var(--bg); font-size: 11px;
    letter-spacing: 2px; text-transform: uppercase; padding: 6px 18px;
    font-weight: 600;
}
.ilysha-pricing__title {
    font-family: var(--font-serif); font-size: 28px; color: var(--gold);
    margin-bottom: 8px;
}
.ilysha-pricing__desc { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.ilysha-pricing__price { margin-bottom: 28px; }
.ilysha-pricing__amount {
    font-family: var(--font-serif); font-size: 56px; color: var(--text);
    line-height: 1;
}
.ilysha-pricing__period { color: var(--text-muted); font-size: 13px; }
.ilysha-pricing__features {
    list-style: none; padding: 0; margin: 0 0 32px;
    text-align: left; max-width: 240px; margin-left: auto; margin-right: auto;
}
.ilysha-pricing__features li {
    padding: 10px 0; border-bottom: 1px solid var(--border);
    color: var(--text-muted); font-size: 14px;
    display: flex; align-items: center; gap: 10px;
}
.ilysha-pricing__features li::before {
    content: "✓"; color: var(--gold); font-weight: 700;
}

/* ─── Posts Grid ──────────────────────────────────────────── */
.ilysha-posts { padding: 80px 0; }
.ilysha-posts__grid {
    display: grid; gap: 32px;
    grid-template-columns: repeat(var(--cols, 3), 1fr);
    max-width: 1200px; margin: 0 auto;
}
@media (max-width: 900px) { .ilysha-posts__grid { grid-template-columns: 1fr; } }
.ilysha-post-card {
    background: var(--bg-alt); border: 1px solid var(--border);
    text-decoration: none; transition: transform .3s, border-color .3s;
    display: block; color: inherit;
}
.ilysha-post-card:hover {
    transform: translateY(-6px); border-color: var(--gold);
}
.ilysha-post-card__thumb {
    width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block;
}
.ilysha-post-card__body { padding: 24px; }
.ilysha-post-card__date {
    color: var(--gold); font-size: 11px; letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 10px;
}
.ilysha-post-card__title {
    font-family: var(--font-serif); font-size: 22px; color: var(--text);
    margin: 0 0 10px; line-height: 1.3;
}
.ilysha-post-card__excerpt { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ─── Social Icons ─────────────────────────────────────────── */
.ilysha-social {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    padding: 20px 0;
}
.ilysha-social__link {
    width: 44px; height: 44px; display: inline-flex;
    align-items: center; justify-content: center;
    color: var(--gold); transition: all .3s;
    border-radius: 50%;
}
.ilysha-social--outline .ilysha-social__link {
    border: 1px solid var(--border);
}
.ilysha-social--outline .ilysha-social__link:hover {
    border-color: var(--gold); background: var(--gold); color: var(--bg);
}
.ilysha-social--solid .ilysha-social__link {
    background: var(--gold); color: var(--bg);
}
.ilysha-social--solid .ilysha-social__link:hover {
    background: var(--gold-dark);
}
.ilysha-social--minimal .ilysha-social__link:hover { color: var(--text); }
.ilysha-social__link svg { width: 20px; height: 20px; }

/* ─── Map ──────────────────────────────────────────────────── */
.ilysha-map {
    width: 100%; border: 1px solid var(--border);
    filter: grayscale(40%) contrast(1.05);
    display: block;
}
.ilysha-map-wrap { padding: 40px 0; }

/* ─── Opening Hours ────────────────────────────────────────── */
.ilysha-hours { max-width: 420px; margin: 0 auto; padding: 40px 0; }
.ilysha-hours__row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0; border-bottom: 1px solid var(--border);
}
.ilysha-hours__day {
    color: var(--text); font-family: var(--font-serif); font-size: 17px;
}
.ilysha-hours__time {
    color: var(--text-muted); font-size: 14px;
    letter-spacing: 1px;
}

/* ─── Before / After ──────────────────────────────────────── */
.ilysha-ba {
    position: relative; max-width: 900px; margin: 0 auto;
    aspect-ratio: 16/10; overflow: hidden;
    border: 1px solid var(--border); user-select: none;
}
.ilysha-ba__img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover;
}
.ilysha-ba__after-wrap {
    position: absolute; inset: 0; width: 50%; overflow: hidden;
    border-right: 2px solid var(--gold);
}
.ilysha-ba__slider {
    position: absolute; top: 0; bottom: 0; left: 50%;
    width: 2px; background: var(--gold); pointer-events: none;
    z-index: 3;
}
.ilysha-ba__handle {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--gold); color: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; cursor: ew-resize; z-index: 4;
    box-shadow: 0 4px 20px rgba(var(--gold-rgb), 0.4);
}
.ilysha-ba__range {
    position: absolute; inset: 0; width: 100%; height: 100%;
    opacity: 0; cursor: ew-resize; z-index: 5;
}
.ilysha-ba__label {
    position: absolute; top: 14px; color: var(--text);
    background: rgba(0,0,0,0.6); padding: 6px 14px;
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    z-index: 2;
}
.ilysha-ba__label--before { left: 14px; }
.ilysha-ba__label--after { right: 14px; }

/* ─── Flip Card ────────────────────────────────────────────── */
.ilysha-flip {
    perspective: 1000px; width: 100%; aspect-ratio: 1/1;
    max-width: 320px; margin: 0 auto;
}
.ilysha-flip__inner {
    position: relative; width: 100%; height: 100%;
    transition: transform .8s cubic-bezier(.4,0,.2,1);
    transform-style: preserve-3d;
}
.ilysha-flip:hover .ilysha-flip__inner { transform: rotateY(180deg); }
.ilysha-flip__face {
    position: absolute; inset: 0;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 32px; text-align: center;
    border: 1px solid var(--border); background: var(--bg-alt);
}
.ilysha-flip__back { transform: rotateY(180deg); background: var(--gold); color: var(--bg); }
.ilysha-flip__title { font-family: var(--font-serif); font-size: 24px; margin-bottom: 12px; }
.ilysha-flip__text { font-size: 14px; line-height: 1.7; opacity: .9; }

/* ─── Logo Carousel ───────────────────────────────────────── */
.ilysha-logo-carousel {
    overflow: hidden; padding: 40px 0;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ilysha-logo-carousel__track {
    display: flex; gap: 60px; width: max-content;
    animation: ilyshaLogoScroll 35s linear infinite;
}
.ilysha-logo-carousel__item {
    height: 48px; filter: grayscale(100%) brightness(1.4);
    opacity: .6; transition: opacity .3s, filter .3s;
    flex-shrink: 0;
}
.ilysha-logo-carousel__item:hover { opacity: 1; filter: grayscale(0); }
@keyframes ilyshaLogoScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ─── Progress Bars ───────────────────────────────────────── */
.ilysha-progress-list { max-width: 620px; margin: 0 auto; padding: 40px 0; }
.ilysha-progress { margin-bottom: 24px; }
.ilysha-progress__header {
    display: flex; justify-content: space-between; margin-bottom: 8px;
    font-family: var(--font-serif); color: var(--text);
}
.ilysha-progress__label { font-size: 16px; }
.ilysha-progress__value { color: var(--gold); font-size: 14px; }
.ilysha-progress__track {
    height: 6px; background: var(--border); position: relative; overflow: hidden;
}
.ilysha-progress__fill {
    height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

/* ─── Counter (animated numbers) ──────────────────────────── */
.ilysha-counter { text-align: center; padding: 30px 16px; }
.ilysha-counter__num {
    font-family: var(--font-serif); font-size: 64px; color: var(--gold);
    line-height: 1; margin-bottom: 8px;
}
.ilysha-counter__label {
    color: var(--text-muted); font-size: 12px;
    letter-spacing: 2px; text-transform: uppercase;
}

/* ─── Search Bar ──────────────────────────────────────────── */
.ilysha-search-bar {
    max-width: 520px; margin: 0 auto; padding: 20px 0;
    display: flex; gap: 0; border: 1px solid var(--border);
    transition: border-color .3s;
}
.ilysha-search-bar:focus-within { border-color: var(--gold); }
.ilysha-search-bar__input {
    flex: 1; background: transparent; border: none; outline: none;
    padding: 14px 18px; color: var(--text); font-size: 14px;
    font-family: var(--font-sans);
}
.ilysha-search-bar__input::placeholder { color: var(--text-faint); }
.ilysha-search-bar__btn {
    background: var(--gold); color: var(--bg); border: none;
    padding: 0 24px; cursor: pointer; font-size: 12px;
    letter-spacing: 2px; text-transform: uppercase; font-weight: 600;
    transition: background .3s;
}
.ilysha-search-bar__btn:hover { background: var(--gold-dark); }

/* ─── Video (lightbox) ────────────────────────────────────── */
.ilysha-video {
    position: relative; max-width: 960px; margin: 0 auto;
    aspect-ratio: 16/9; overflow: hidden; cursor: pointer;
    border: 1px solid var(--border);
}
.ilysha-video__poster {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s;
}
.ilysha-video:hover .ilysha-video__poster { transform: scale(1.03); }
.ilysha-video__overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
}
.ilysha-video__play {
    width: 84px; height: 84px; border-radius: 50%;
    background: var(--gold); display: flex; align-items: center; justify-content: center;
    color: var(--bg); transition: transform .3s;
    box-shadow: 0 8px 32px rgba(var(--gold-rgb), 0.4);
}
.ilysha-video:hover .ilysha-video__play { transform: scale(1.1); }
.ilysha-video__play svg { width: 32px; height: 32px; margin-left: 4px; }
.ilysha-video__title {
    color: var(--text); font-family: var(--font-serif); font-size: 24px;
    margin-top: 18px; text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.ilysha-video-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.95);
    display: none; align-items: center; justify-content: center;
    z-index: 9999; padding: 40px;
}
.ilysha-video-modal.is-open { display: flex; }
.ilysha-video-modal iframe {
    width: 100%; max-width: 1000px; aspect-ratio: 16/9; border: none;
}
.ilysha-video-modal__close {
    position: absolute; top: 20px; right: 20px;
    background: transparent; border: none; color: var(--text);
    font-size: 36px; cursor: pointer;
}

/* ─── Icon Box ─────────────────────────────────────────────── */
.ilysha-icon-box {
    text-align: center; padding: 32px 20px;
    transition: transform .3s;
}
.ilysha-icon-box:hover { transform: translateY(-6px); }
.ilysha-icon-box__icon {
    width: 64px; height: 64px; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 32px;
}
.ilysha-icon-box__title {
    font-family: var(--font-serif); font-size: 22px; color: var(--text);
    margin-bottom: 12px;
}
.ilysha-icon-box__text {
    color: var(--text-muted); font-size: 14px; line-height: 1.7;
    margin-bottom: 16px;
}
.ilysha-icon-box__link {
    color: var(--gold); text-decoration: none;
    font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
    border-bottom: 1px solid var(--gold); padding-bottom: 2px;
    transition: color .3s;
}
.ilysha-icon-box__link:hover { color: var(--gold-dark); }
