/*
 * FatCat Digital - Signature Styles
 * Automatically injected into all customer websites
 * Version: 1.0
 *
 * This CSS provides the recognizable "FatCat touch" to every website:
 * - Blue-Purple gradient for CTAs
 * - Ultra-smooth animations
 * - Premium hover effects
 * - Professional typography
 *
 * Balance: 70% customer-specific colors, 30% FatCat signature
 */

/* ========================================
   1. CSS VARIABLES (FatCat Brand Colors)
   ======================================== */

:root {
    /* FatCat Primary Colors */
    --fatcat-blue: #3b82f6;
    --fatcat-purple: #8b5cf6;
    --fatcat-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);

    /* FatCat Shadow Colors */
    --fatcat-shadow-light: rgba(59, 130, 246, 0.3);
    --fatcat-shadow-medium: rgba(59, 130, 246, 0.4);
    --fatcat-shadow-heavy: rgba(59, 130, 246, 0.5);

    /* FatCat Animation Timing */
    --fatcat-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --fatcat-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================
   2. ULTRA-SMOOTH ANIMATIONS (Signature!)
   ======================================== */

/* Apply smooth transitions to everything */
* {
    transition-property: transform, opacity, background, border, color, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: var(--fatcat-ease);
}

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

/* GPU Acceleration for smooth animations */
.card,
.btn-primary,
button[type="submit"],
.product-card,
.service-card {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* ========================================
   3. FATCAT BUTTON STYLES (Always Gradient!)
   ======================================== */

.btn-primary,
button[type="submit"],
a.cta-button,
.fatcat-btn {
    background: var(--fatcat-gradient) !important;
    border-radius: 12px !important;
    padding: 14px 32px !important;
    font-weight: 600 !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 8px 24px var(--fatcat-shadow-light) !important;
    transition: all 0.3s var(--fatcat-ease) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-block !important;
}

/* Button Hover (FatCat Lift) */
.btn-primary:hover,
button[type="submit"]:hover,
a.cta-button:hover,
.fatcat-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 40px var(--fatcat-shadow-medium) !important;
}

/* Button Active (FatCat Press) */
.btn-primary:active,
button[type="submit"]:active,
a.cta-button:active,
.fatcat-btn:active {
    transform: scale(0.95) !important;
}

/* Button Focus (Accessibility) */
.btn-primary:focus,
button[type="submit"]:focus,
a.cta-button:focus,
.fatcat-btn:focus {
    outline: 2px solid var(--fatcat-blue);
    outline-offset: 2px;
}

/* ========================================
   4. FATCAT CARD HOVERS (Signature Bounce!)
   ======================================== */

.card,
.service-card,
.product-card,
.testimonial-card,
.feature-card,
.blog-card {
    transition: transform 0.4s var(--fatcat-bounce),
                box-shadow 0.4s var(--fatcat-ease) !important;
}

/* Card Hover (FatCat Bounce) */
.card:hover,
.service-card:hover,
.product-card:hover,
.testimonial-card:hover,
.feature-card:hover,
.blog-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 60px var(--fatcat-shadow-light) !important;
}

/* ========================================
   5. FATCAT GRADIENT TEXT (For Headlines)
   ======================================== */

h1 > .highlight,
h2 > .highlight,
.gradient-text,
.fatcat-text {
    background: var(--fatcat-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* ========================================
   6. FATCAT TYPOGRAPHY (Professional!)
   ======================================== */

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========================================
   7. FATCAT FEATURE ICONS (Subtle Gradient)
   ======================================== */

.feature-icon,
.service-icon,
.benefit-icon {
    background: linear-gradient(135deg,
                rgba(59, 130, 246, 0.15),
                rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s var(--fatcat-ease);
}

.feature-icon:hover,
.service-icon:hover,
.benefit-icon:hover {
    background: linear-gradient(135deg,
                rgba(59, 130, 246, 0.25),
                rgba(139, 92, 246, 0.25));
    border-color: rgba(59, 130, 246, 0.5);
    transform: scale(1.05);
}

/* ========================================
   8. FATCAT LINKS (Subtle Gradient)
   ======================================== */

a:not(.btn-primary):not(.cta-button) {
    transition: color 0.3s var(--fatcat-ease);
}

a:not(.btn-primary):not(.cta-button):hover {
    color: var(--fatcat-blue);
}

/* ========================================
   9. FATCAT FORM INPUTS (Focus State)
   ======================================== */

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--fatcat-blue) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* ========================================
   10. FATCAT LOADING ANIMATIONS
   ======================================== */

@keyframes fatcat-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes fatcat-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.fatcat-loading {
    animation: fatcat-pulse 2s var(--fatcat-ease) infinite;
}

.fatcat-spinner {
    animation: fatcat-spin 1s linear infinite;
}

/* ========================================
   11. RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    /* Smaller buttons on mobile */
    .btn-primary,
    button[type="submit"],
    a.cta-button,
    .fatcat-btn {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }

    /* Less aggressive hover on touch devices */
    .card:hover,
    .service-card:hover,
    .product-card:hover {
        transform: translateY(-4px) !important;
    }
}

/* ========================================
   12. ACCESSIBILITY
   ======================================== */

/* Respect reduced motion preferences */
@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;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary,
    button[type="submit"],
    a.cta-button {
        border: 2px solid white !important;
    }
}

/* ========================================
   13. PRINT STYLES
   ======================================== */

@media print {
    /* Remove animations for print */
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    /* Ensure buttons are visible */
    .btn-primary,
    button[type="submit"],
    a.cta-button {
        background: var(--fatcat-blue) !important;
        color: white !important;
        box-shadow: none !important;
    }
}

/* ========================================
   FatCat Digital - Made with ❤️
   https://fatcatdigital.de
   ======================================== */
