/**
 * Product Unified Styles
 * Location: wp-content/themes/your-theme/assets/css/product-styles.css
 * 
 * Common styles for all product pages with dynamic color variables
 */

/* ============================================
   CSS VARIABLES - Dynamically set per product
   ============================================ */
:root {
    --product-primary: #3b82f6;
    --product-secondary: #60a5fa;
    --product-accent: #2563eb;
    --product-gradient-from: #1e3a8a;
    --product-gradient-to: #7c3aed;
}

/* Product-specific color overrides */
.product-browsercube {
    --product-primary: #3b82f6;
    --product-secondary: #60a5fa;
    --product-accent: #2563eb;
    --product-gradient-from: #1e3a8a;
    --product-gradient-to: #2563eb;
}

/* BrowserCube-specific enhancements */
.product-browsercube .text-blue-400 {
    color: #60a5fa;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.product-browsercube [data-lucide="fingerprint"],
.product-browsercube [data-lucide="shield-check"],
.product-browsercube [data-lucide="layers"] {
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.4));
}

.product-fbas {
    --product-primary: #2563eb;
    --product-secondary: #60a5fa;
    --product-accent: #3b82f6;
    --product-gradient-from: #1e3a8a;
    --product-gradient-to: #7c3aed;
}

.product-maestro {
    --product-primary: #22c55e;
    --product-secondary: #16a34a;
    --product-accent: #10b981;
    --product-gradient-from: #14532d;
    --product-gradient-to: #1e3a8a;
}

.product-mss {
    --product-primary: #22c55e;
    --product-secondary: #16a34a;
    --product-accent: #10b981;
    --product-gradient-from: #14532d;
    --product-gradient-to: #1e3a8a;
}

/* Maestro & MSS-specific enhancements */
.product-maestro .text-green-400,
.product-mss .text-green-400 {
    color: #22c55e;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.product-maestro [data-lucide="zap"],
.product-maestro [data-lucide="sprout"],
.product-maestro [data-lucide="bar-chart-3"],
.product-mss [data-lucide="brain-circuit"],
.product-mss [data-lucide="eye-off"],
.product-mss [data-lucide="filter"] {
    filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.4));
}

.product-maestro .bg-green-600,
.product-mss .bg-green-600 {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.product-maestro .bg-green-600:hover,
.product-mss .bg-green-600:hover {
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    transform: translateY(-1px);
}

/* MSS-specific step indicators */
.product-mss .bg-green-400 {
    background: #22c55e;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* MSS accent colors */
.product-mss .product-accent-text {
    color: #22c55e;
    
}

.product-mss .product-btn-primary {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.product-mss .product-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

/* Organic growth animation for Maestro & MSS */
@keyframes organicGrowth {
    0% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.6; transform: scale(1); }
}

.product-maestro .animate-organic-growth,
.product-mss .animate-organic-growth {
    animation: organicGrowth 3s ease-in-out infinite;
}

/* Cloaking gradient for MSS */
.product-mss .cloaking-gradient {
    background: linear-gradient(45deg, #16a34a, #8b5cf6, #06b6d4);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.product-payments {
    --product-primary: #3b82f6;
    --product-secondary: #7c3aed;
    --product-accent: #2563eb;
    --product-gradient-from: #1e3a8a;
    --product-gradient-to: #7c3aed;
}

.product-proxy {
    --product-primary: #9333ea;
    --product-secondary: #7c3aed;
    --product-accent: #a855f7;
    --product-gradient-from: #581c87;
    --product-gradient-to: #1e3a8a;
}

/* ============================================
   BASE STYLES
   ============================================ */
.product-landing-page {
    background: transparent;
    color: #ffffff;
}

* {
    scroll-behavior: smooth;
}

/* ============================================
   DYNAMIC COLOR CLASSES
   ============================================ */
.product-accent-text {
    color: var(--product-primary);

}

.product-btn-primary {
    background: var(--product-primary);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.product-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.product-step-indicator {
    background: var(--product-secondary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.product-feature-bg {
    background: var(--product-primary);
}

.product-gradient-bg {
    background: linear-gradient(135deg, var(--product-gradient-from) 0%, var(--product-gradient-to) 100%);
    position: relative;
    overflow: hidden;
}

.product-gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* ============================================
   CARD STYLES
   ============================================ */
.border.border-gray-700 {
    transition: all 0.3s ease;
}

.border.border-gray-700:hover {
    border-color: var(--product-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.bg-gray-800\/50 {
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(10px);
}

.bg-gray-800\/30 {
    background: rgba(31, 41, 55, 0.3);
    backdrop-filter: blur(8px);
}

.border.border-gray-700.rounded-xl {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.border.border-gray-700.rounded-xl:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ============================================
   VIDEO & MEDIA STYLES
   ============================================ */
video {
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #1f2937, #374151);
}

/* ============================================
   ICON STYLES
   ============================================ */
.w-16.h-16.rounded-full {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.w-16.h-16.rounded-full:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

[data-lucide] {
    stroke-width: 2;
}

.product-accent-text i[data-lucide] {
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

/* ============================================
   STATS SECTION
   ============================================ */
.grid.grid-cols-2.lg\:grid-cols-4 > div {
    transition: transform 0.3s ease;
}

.grid.grid-cols-2.lg\:grid-cols-4 > div:hover {
    transform: scale(1.05);
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-count-up {
    animation: countUp 0.6s ease-out forwards;
}

/* ============================================
   TABLE STYLES
   ============================================ */
.bg-gray-750 {
    background-color: #374151;
}

table tr {
    transition: background-color 0.2s ease;
}

table tr:hover {
    background-color: #1f2937;
}

/* ============================================
   TESTIMONIAL STYLES
   ============================================ */
.text-yellow-400 {
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.5));
}

/* ============================================
   BUTTON ANIMATIONS
   ============================================ */
.transform.transition-transform.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* ============================================
   SPECIAL ANIMATIONS
   ============================================ */
@keyframes orbitBorder {
    0% {
        background: conic-gradient(from 0deg, transparent 0%, rgba(59, 130, 246, 0.8) 10%, transparent 20%);
    }
    100% {
        background: conic-gradient(from 360deg, transparent 0%, rgba(59, 130, 246, 0.8) 10%, transparent 20%);
    }
}

.animate-orbit-border {
    animation: orbitBorder 3s linear infinite;
    padding: 2px;
    border-radius: 0.5rem;
}

/* Network pulse animation (for Proxy) */
@keyframes networkPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.animate-network-pulse {
    animation: networkPulse 2s ease-in-out infinite;
}

/* Secure flow animation (for Payments) */
@keyframes secureFlow {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.animate-secure-flow {
    animation: secureFlow 2s ease-in-out infinite;
}

/* Payment gradient shift (for Payments) */
.payment-gradient {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #06b6d4);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {
    .text-4xl.lg\:text-6xl {
        font-size: 2.25rem;
        line-height: 1.2;
    }
    
    .text-3xl.lg\:text-5xl {
        font-size: 1.875rem;
        line-height: 1.3;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    .py-4.px-6 {
        padding: 0.75rem 1rem;
    }
    
    .py-16.lg\:py-24 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
section {
    position: relative;
    z-index: 1;
}

.bg-\[linear-gradient\(to_right\,\#73737320_1px\,transparent_1px\)\,linear-gradient\(to_bottom\,\#73737320_1px\,transparent_1px\)\] {
    background-image: 
        linear-gradient(to right, rgba(115, 115, 115, 0.2) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(115, 115, 115, 0.2) 1px, transparent 1px);
}

/* ============================================
   PRODUCT-SPECIFIC OVERRIDES
   ============================================ */

/* Proxy-specific network visualization */
.product-proxy .bg-gray-700\/50 {
    background: rgba(55, 65, 81, 0.5);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.product-proxy .bg-gray-700\/50:hover {
    background: rgba(55, 65, 81, 0.8);
    transform: scale(1.05);
}

/* FBAS-specific comparison table enhancements */
.product-fbas table tr:hover {
    background-color: #1f2937;
}

/* Payments-specific security badge styling */
.product-payments .text-blue-400 {
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* MSS-specific cloaking effects */
.product-mss .border.border-gray-700:hover {
    border-color: rgba(34, 197, 94, 0.5);
}

.product-mss .text-green-400 i[data-lucide] {
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.4));
}