/* Common styles for WAzion web */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0c0a18;
}

/* Fix double-tap issue on mobile - comprehensive touch optimization */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

a, button, input, select, textarea, [role="button"], [onclick],
.feature-card, .integration-logo, .contact-button, [class*="hover:"] {
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

input, textarea, select {
    -webkit-user-select: text;
    user-select: text;
}

/* Remove 300ms delay on mobile */
a, button, input[type="button"], input[type="submit"] {
    cursor: pointer;
}

.aurora-background {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -1;
    background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.15), transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(129, 140, 248, 0.15), transparent 40%);
    animation: move-aurora 20s infinite alternate;
    will-change: transform;
}

@keyframes move-aurora {
    from { transform: translate(-15%, -15%); }
    to { transform: translate(15%, 15%); }
}

.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
    position: relative;
    z-index: 1;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes shine-effect {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.animate-shine {
    background-image: linear-gradient(90deg, #818cf8, #f472b6 25%, #818cf8 50%, #f472b6 75%, #818cf8 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: shine-effect 5s linear infinite;
}

@keyframes pulse-effect {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px 10px rgba(56, 189, 248, 0); }
}

.animate-pulse-button {
    animation: pulse-effect 2.5s infinite;
}

@keyframes float-effect {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.integration-logo img {
    animation: float-effect 4s ease-in-out infinite;
    filter: grayscale(1) brightness(1.5);
    transition: all 0.3s ease-in-out;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 1rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cookie-banner, .modal-overlay {
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.modal-content {
    transition: transform 0.3s ease-in-out;
}

/* Feature card styles */
.feature-card {
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card .icon-wrapper {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    background: rgba(56, 189, 248, 0.1);
    color: rgb(56, 189, 248);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card .icon-wrapper svg {
    width: 1.5rem;
    height: 1.5rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: rgb(199, 210, 254);
    line-height: 1.625;
}

/* Contact form styles */
.contact-form {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
}

.contact-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    transition: all 0.3s ease;
}

.contact-input::placeholder {
    color: rgb(156, 163, 175);
}

.contact-input:focus {
    outline: none;
    ring: 2px solid rgb(56, 189, 248);
    border-color: rgb(56, 189, 248);
}

.contact-button {
    margin-top: 1.5rem;
    width: 100%;
    background: rgb(56, 189, 248);
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(56, 189, 248, 0.3);
}

/* Blog content styles - since Tailwind Typography plugin is not included */
.blog-content p {
    margin-bottom: 1.25rem;
    color: rgb(209, 213, 219);
    line-height: 1.75;
}

.blog-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .blog-content h2 {
        font-size: 1.875rem; /* text-3xl */
    }
}

.blog-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .blog-content h3 {
        font-size: 1.25rem; /* text-xl */
    }
}

.blog-content ul, .blog-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    color: rgb(209, 213, 219);
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content ul li {
    list-style-type: disc;
}

.blog-content ol li {
    list-style-type: decimal;
}

.blog-content strong {
    color: white;
    font-weight: 600;
}

.blog-content a {
    color: rgb(56, 189, 248);
    text-decoration: none;
}

.blog-content blockquote {
    border-left: 4px solid rgb(56, 189, 248);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: rgb(209, 213, 219);
    font-style: italic;
}

.blog-content code {
    background: rgba(255, 255, 255, 0.1);
    color: rgb(56, 189, 248);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.blog-content pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-content pre code {
    background: none;
    padding: 0;
}

/* Table of Contents (TOC) */
.blog-content .toc {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem 0;
}

.blog-content .toc > p {
    margin-bottom: 0.75rem;
    color: white;
}

.blog-content .toc ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.blog-content .toc li {
    margin-bottom: 0.375rem;
}

.blog-content .toc a {
    color: rgb(156, 163, 175);
    transition: color 0.2s;
}

.blog-content .toc a:hover {
    color: rgb(56, 189, 248);
}

/* FAQ Section */
.blog-content .faq {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2.5rem 0;
}

.blog-content .faq > h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-content .faq-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-content .faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-content .faq-item h3 {
    color: rgb(56, 189, 248);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.blog-content .faq-item p {
    margin-bottom: 0;
    color: rgb(156, 163, 175);
    font-size: 0.9375rem;
}

/* Hover effects - only on devices with mouse/trackpad (not touch screens) */
@media (hover: hover) and (pointer: fine) {
    .integration-logo:hover img {
        filter: grayscale(0) brightness(1);
        transform: translateY(-5px) scale(1.05) !important;
    }

    .feature-card:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-4px);
    }

    .contact-button:hover {
        background: rgb(14, 165, 233);
        box-shadow: 0 20px 25px -5px rgba(56, 189, 248, 0.4);
        transform: scale(1.05);
    }

    .blog-content a:hover {
        text-decoration: underline;
    }
}
