/* ============================================
   RoyalePOS - site.css
   Kept: marquee, billing toggle, floats, scroll, .d-none
   Bootstrap styles removed (replaced by Tailwind)
   ============================================ */

/* Bootstrap d-none compatibility for billing toggle JS */
.d-none { display: none !important; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

section[id] {
    scroll-margin-top: 70px;
}

/* ============ SCREENSHOTS / MARQUEE ============ */

.screenshots-marquee-wrapper {
    position: relative;
    overflow: hidden;
}

.marquee-fade-left,
.marquee-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 180px;
    z-index: 2;
    pointer-events: none;
}
.marquee-fade-left {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}
.marquee-fade-right {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}

.screenshots-marquee {
    overflow: hidden;
    cursor: grab;
    padding: 20px 0 36px;
}
.screenshots-marquee:active { cursor: grabbing; }

.marquee-track {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
    will-change: transform;
}

.screenshots-marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    flex-shrink: 0;
    width: 420px;
}

@media (max-width: 768px) {
    .marquee-item { width: 280px; }
    .marquee-track { gap: 18px; }
    .marquee-fade-left, .marquee-fade-right { width: 80px; }
}

.screenshot-card {
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot-card:hover { transform: translateY(-8px); }

.screenshot-frame {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15,32,66,0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot-card:hover .screenshot-frame {
    box-shadow: 0 20px 60px rgba(15,32,66,0.15);
    border-color: rgba(79, 140, 255, 0.25);
}

.frame-header {
    background: #f1f5f9;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.frame-dots { display: flex; gap: 5px; }
.dot-red, .dot-yellow, .dot-green { width: 9px; height: 9px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28c840; }

.frame-title { font-size: 0.75rem; color: #94a3b8; font-weight: 500; }

.frame-body { padding: 0; overflow: hidden; }

.screenshot-frame .frame-body img {
    display: block;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot-card:hover .screenshot-frame .frame-body img {
    transform: scale(1.03);
}

.screenshot-label {
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.screenshot-desc {
    font-size: 0.78rem;
    color: #6b7280;
}

/* ============ BILLING TOGGLE ============ */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.toggle-label { font-weight: 600; color: #6b7280; font-size: 0.95rem; }

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px; height: 28px;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    border-radius: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 22px; width: 22px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-switch input:checked + .toggle-slider { background: #1d4ed8; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(24px); }

.save-badge {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 6px;
}

/* ============ FLOATING BUTTONS ============ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px; height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 6px 30px rgba(37,211,102,0.5);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 44px; height: 44px;
    background: #111827;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #1d4ed8;
    color: #fff;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .back-to-top { right: 30px; bottom: 96px; }
}
