/* 
 * Alpine/Tailwind Overrides 
 * Contains styles that are better handled in CSS than Tailwind utility classes
 */

/* Hide Scrollbar for horizontal scrolling areas */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Custom background for the hero section - white overlay on light mode, dark overlay on dark mode */
.hero-bg {
    background-image: 
        linear-gradient(to bottom, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.65) 40%, rgba(255, 255, 255, 0.95) 85%, #ffffff 100%),
        url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}
html.dark .hero-bg {
    background-image: 
        linear-gradient(to bottom, rgba(11, 17, 32, 0.5) 0%, rgba(11, 17, 32, 0.8) 50%, rgba(2, 6, 23, 0.95) 100%),
        url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=2000&q=80');
}

/* Custom styling for range sliders */
input[type=range]::-webkit-slider-thumb {
    pointer-events: auto;
    width: 24px;
    height: 24px;
    -webkit-appearance: none;
    appearance: none;
}

/* Base font settings - Front end font is Segoe UI */
html,
body,
button,
input,
optgroup,
select,
textarea,
h1, h2, h3, h4, h5, h6,
p, span, a, li,
.font-system,
.font-sans {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* WP Admin Bar Override - prevent it from covering header */
body.admin-bar header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 46px;
    }
}

/* Theme Toggle Button SVG visibility */
html.dark .theme-toggle-moon {
    display: none !important;
}
html.dark .theme-toggle-sun {
    display: block !important;
}
html:not(.dark) .theme-toggle-moon {
    display: block !important;
}
html:not(.dark) .theme-toggle-sun {
    display: none !important;
}

/* Trust Badge text styling requested by user */
.trust-badge-desc {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
    font-style: normal;
    font-weight: 400;
    color: #64748b;
    color: oklch(0.554 0.046 257.417);
    font-size: 12px;
    line-height: 17px;
}
html.dark .trust-badge-desc {
    color: #94a3b8;
    color: oklch(0.707 0.022 261.325);
}

/* ── Polaroid Proof Marquee Section ─────────────────────────────────────── */
.ofp-polaroid-section {
    position: relative;
    background: #022c22;
    background: radial-gradient(circle at 20% 20%, #064e3b 0%, #022c22 60%, #011f18 100%);
    border-radius: 28px;
    padding: 50px 0 60px 0;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* Dark Theme: Midnight Obsidian & Sapphire Glow */
html.dark .ofp-polaroid-section,
html[data-theme="dark"] .ofp-polaroid-section {
    background: #0b1120;
    background: radial-gradient(circle at 20% 20%, rgba(30, 58, 138, 0.45) 0%, #0b1120 52%, #020617 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html.dark .ofp-star-watermark,
html[data-theme="dark"] .ofp-star-watermark {
    color: #38bdf8;
    opacity: 0.05;
}

html.dark .ofp-polaroid-pill,
html[data-theme="dark"] .ofp-polaroid-pill {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

html.dark .ofp-polaroid-subtitle,
html[data-theme="dark"] .ofp-polaroid-subtitle {
    color: #94a3b8;
}

/* Star / Emblem Ambient Watermark Background */
.ofp-polaroid-star-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.ofp-star-watermark {
    position: absolute;
    color: #10b981;
    opacity: 0.07;
    transition: opacity 0.3s;
}

/* Section Header on dark background */
.ofp-polaroid-header {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 680px;
    margin: 0 auto 36px auto;
    padding: 0 20px;
}

.ofp-polaroid-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 9999px;
    color: #34d399;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ofp-polaroid-title {
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0 0 10px 0;
}

@media (min-width: 768px) {
    .ofp-polaroid-title {
        font-size: 36px;
    }
}

.ofp-polaroid-subtitle {
    font-size: 14.5px;
    color: #a7f3d0;
    line-height: 1.6;
    margin: 0;
}

/* Marquee Container with smooth side fade */
.ofp-polaroid-marquee-container {
    position: relative;
    z-index: 2;
    overflow: hidden;
    width: 100%;
    padding: 30px 0 25px 0;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.ofp-polaroid-track {
    display: flex;
    width: max-content;
    gap: 32px;
    animation: ofpPolaroidScroll 42s linear infinite;
    will-change: transform;
}

/* Pause on hover over entire track or container */
.ofp-polaroid-track:hover,
.ofp-polaroid-marquee-container:hover .ofp-polaroid-track {
    animation-play-state: paused;
}

@keyframes ofpPolaroidScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Polaroid Photo Card */
.ofp-polaroid-card {
    flex: 0 0 240px;
    width: 240px;
    background: #ffffff;
    padding: 10px 10px 18px 10px;
    border-radius: 6px;
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.4), 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-align: left;
    position: relative;
    user-select: none;
}

/* Alternating Resting Tilts */
.ofp-polaroid-card.tilt-1 { transform: rotate(-3deg); }
.ofp-polaroid-card.tilt-2 { transform: rotate(2.5deg); }
.ofp-polaroid-card.tilt-3 { transform: rotate(-2deg); }
.ofp-polaroid-card.tilt-4 { transform: rotate(3deg); }
.ofp-polaroid-card.tilt-5 { transform: rotate(-2.5deg); }
.ofp-polaroid-card.tilt-6 { transform: rotate(2deg); }
.ofp-polaroid-card.tilt-7 { transform: rotate(-3.5deg); }
.ofp-polaroid-card.tilt-8 { transform: rotate(2.5deg); }

/* Straighten on Hover! */
.ofp-polaroid-card:hover {
    transform: rotate(0deg) scale(1.08) translateY(-10px) !important;
    box-shadow: 0 28px 55px -8px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 185, 129, 0.18) !important;
    z-index: 30;
}

/* Dark mode card depth and sapphire hover halo */
html.dark .ofp-polaroid-card,
html[data-theme="dark"] .ofp-polaroid-card {
    box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.75), 0 4px 12px rgba(0, 0, 0, 0.5);
}

html.dark .ofp-polaroid-card:hover,
html[data-theme="dark"] .ofp-polaroid-card:hover {
    box-shadow: 0 32px 65px -10px rgba(0, 0, 0, 0.95), 0 0 35px rgba(56, 189, 248, 0.22) !important;
}

.ofp-polaroid-photo-wrap {
    width: 100%;
    height: 220px;
    border-radius: 3px;
    overflow: hidden;
    background: #e2e8f0;
    margin-bottom: 12px;
    position: relative;
}

.ofp-polaroid-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ofp-polaroid-card:hover .ofp-polaroid-photo-wrap img {
    transform: scale(1.03);
}

.ofp-polaroid-caption {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    letter-spacing: -0.01em;
    display: block;
    margin-bottom: 3px;
}

.ofp-polaroid-meta {
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ofp-polaroid-meta svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .ofp-polaroid-section {
        border-radius: 20px;
        padding: 40px 0 45px 0;
    }
    .ofp-polaroid-card {
        flex: 0 0 200px;
        width: 200px;
        padding: 8px 8px 14px 8px;
    }
    .ofp-polaroid-photo-wrap {
        height: 180px;
        margin-bottom: 10px;
    }
    .ofp-polaroid-caption {
        font-size: 12.5px;
    }
    .ofp-polaroid-track {
        gap: 20px;
    }
}



