/**
 * Business Page Styles
 * Extracted from inline styles for better Text/HTML ratio
 * @see resources/views/business/index.blade.php
 */

/* ════════════════════════════════════════════════════════════════════
   TEXT COLOR OVERRIDES - Fix gray text visibility in light mode
   ════════════════════════════════════════════════════════════════════ */
.business-page .text-gray-300 { color: #6b7280 !important; }
.business-page .text-gray-400 { color: #6b7280 !important; }
.business-page .text-gray-500 { color: #4b5563 !important; }
.business-page .text-gray-600 { color: #374151 !important; }

/* Dark mode keeps original values */
.dark .business-page .text-gray-300 { color: #d1d5db !important; }
.dark .business-page .text-gray-400 { color: #9ca3af !important; }
.dark .business-page .text-gray-500 { color: #6b7280 !important; }
.dark .business-page .text-gray-600 { color: #4b5563 !important; }

/* ════════════════════════════════════════════════════════════════════
   DOT PATTERN BACKGROUND
   ════════════════════════════════════════════════════════════════════ */
.dot-pattern {
    position: relative;
}
.dot-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #d1d5db 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}
.dot-pattern > * {
    position: relative;
    z-index: 1;
}

/* ════════════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ════════════════════════════════════════════════════════════════════ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children reveal */
.reveal-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-children.revealed > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-children.revealed > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-children.revealed > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-children.revealed > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-children.revealed > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-children.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal animation for testimonials */
.reveal-testimonial {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-testimonial.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered word reveal */
.word-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.word-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════════════
   INTERACTIVE ELEMENTS
   ════════════════════════════════════════════════════════════════════ */
.tab-button {
    transition: all 0.2s ease;
}
.tab-button.active {
    border-bottom: 3px solid currentColor;
}

.pricing-card {
    transition: all 0.3s ease;
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* ════════════════════════════════════════════════════════════════════
   UTILITY CLASSES - Replacing inline styles
   ════════════════════════════════════════════════════════════════════ */

/* Card backgrounds with borders */
.bp-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
}
.bp-card-white {
    background-color: #ffffff;
    border: 1px solid #f3f4f6;
}
.bp-card-bordered {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
}

/* Feature boxes */
.bp-feature-box {
    background-color: #f3f4f6;
}

/* Accent colors */
.bp-text-purple { color: #9333ea; }
.bp-text-purple-light { color: #f3e8ff; }
.bp-text-orange { color: #d97706; }
.bp-text-orange-dark { color: #92400e; }
.bp-text-orange-bright { color: #ea580c; }
.bp-text-yellow { color: #ca8a04; }
.bp-text-teal { color: #0d9488; }
.bp-text-cyan { color: #0891b2; }
.bp-text-green { color: #059669; }
.bp-text-blue { color: #3b82f6; }
.bp-text-blue-dark { color: #1d4ed8; }

/* ════════════════════════════════════════════════════════════════════
   VERTICAL PRICING SYSTEM
   ════════════════════════════════════════════════════════════════════ */

/* Smooth transitions for vertical changes */
[x-cloak] { display: none !important; }

.vertical-transition {
    transition: all 0.3s ease-out;
}

/* Pricing card improvements */
.pricing-card {
    position: relative;
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* FAQ accordion animation */
[x-collapse] {
    overflow: hidden;
}

[x-collapse].x-collapse-enter-active,
[x-collapse].x-collapse-leave-active {
    transition: height 0.3s ease;
}

/* Toggle switch styling */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 32px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 9999px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .toggle-slider {
    background-color: #f97316;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Blue variant for services */
.toggle-blue input:checked + .toggle-slider {
    background-color: #3b82f6;
}
