/* ── Foenix Showcase Widget — Frontend Styles ── */

/* Container */
.fsw-container {
    display: flex;
    height: 100vh;
    background: #111;
    color: #d1d5db;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
    position: relative;
}

/* ── Left panel ──────────────────────────────── */
.fsw-left {
    flex: 1;
    position: relative;
    display: none;
}
@media (min-width: 768px) {
    .fsw-left { display: block; }
}
.fsw-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}
.fsw-left-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* VIEW SITE circle */
.fsw-view-site {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    text-decoration: none;
    gap: 6px;
    transition: border-color 0.2s, transform 0.2s;
}
.fsw-view-site:hover {
    border-color: rgba(255,107,107,0.5);
    transform: scale(1.05);
}
.fsw-view-label {
    font-size: 9px;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
}
.fsw-view-arrow {
    opacity: 0;
    transition: opacity 0.2s;
}
.fsw-view-site:hover .fsw-view-arrow { opacity: 1; }

/* ── Right panel ─────────────────────────────── */
.fsw-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
    border-left: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 10;
}
@media (min-width: 768px) {
    .fsw-right { width: 680px; }
}

/* Scroll area */
.fsw-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 2.5rem;
    scroll-behavior: smooth;
}
.fsw-scroll-area::-webkit-scrollbar       { width: 5px; }
.fsw-scroll-area::-webkit-scrollbar-track { background: transparent; }
.fsw-scroll-area::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 99px; }

/* ── Markup typography ───────────────────────── */
.fsw-content { margin-bottom: 2.5rem; }

.fsw-h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 1.75rem 0 0.5rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.fsw-h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FF6B6B;
    margin: 1.5rem 0 0.4rem;
    letter-spacing: 0.01em;
}
.fsw-text {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #9ca3af;
    margin: 0 0 0.75rem;
}
/* Plain text in paragraphs is orange bold */
.fsw-text { color: #FF6B6B; font-weight: 700; }

/* White bold */
.fsw-white { color: #fff; font-weight: 700; }

/* Link */
.fsw-link {
    color: #FF6B6B;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}
.fsw-link:hover { color: #ff8f8f; }

/* Caption */
.fsw-caption {
    font-size: 0.78rem;
    color: #6b7280;
    margin: 0 0 0.5rem;
    letter-spacing: 0.02em;
}

/* Inline image */
.fsw-inline-img {
    display: block;
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Horizontal rule */
.fsw-hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 2rem 0;
}

/* Spacer */
.fsw-spacer { height: 0.5rem; }

/* ── Why section ─────────────────────────────── */
.fsw-why {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.fsw-why-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
}
.fsw-why-text {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #9ca3af;
    margin-bottom: 1.25rem;
}

/* ── Stat tags ───────────────────────────────── */
.fsw-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.fsw-stat-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: rgba(255,107,107,0.12);
    color: #FF6B6B;
    border: 1px solid rgba(255,107,107,0.25);
    white-space: nowrap;
}

/* ── Footer / CTA ────────────────────────────── */
.fsw-footer {
    padding: 1.25rem 1.5rem;
    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* CTA button */
.fsw-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    border-radius: 99px;
    overflow: hidden;
    background: #1a1a1a;
    text-decoration: none;
    transition: box-shadow 0.3s, transform 0.2s;
}
.fsw-cta.is-locked { pointer-events: none; cursor: default; }
.fsw-cta.is-done:hover {
    box-shadow: 0 0 24px rgba(255,107,107,0.3);
    transform: scale(1.015);
}

/* Fill bar */
.fsw-cta-fill {
    position: absolute;
    left: 0; top: 0;
    height: 100%;
    width: 0%;
    background: #FF6B6B;
    transition: width 0.12s ease-out;
    border-radius: 99px;
}

/* Content above fill */
.fsw-cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Label — BLACK when completed (coral bg), grey when pending */
.fsw-cta-label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.55);
    transition: color 0.2s;
}
.fsw-cta.is-done .fsw-cta-label {
    color: #000;
    font-size: 0.95rem;
}

/* Arrow — hidden by default, black when done */
.fsw-cta-arrow {
    display: none;
    color: #000;
    transition: transform 0.2s;
}
.fsw-cta.is-done .fsw-cta-arrow { display: block; }
.fsw-cta.is-done:hover .fsw-cta-arrow { transform: translateX(3px); }
