/**
 * Landing Page Custom Styles
 * Extends admin theme aesthetics (purple accent #7c3aed)
 */

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

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

.feature-card:hover {
    transform: translateY(-8px);
}

/* Navigation Shadow on Scroll */
.nav-scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Purple Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

/* Animated Icons */
.feature-card .material-icons {
    transition: transform 0.3s ease;
}

.feature-card:hover .material-icons {
    transform: scale(1.1);
}

/* Input Focus States matching admin */
input:focus,
textarea:focus {
    border-color: #7c3aed !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Button Hover Effects */
a.bg-primary:hover,
button.bg-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.3), 0 4px 6px -2px rgba(124, 58, 237, 0.2);
}

/* Pricing Card Pulse Animation */
@keyframes pulse-shadow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(124, 58, 237, 0);
    }
}

.pricing-featured {
    animation: pulse-shadow 2s infinite;
}

/* Hero Section Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Material Icons Vertical Alignment */
.material-icons.align-middle {
    vertical-align: middle;
    margin-top: -2px;
}

/* Custom Scrollbar matching admin */
::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: #7c3aed;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6d28d9;
}

/* Form Error States */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

/* Success Message Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    animation: slideDown 0.3s ease-out;
}

/* Mobile Menu (if needed in future) */
@media (max-width: 768px) {
    .feature-card {
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Link Underline Animation */
a:not(.bg-primary):not(.border-primary) {
    position: relative;
}

a:not(.bg-primary):not(.border-primary):hover {
    text-decoration: none;
}

/* Skeleton Loading for Demo Preview (future enhancement) */
@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 50%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* Print Styles */
@media print {
    nav,
    footer,
    #contact {
        display: none;
    }
    
    .feature-card {
        page-break-inside: avoid;
    }
}

/* Dark Mode Support (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Will match admin dark mode if implemented */
}

/* Accessibility: Focus Visible */
*:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

/* Loading Spinner (for form submission) */
.spinner {
    border: 3px solid rgba(124, 58, 237, 0.1);
    border-top: 3px solid #7c3aed;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip Styles (if needed) */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: #1f2937;
    color: white;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-primary {
    background-color: #ede9fe;
    color: #6d28d9;
}

/* Card Shadow Levels */
.shadow-soft {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Screenshot carousel */
.screenshot-track {
    position: relative;
    min-height: 260px;
}

.screenshot-slide {
    display: none;
    animation: fadeInUp 0.45s ease-out;
}

.screenshot-slide.active {
    display: block;
}

.screenshot-frame {
    min-height: 260px;
    border: 2px dashed #d1d5db;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.screenshot-image {
    width: 100%;
    max-width: 920px;
    max-height: 420px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.screenshot-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.screenshot-dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: #cbd5e1;
    border: 0;
    cursor: pointer;
}

.screenshot-dot.active {
    background: #7c3aed;
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 58px;
    height: 58px;
    border-radius: 9999px;
    background: #25d366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
    color: #fff;
}

.wa-icon {
    width: 30px;
    height: 30px;
}

.shadow-medium {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.shadow-strong {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}
