/*
Theme Name: Sightline
Theme URI: https://sightline4bd.com
Author: Sightline
Author URI: https://sightline4bd.com
Description: Premium template marketplace.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: sightline
*/

/* ============================================
   CRITICAL CSS — Loads even if Tailwind CDN fails
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #18181B;
    background: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #18181B;
    color: #FFFFFF;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: #e4e4e7; border-radius: 20px; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
    50% { box-shadow: 0 0 0 20px rgba(16,185,129,0); }
}
@keyframes toastIn {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes toastOut {
    to { opacity: 0; transform: translateY(20px); }
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.float-anim { animation: float 6s ease-in-out infinite; }
.float-anim-delay { animation: float 6s ease-in-out 2s infinite; }
.pulse-glow { animation: pulse-glow 2s infinite; }

/* ============================================
   FADE IN
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   FILTER BUTTONS
   ============================================ */
.filter-btn.active {
    background-color: #18181B !important;
    color: #FFFFFF !important;
    border-color: #18181B !important;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.template-card .template-card-img {
    transition: transform 0.7s ease;
}
.template-card:hover .template-card-img {
    transform: scale(1.05);
}
.template-card .template-card-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.template-card:hover .template-card-overlay {
    opacity: 1;
}

/* ============================================
   FAQ
   ============================================ */
.faq-icon {
    transition: transform 0.3s ease;
}

/* ============================================
   TOAST
   ============================================ */
.toast {
    animation: toastIn 0.4s ease, toastOut 0.4s ease 2.6s forwards;
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
    animation: marquee 30s linear infinite;
}

/* ============================================
   BACKDROP BLUR FIX FOR SAF