/* ============================================================
   OWRITE TOOLS HUB v2 — Swipe Deck
   Syne + Crimson Pro · Lime × Dark Pill · Full-Bleed
   ============================================================ */

/* ── FULL-BLEED + NAVBAR COVER ──────────────────────────── */
.oth-root {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    min-height: 100vh;
    background: #CAFF00;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* padding-top ditambah JS setelah header height diketahui */
    padding: 72px 20px 72px;
    overflow: hidden;
    box-sizing: border-box;
    /* Z-index 99999 — beats Elementor header (9999) & sticky bars */
    z-index: 99999;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
        linear-gradient(160deg, #CAFF00 60%, #b8f000 100%);
}

/* ── SPARKLES ───────────────────────────────────────────── */
.oth-spark {
    position: absolute;
    color: rgba(0,40,0,0.28);
    pointer-events: none;
    z-index: 0;
    animation: oth-sparkle 3s ease-in-out infinite;
    font-style: normal;
    line-height: 1;
}
.oth-spark-1 { top:68px;  left:7%;  font-size:26px; animation-delay:0s;   }
.oth-spark-2 { top:150px; right:6%; font-size:17px; animation-delay:1.4s; }
.oth-spark-3 { top:52%;   left:4%;  font-size:13px; animation-delay:0.8s; }
.oth-spark-4 { top:68%;   right:8%; font-size:15px; animation-delay:2.2s; }

@keyframes oth-sparkle {
    0%,100% { opacity:.4; transform:scale(1)   rotate(0deg);  }
    50%      { opacity:.9; transform:scale(1.35) rotate(20deg); }
}

/* ── HEADER ─────────────────────────────────────────────── */
.oth-header {
    text-align: center;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
    animation: oth-fadeIn 0.6s ease both;
}

@keyframes oth-fadeIn {
    from { opacity:0; transform:translateY(14px); }
    to   { opacity:1; transform:translateY(0); }
}

.oth-eyebrow {
    display: inline-block;
    font-family: 'Syne', -apple-system, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #1a2e00;
    background: rgba(0,0,0,0.09);
    padding: 5px 16px;
    border-radius: 99px;
    margin-bottom: 16px;
}

.oth-title {
    font-family: 'Syne', -apple-system, sans-serif;
    font-size: clamp(40px, 10vw, 76px);
    font-weight: 800;
    color: #0a1200;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.oth-title em {
    font-family: 'Crimson Pro', 'Georgia', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 0.82em;
    color: #1a2e00;
    display: block;
}

.oth-sub {
    font-family: 'Crimson Pro', 'Georgia', serif;
    font-size: 17px;
    color: #2a3e00;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── COUNT LABEL ─────────────────────────────────────────── */
.oth-count-lbl {
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(10,18,0,0.42);
    margin-bottom: 24px;
    z-index: 1;
    position: relative;
}

/* ── DECK STAGE ─────────────────────────────────────────── */
.oth-deck-stage {
    position: relative;
    width: 100%;
    max-width: 560px;
    /* Height auto-set by JS based on card height */
    z-index: 2;
    margin-bottom: 28px;
}

/* ── CARD WRAPPER (positioned by JS) ───────────────────── */
.oth-card-wrap {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    /* transition managed by JS for drag; CSS for snap-back */
    will-change: transform;
    touch-action: none;
}

.oth-card-wrap.oth-snap {
    transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1),
                opacity  0.3s ease;
}

.oth-card-wrap.oth-fly-left {
    transition: transform 0.38s cubic-bezier(0.55,0,1,0.45),
                opacity 0.38s ease;
}

.oth-card-wrap.oth-fly-right {
    transition: transform 0.38s cubic-bezier(0.55,0,1,0.45),
                opacity 0.38s ease;
}

/* ── PILL CARD ───────────────────────────────────────────── */
.oth-pill {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #091a04;
    border-radius: 999px;
    padding: 15px 22px 15px 15px;
    text-decoration: none;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    /* Shadow lives HERE on the pill — follows border-radius, no kotak */
}

/* Front card pill shadow */
.oth-card-wrap[data-pos="0"] .oth-pill {
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

/* Second card pill shadow — softer */
.oth-card-wrap[data-pos="1"] .oth-pill {
    box-shadow: 0 4px 14px rgba(0,0,0,0.13);
}

/* Dragging — deeper shadow on pill */
.oth-card-wrap.oth-dragging .oth-pill {
    box-shadow: 0 24px 56px rgba(0,0,0,0.32) !important;
}

/* ── DIRECTION LABELS ────────────────────────────────────── */
.oth-label-left,
.oth-label-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.1s;
}

.oth-label-left {
    left: 20px;
    color: #ff4444;
    border: 2px solid #ff4444;
    transform: translateY(-50%) rotate(-8deg);
}

.oth-label-right {
    right: 20px;
    color: #CAFF00;
    border: 2px solid #CAFF00;
    transform: translateY(-50%) rotate(8deg);
}

/* ── ICON ─────────────────────────────────────────────────── */
.oth-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 999px;
    background: #CAFF00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    line-height: 1;
}

/* ── TEXT ─────────────────────────────────────────────────── */
.oth-pill-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.oth-pill-name {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #CAFF00;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oth-pill-desc {
    font-family: 'Crimson Pro', 'Georgia', serif;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── ARROW ─────────────────────────────────────────────────── */
.oth-pill-arrow {
    color: rgba(202,255,0,0.45);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: color 0.15s, transform 0.18s;
}

.oth-pill-arrow svg {
    width: 20px !important;
    height: 20px !important;
    display: block;
}

/* ── HINT ───────────────────────────────────────────────────── */
.oth-hint {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(10,18,0,0.38);
    z-index: 1;
    margin-bottom: 16px;
}

.oth-hint-sep {
    width: 1px;
    height: 12px;
    background: rgba(0,0,0,0.2);
}

/* ── DOTS ───────────────────────────────────────────────────── */
.oth-dots {
    display: flex;
    gap: 5px;
    z-index: 1;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 240px;
}

.oth-dot {
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: rgba(0,0,0,0.18);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.oth-dot--active {
    width: 20px;
    background: #0a1200;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.oth-footer {
    margin-top: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.oth-footer-link {
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #0a1200;
    text-decoration: none;
    padding: 10px 24px;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.oth-footer-link:hover {
    background: #0a1200;
    color: #CAFF00;
    border-color: #0a1200;
}

/* ── DARK MODE — tetap lime ─────────────────────────────── */
.dark-mode .oth-root, .dark .oth-root,
.e--dark .oth-root, .dark-layout .oth-root {
    background: #CAFF00 !important;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 600px) {
    .oth-root { padding: 52px 16px 60px; }
    .oth-deck-stage { max-width: 100%; }
    .oth-pill { padding: 13px 16px 13px 13px; gap: 14px; }
    .oth-icon { width: 44px; height: 44px; min-width: 44px; font-size: 20px; }
    .oth-pill-name { font-size: 15px; }
    .oth-pill-desc { font-size: 13px; }
}

@media (max-width: 380px) {
    .oth-pill-desc { display: none; }
}

/* ── DESKTOP ARROW NAV ───────────────────────────────────── */
.oth-arrow-nav {
    display: none; /* shown only on desktop via JS */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: #0a1200;
    border: none;
    cursor: pointer;
    color: #CAFF00;
    align-items: center;
    justify-content: center;
    z-index: 30;
    transition: opacity 0.15s, transform 0.18s;
    font-size: 0;
    flex-shrink: 0;
}

.oth-arrow-nav:hover {
    opacity: 0.85;
    transform: translateY(-50%) scale(1.08);
}

.oth-arrow-nav svg {
    width: 20px !important;
    height: 20px !important;
    display: block;
}

.oth-arrow-left  { left:  -64px; }
.oth-arrow-right { right: -64px; }

/* Stage wrapper — positions arrows */
.oth-deck-wrap {
    position: relative;
    width: 100%;
    max-width: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Show arrows on desktop (non-touch) */
.oth-is-desktop .oth-arrow-nav {
    display: flex;
}

/* Desktop: disable drag cursor on front card */
.oth-is-desktop .oth-card-wrap[data-pos="0"] {
    cursor: default !important;
}

/* ── HINT: hide on desktop (arrows replace it) ─────────── */
.oth-is-desktop .oth-hint {
    display: none;
}
