/* ==========================================
   Platform Unified CSS
   Location: wp-content/themes/your-theme/assets/css/platform-unified.css
   ========================================== */

/* Default Platform Colors (Meta) */
:root {
    --platform-primary: #06b6d4;
    --platform-secondary: #3b82f6;
    --platform-gradient-from: #164e63;
    --platform-gradient-to: #1e3a8a;
}

/* TikTok Platform Colors */
.platform-tiktok {
    --platform-primary: #ff0050;
    --platform-secondary: #00f2ea;
    --platform-gradient-from: #161823;
    --platform-gradient-to: #8b5a3c;
}

/* Google Platform Colors */
.platform-google {
    --platform-primary: #4285f4;
    --platform-secondary: #ea4335;
    --platform-gradient-from: #1a73e8;
    --platform-gradient-to: #ea4335;
    --google-blue: #4285f4;
    --google-red: #ea4335;
    --google-yellow: #fbbc05;
    --google-green: #34a853;
}

/* ==========================================
   Platform Color Utilities
   ========================================== */

.text-platform-primary {
    color: var(--platform-primary);
}

.bg-platform-primary {
    background-color: var(--platform-primary);
}

.border-platform-primary {
    border-color: var(--platform-primary);
}

.hover\:border-platform-primary\/50:hover {
    border-color: var(--platform-primary);
    opacity: 0.5;
}

/* ==========================================
   TikTok-Specific Colors
   ========================================== */

.platform-tiktok .bg-tiktok-pink {
    background-color: #ff0050;
}

.platform-tiktok .bg-tiktok-cyan {
    background-color: #00f2ea;
}

.platform-tiktok .bg-tiktok-blue {
    background-color: #0066ff;
}

.platform-tiktok .text-tiktok-pink {
    color: #ff0050;
}

.platform-tiktok .text-tiktok-cyan {
    color: #00f2ea;
}

.platform-tiktok .from-tiktok-dark {
    --tw-gradient-from: #161823;
}

.platform-tiktok .to-tiktok-purple {
    --tw-gradient-to: #8b5a3c;
}

/* ==========================================
   Google-Specific Colors
   ========================================== */

.platform-google .bg-google-blue {
    background-color: #4285f4;
}

.platform-google .bg-google-red {
    background-color: #ea4335;
}

.platform-google .bg-google-yellow {
    background-color: #fbbc05;
}

.platform-google .bg-google-green {
    background-color: #34a853;
}

.platform-google .text-google-blue {
    color: #4285f4;
}

.platform-google .text-google-red {
    color: #ea4335;
}

.platform-google .text-google-yellow {
    color: #fbbc05;
}

.platform-google .text-google-green {
    color: #34a853;
}

.platform-google .from-google-blue {
    --tw-gradient-from: #4285f4;
}

.platform-google .to-google-green {
    --tw-gradient-to: #34a853;
}

/* ==========================================
   Base Platform Styles
   ========================================== */

.platform-page {
    background: transparent;
    color: #ffffff;
}

.bg-gray-750 {
    background-color: #374151;
}

/* Smooth scrolling */
* {
    scroll-behavior: smooth;
}

/* ==========================================
   Table Styles
   ========================================== */

table tr:hover {
    background-color: #1f2937;
    transition: background-color 0.2s ease;
}

/* ==========================================
   Animations
   ========================================== */

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.platform-page .grid.grid-cols-2.lg\:grid-cols-4 > div {
    animation: countUp 0.6s ease-out forwards;
}

/* ==========================================
   Card Hover Effects
   ========================================== */

.border.border-gray-700:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Platform-specific hover colors */
.platform-meta .border.border-gray-700:hover {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.1);
}

.platform-tiktok .border.border-gray-700:hover {
    border-color: rgba(255, 0, 80, 0.5);
    box-shadow: 0 10px 25px rgba(255, 0, 80, 0.1);
}

.platform-google .border.border-gray-700:hover {
    border-color: rgba(66, 133, 244, 0.5);
    box-shadow: 0 10px 25px rgba(66, 133, 244, 0.1);
}

/* ==========================================
   Step Indicators
   ========================================== */

.bg-platform-primary.rounded-full {
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.platform-tiktok .bg-platform-primary.rounded-full {
    box-shadow: 0 4px 12px rgba(255, 0, 80, 0.3);
}

.platform-google .bg-platform-primary.rounded-full {
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

/* ==========================================
   Background Effects
   ========================================== */

.bg-gray-800\/50 {
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(10px);
}

.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);
}

/* ==========================================
   Button Animations
   ========================================== */

.transform.transition-transform.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* ==========================================
   Icon Styling
   ========================================== */

[data-lucide] {
    stroke-width: 2;
}

/* ==========================================
   Gradient Backgrounds
   ========================================== */

.bg-gradient-to-r {
    position: relative;
    overflow: hidden;
}

.bg-gradient-to-r::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

/* Meta gradient overlay */
.platform-meta .bg-gradient-to-r.from-cyan-900.to-blue-900 {
    background: linear-gradient(135deg, #164e63 0%, #1e3a8a 100%);
}

.platform-meta .bg-gradient-to-r.from-cyan-900.to-blue-900::before {
    background: radial-gradient(circle at 30% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

/* TikTok gradient overlay */
.platform-tiktok .bg-gradient-to-r::before {
    background: radial-gradient(circle at 30% 20%, rgba(255, 0, 80, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 242, 234, 0.1) 0%, transparent 50%);
}

/* ==========================================
   Video Loading
   ========================================== */

video {
    background: linear-gradient(45deg, #1f2937, #374151);
}

/* ==========================================
   Pricing Toggle Styles
   ========================================== */

.pricing-toggle-btn {
    background: transparent;
    color: #9ca3af;
    border: 1px solid transparent;
}

.pricing-toggle-btn.active {
    background: rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.pricing-toggle-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: #d1d5db;
}

.pricing-section {
    display: none;
}

.pricing-section.active {
    display: block;
}

/* ==========================================
   Coming Soon Overlay (TikTok & Google)
   ========================================== */

.platform-tiktok .coming-soon-overlay,
.platform-google .coming-soon-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50vh;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 40;
    pointer-events: none;
}

.platform-tiktok .coming-soon-content,
.platform-google .coming-soon-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    pointer-events: none;
}

/* Blur content under overlay */
.platform-tiktok main > div > section:nth-child(n+3),
.platform-google main > div > section:nth-child(n+3) {
    filter: blur(3px);
    pointer-events: none;
}

/* ==========================================
   Smooth Transitions
   ========================================== */

a, button, .border {
    transition: all 0.3s ease;
}

/* ==========================================
   Section Layering
   ========================================== */

section {
    position: relative;
    z-index: 1;
}

/* ==========================================
   Responsive Adjustments
   ========================================== */

@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;
    }
    
    .flex.items-start.space-x-4 {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .w-12.h-12.rounded-lg {
        margin: 0 auto;
    }
    
    /* TikTok & Google mobile overlay adjustments */
    .platform-tiktok .coming-soon-overlay,
    .platform-google .coming-soon-overlay {
        height: 70vh;
    }
    
    .platform-tiktok .coming-soon-content,
    .platform-google .coming-soon-content {
        height: 50vh;
    }
    
    .platform-tiktok .coming-soon-content h2,
    .platform-google .coming-soon-content h2 {
        font-size: 2.5rem;
    }
}

/* ==========================================
   Platform-Specific Glow Effects
   ========================================== */

.platform-tiktok .bg-tiktok-pink,
.platform-tiktok .bg-tiktok-cyan,
.platform-tiktok .bg-tiktok-blue,
.platform-google .bg-google-blue,
.platform-google .bg-google-red,
.platform-google .bg-google-yellow,
.platform-google .bg-google-green {
    position: relative;
}

.platform-tiktok .bg-tiktok-pink::after,
.platform-tiktok .bg-tiktok-cyan::after,
.platform-tiktok .bg-tiktok-blue::after,
.platform-google .bg-google-blue::after,
.platform-google .bg-google-red::after,
.platform-google .bg-google-yellow::after,
.platform-google .bg-google-green::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    opacity: 0;
    filter: blur(8px);
    z-index: -1;
    transition: opacity 0.3s ease;
}

.platform-tiktok .bg-tiktok-pink:hover::after,
.platform-tiktok .bg-tiktok-cyan:hover::after,
.platform-tiktok .bg-tiktok-blue:hover::after,
.platform-google .bg-google-blue:hover::after,
.platform-google .bg-google-red:hover::after,
.platform-google .bg-google-yellow:hover::after,
.platform-google .bg-google-green:hover::after {
    opacity: 0.4;
}

/* ==========================================
   Print Styles
   ========================================== */

@media print {
    .coming-soon-overlay,
    .coming-soon-content {
        display: none;
    }
    
    .platform-tiktok main > div > section:nth-child(n+3),
    .platform-google main > div > section:nth-child(n+3) {
        filter: none;
        pointer-events: auto;
    }
}

/* ==========================================
   Platform-Specific Text Animations
   ========================================== */

/* Google color cycling for hero text */
@keyframes googleColorCycle {
    0% { color: #4285f4; }
    25% { color: #ea4335; }
    50% { color: #fbbc05; }
    75% { color: #34a853; }
    100% { color: #4285f4; }
}

.platform-google .text-platform-primary {
    animation: googleColorCycle 4s ease-in-out infinite;
}

/* ==========================================
   Accessibility
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}