﻿/* ========================================
   QikDoc - Common Stylesheet
   ======================================== */

/* Base Typography */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* Gradient Utilities */
.gradient-primary {
    background: linear-gradient(135deg, #14b8a6 0%, #3b82f6 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #14b8a6 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-gradient {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-in;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

.pulse-dot {
    animation: pulse 2s infinite;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

    .card-hover:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }

.feature-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

    .feature-card:hover {
        border-color: #14b8a6;
        box-shadow: 0 10px 30px rgba(20, 184, 166, 0.15);
    }

/* Navigation */
#navbar {
    transition: all 0.3s ease;
}

    #navbar.scrolled {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

/* Mobile Menu */
#mobile-menu {
    transition: all 0.3s ease;
}

/* FAQ Accordion */
.faq-toggle {
    transition: all 0.3s ease;
}

    .faq-toggle:hover {
        background-color: #f9fafb;
    }

.faq-content {
    transition: all 0.3s ease;
}

.faq-toggle i {
    transition: transform 0.3s ease;
}

.faq-toggle[aria-expanded="true"] i,
.faq-toggle.active i {
    transform: rotate(180deg);
}

/* Back to Top Button */
#backToTop {
    transition: all 0.3s ease;
}

    #backToTop.visible {
        opacity: 1 !important;
        visibility: visible !important;
    }

    #backToTop:hover {
        transform: translateY(-3px);
    }

/* Form Elements */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* Buttons */
.gradient-primary {
    transition: all 0.3s ease;
}

    .gradient-primary:hover {
        transform: scale(1.02);
        box-shadow: 0 10px 25px rgba(20, 184, 166, 0.3);
    }

/* Policy Pages */
.policy-section {
    scroll-margin-top: 100px;
}

.toc-link {
    transition: all 0.2s ease;
}

    .toc-link:hover {
        color: #14b8a6;
        background-color: #f0fdfa;
    }

.compliance-badge {
    animation: pulse 2s infinite;
}

/* Agreement Boxes */
.agreement-box {
    border-left: 4px solid #14b8a6;
    transition: all 0.3s ease;
}

    .agreement-box:hover {
        background-color: #f9fafb;
    }

/* Signature Lines */
.signature-line {
    border-bottom: 2px dashed #9ca3af;
    display: inline-block;
    min-width: 200px;
    transition: border-color 0.3s ease;
}

    .signature-line:focus {
        border-color: #14b8a6;
    }

/* Stats Counter */
[data-count] {
    transition: all 0.3s ease;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* 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;
    }
}

/* Print Styles */
@media print {
    #navbar,
    #backToTop,
    .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .hero-gradient {
        padding-top: 2rem;
    }

    h1 {
        font-size: 2.5rem !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .gradient-primary {
        background: #14b8a6;
    }

    .gradient-text {
        color: #14b8a6;
        -webkit-text-fill-color: #14b8a6;
    }
}
