/* ============================================
   SmartEvents.io - Custom CSS
   ============================================ */

/* ---- Base Styles ---- */
[x-cloak] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

.has-fixed-header {
    padding-top: 100px;
}

@media (min-width: 64rem) {
    .has-fixed-header {
        padding-top: 116px;
    }
}

/* ---- Gradient Utilities ---- */
.bg-gradient-radial {
    background: radial-gradient(var(--tw-gradient-stops));
}

.text-gradient {
    background: linear-gradient(135deg, #1570A6 0%, #0BA5A0 50%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Hero Grid Pattern ---- */
.hero-grid-pattern {
    background-image:
        linear-gradient(rgba(11, 37, 69, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 37, 69, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ---- Animated Background Gradient ---- */
.animated-gradient {
    background: linear-gradient(-45deg, #0B2545, #1570A6, #0BA5A0, #10B981);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---- Floating Animation ---- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

.animate-float {
    animation: float 10s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 10s ease-in-out infinite 2s;
}

/* ---- Glow Effects ---- */
.glow-ocean {
    box-shadow: 0 0 20px rgba(21, 112, 166, 0.15),
                0 0 40px rgba(21, 112, 166, 0.1);
}

.glow-teal {
    box-shadow: 0 0 20px rgba(11, 165, 160, 0.15),
                0 0 40px rgba(11, 165, 160, 0.1);
}

.glow-emerald {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15),
                0 0 40px rgba(16, 185, 129, 0.1);
}

/* ---- Card Hover Effects ---- */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(11, 37, 69, 0.1);
}

/* ---- Scrollbar Styling ---- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ---- Navigation Scroll Effect ---- */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ---- Code Block Styling ---- */
.code-block {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
}

.code-block pre {
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
}

/* ---- Feature Icon Containers ---- */
.feature-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: inherit;
    opacity: 0.2;
    filter: blur(8px);
    z-index: -1;
}

/* ---- Pricing Card Popular Highlight ---- */
.pricing-popular {
    position: relative;
}

.pricing-popular::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1570A6, #0BA5A0);
    z-index: -1;
}

/* ---- Loading Skeleton ---- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- Smooth Reveal Animation ---- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive Typography Adjustments ---- */
@media (max-width: 640px) {
    .font-display {
        letter-spacing: -0.02em;
    }
}

/* ---- Focus Styles for Accessibility ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #1570A6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---- Selection Styling ---- */
::selection {
    background: rgba(21, 112, 166, 0.15);
    color: #0B2545;
}

/* ---- Print Styles ---- */
@media print {
    nav, footer, .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

/* ---- Custom Checkbox ---- */
input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #1570A6, #0BA5A0);
    border-color: #1570A6;
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ---- Smooth Counter Animation ---- */
.counter-value {
    display: inline-block;
    transition: all 0.3s ease;
}

/* ---- Comparison Table Responsive ---- */
@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.8125rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* ---- Particle/Dot Pattern ---- */
.dot-pattern {
    background-image: radial-gradient(circle, #CBD5E1 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ---- Circuit Board Pattern (matching logo aesthetic) ---- */
.circuit-pattern {
    background-image: 
        linear-gradient(rgba(21, 112, 166, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 112, 166, 0.05) 1px, transparent 1px),
        radial-gradient(circle, rgba(21, 112, 166, 0.08) 1.5px, transparent 1.5px);
    background-size: 48px 48px, 48px 48px, 24px 24px;
    background-position: -1px -1px, -1px -1px, 0 0;
}

/* ---- Pulse Ring Effect ---- */
.pulse-ring {
    position: relative;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}
