/* PixelForge Custom Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Cloak for Alpine.js */
[x-cloak] {
    display: none !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F7F8FC;
}
::-webkit-scrollbar-thumb {
    background: #FFD600;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E6C000;
}

/* Selection */
::selection {
    background: #FFD600;
    color: #0A0A0A;
}

/* Animated gradient text */
.gradient-text {
    background: linear-gradient(135deg, #FFD600, #E6C000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism card */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Animate on scroll - initial states */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse ring animation for CTA */
.pulse-ring {
    animation: pulseRing 2s infinite;
}
@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(255, 214, 0, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(255, 214, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 214, 0, 0); }
}

/* Device preview frame */
.device-frame {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.5s ease;
}
.device-frame.desktop {
    width: 100%;
    max-width: 1200px;
}
.device-frame.tablet {
    width: 768px;
    max-width: 100%;
}
.device-frame.mobile {
    width: 375px;
    max-width: 100%;
}
.device-frame iframe {
    width: 100%;
    border: none;
    background: white;
}

/* Demo toolbar */
.demo-toolbar {
    background: #1F2937;
    padding: 12px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.demo-toolbar .dots {
    display: flex;
    gap: 6px;
}
.demo-toolbar .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.demo-toolbar .dot.red { background: #FF5F57; }
.demo-toolbar .dot.yellow { background: #FEBC2E; }
.demo-toolbar .dot.green { background: #28C840; }
.demo-toolbar .url-bar {
    flex: 1;
    background: rgba(255,255,255,0.1);
    padding: 6px 16px;
    border-radius: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
}

/* Prose/article styles */
.prose h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; color: #1F2937; }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.75rem; color: #1F2937; }
.prose p { margin-bottom: 1rem; line-height: 1.75; color: #4B5563; }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; line-height: 1.75; color: #4B5563; }
.prose a { color: #0A0A0A; text-decoration: underline; }
.prose a:hover { color: #E6C000; }
.prose strong { color: #1F2937; font-weight: 600; }
.prose blockquote { border-left: 4px solid #FFD600; padding-left: 1rem; margin: 1.5rem 0; color: #6B7280; font-style: italic; }
.prose img { border-radius: 12px; margin: 1.5rem 0; }

/* Admin styles */
.admin-sidebar { min-height: calc(100vh - 64px); }
.admin-sidebar a.active { background: rgba(27, 77, 255, 0.1); color: #1B4DFF; border-right: 3px solid #1B4DFF; }

/* Pricing table popular column glow */
.pricing-popular {
    box-shadow: 0 0 40px rgba(27, 77, 255, 0.15);
}

/* FAQ accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.faq-answer.open {
    max-height: 500px;
}

/* Live Search - Hero Style */
.site-search-hero {
    position: relative;
}
.site-search-hero input {
    width: 100%;
    padding: 0.7rem 1.25rem 0.7rem 3rem;
    border-radius: 50px;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #1a1a1a;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}
.site-search-hero input::placeholder { color: #9ca3af; }
.site-search-hero input:focus {
    border-color: #FFD600;
    box-shadow: 0 0 0 4px rgba(255, 214, 0, 0.15);
}
.search-hero-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #9ca3af;
    z-index: 1;
}
.site-search-results-hero {
    left: 0;
    right: 0;
    width: 100%;
}
.site-search-results {
    position: absolute;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1050;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}
.search-section-label {
    padding: 8px 15px;
    background: #f9fafb;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
}
.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #f9fafb;
    gap: 12px;
    transition: background 0.15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(255, 214, 0, 0.08); }
.search-result-icon { color: #FFD600; flex-shrink: 0; }
.search-result-text { flex: 1; min-width: 0; }
.search-result-text strong { display: block; font-size: 0.88rem; color: #1a1a1a; }
.search-result-text small { color: #6b7280; font-size: 0.78rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-no-results { padding: 1.25rem; text-align: center; color: #6b7280; font-size: 0.88rem; }

/* Cookie Consent Banner - GDPR/PECR Compliant */
:root {
    --cookie-bg: #0A0A0A;
    --cookie-text: #a8adb0;
    --cookie-accent: #FFD600;
    --cookie-border: rgba(255, 214, 0, 0.15);
    --cookie-btn-accept-bg: #FFD600;
    --cookie-btn-accept-text: #0A0A0A;
    --cookie-btn-reject-bg: transparent;
    --cookie-btn-reject-text: #a8adb0;
    --cookie-btn-reject-border: rgba(255, 255, 255, 0.2);
    --cookie-link: #FFD600;
    --cookie-radius: 8px;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--cookie-bg);
    border-top: 1px solid var(--cookie-border);
    padding: 1.25rem 2rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    backdrop-filter: blur(12px);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner-text {
    color: var(--cookie-text);
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

.cookie-banner-text a {
    color: var(--cookie-link);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.6rem 1.5rem;
    border-radius: var(--cookie-radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.cookie-btn-accept {
    background: var(--cookie-btn-accept-bg);
    color: var(--cookie-btn-accept-text);
}

.cookie-btn-accept:hover { opacity: 0.85; }

.cookie-btn-reject {
    background: var(--cookie-btn-reject-bg);
    color: var(--cookie-btn-reject-text);
    border: 1px solid var(--cookie-btn-reject-border);
}

.cookie-btn-reject:hover { background: rgba(255,255,255,0.05); }

@media (max-width: 768px) {
    .cookie-banner { padding: 1rem; }
    .cookie-banner-inner { flex-direction: column; gap: 1rem; text-align: center; }
    .cookie-banner-actions { width: 100%; justify-content: center; }
    .cookie-btn { flex: 1; }
}

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