/* Custom CSS for Teer Platform - Compact & Professional */

/* Global Spacing Fixes */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Reduce excessive padding/margins */
.container, .max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

@media (min-width: 640px) {
    .container, .max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* Compact Sections */
section, .section {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

@media (min-width: 640px) {
    section, .section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Compact Cards - REMOVED !important to allow Tailwind utilities */
.card {
    padding: 0.75rem;
}

@media (min-width: 640px) {
    .card {
        padding: 1rem;
    }
}

/* Compact Headings - Removed !important to allow Tailwind control */

/* ========================================
   BUTTON ANIMATIONS - ALWAYS MOVING & CHANGING
   ======================================== */

/* Continuous Gradient Animation */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    50% {
        background-position: 100% 50%;
        filter: hue-rotate(10deg);
    }
}

/* Floating Animation - Gentle Up/Down */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* Pulse Scale - Gets Bigger/Smaller */
@keyframes pulse-scale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* CTA Buttons ONLY - Primary action buttons with gradients */
button[type="submit"],
input[type="submit"],
input[type="button"],
button.bg-gradient-to-r,
a.bg-gradient-to-r,
.btn-primary,
button[class*="from-green"],
a[class*="from-green"],
button[class*="from-blue"],
a[class*="from-blue"],
button[class*="from-orange"],
a[class*="from-orange"] {
    min-height: 44px !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;

    /* ALWAYS ANIMATED - Multiple animations at once! */
    animation:
        float 3s ease-in-out infinite,
        pulse-scale 2s ease-in-out infinite,
        gradient-shift 4s ease infinite !important;

    background-size: 200% 200% !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hover Effect - Lift Up + Shadow - CTA BUTTONS ONLY */
button[type="submit"]:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
button.bg-gradient-to-r:hover,
a.bg-gradient-to-r:hover,
button[class*="from-green"]:hover,
a[class*="from-green"]:hover,
button[class*="from-blue"]:hover,
a[class*="from-blue"]:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    filter: brightness(1.15) !important;
}

/* Active/Click Effect - Push Down - CTA BUTTONS ONLY */
button[type="submit"]:active,
input[type="submit"]:active,
input[type="button"]:active,
button.bg-gradient-to-r:active,
a.bg-gradient-to-r:active,
button[class*="from-green"]:active,
a[class*="from-green"]:active {
    transform: translateY(1px) scale(0.95) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Enhanced Pulse with Rainbow Glow */
@keyframes pulse-rainbow {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6),
                    0 0 20px rgba(16, 185, 129, 0.4);
    }
    25% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0),
                    0 0 30px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6),
                    0 0 20px rgba(249, 115, 22, 0.4);
    }
    75% {
        box-shadow: 0 0 0 8px rgba(249, 115, 22, 0),
                    0 0 30px rgba(168, 85, 247, 0.4);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6),
                    0 0 20px rgba(16, 185, 129, 0.4);
    }
}

/* Glowing Border Animation */
@keyframes glow-border {
    0%, 100% {
        border-color: rgba(16, 185, 129, 0.8);
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    }
    33% {
        border-color: rgba(59, 130, 246, 0.8);
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    }
    66% {
        border-color: rgba(249, 115, 22, 0.8);
        box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
    }
}

/* Apply EXTRA animations to CTA buttons only */
button[type="submit"],
input[type="submit"],
input[type="button"],
button.bg-gradient-to-r,
a.bg-gradient-to-r,
button[class*="from-green"],
a[class*="from-green"],
button[class*="from-blue"],
a[class*="from-blue"] {
    animation:
        float 3s ease-in-out infinite,
        pulse-scale 2s ease-in-out infinite,
        pulse-rainbow 3s ease-in-out infinite,
        glow-border 4s ease infinite !important;
    border: 2px solid transparent !important;
}

/* Shimmer Effect - ALWAYS ON */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Wiggle Animation - Draws Attention */
@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-2deg);
    }
    75% {
        transform: rotate(2deg);
    }
}

/* Shimmer Effect ALWAYS VISIBLE - CTA BUTTONS ONLY */
button[type="submit"]::before,
input[type="submit"]::before,
input[type="button"]::before,
button.bg-gradient-to-r::before,
a.bg-gradient-to-r::before,
button[class*="from-green"]::before,
a[class*="from-green"]::before,
button[class*="from-blue"]::before,
a[class*="from-blue"]::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    ) !important;
    animation: shimmer 2s infinite !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Text should be above shimmer - CTA buttons only */
button[type="submit"] *,
input[type="submit"] *,
input[type="button"] *,
button.bg-gradient-to-r *,
a.bg-gradient-to-r *,
button[class*="from-green"] *,
a[class*="from-green"] * {
    position: relative !important;
    z-index: 2 !important;
}

/* CTA Buttons Get Wiggle */
button[type="submit"],
input[type="submit"],
input[type="button"],
button.bg-gradient-to-r,
a.bg-gradient-to-r,
button[class*="from-green"],
a[class*="from-green"],
button[class*="from-blue"],
a[class*="from-blue"] {
    animation:
        float 3s ease-in-out infinite,
        pulse-scale 2s ease-in-out infinite,
        pulse-rainbow 3s ease-in-out infinite,
        glow-border 4s ease infinite,
        wiggle 1.5s ease-in-out infinite !important;
}

/* Compact Forms */
input, textarea, select {
    min-height: 44px; /* Touch-friendly */
}

/* Mobile Bottom Navigation - Ensure visibility */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: white;
    border-top: 1px solid #e5e7eb;
    height: 64px;
}

/* Mobile Nav Buttons - Extra Bounce */
.mobile-nav a:active,
.mobile-nav button:active {
    transform: scale(0.9);
}

/* Smooth Transitions */
* {
    transition: all 0.2s ease;
}

/* Modal - Removed !important */
.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Tables, animations, alerts - Removed !important to allow Tailwind control */

/* Mobile optimizations - Removed !important to allow Tailwind control */

/* Performance Optimizations */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Hide Scrollbar but keep functionality */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus States for Accessibility */
button:focus, a:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .no-print, nav, footer, .mobile-nav {
        display: none !important;
    }
}

/* Form Input Placeholder Text - Ensure Visibility */
input::placeholder,
textarea::placeholder,
select::placeholder {
    color: #9ca3af;
    opacity: 0.6;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder,
body.dark-mode select::placeholder {
    color: #9ca3af;
    opacity: 0.6;
}

/* Input Field Text - LIGHT MODE (Default) */
input,
textarea,
select {
    color: #111827 !important;
    background-color: #ffffff;
}

/* Input Field Text - DARK MODE */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    color: #f1f5f9 !important;
    background-color: #334155;
    border-color: #475569;
}

/* Modern Plan Cards */
.plan-card {
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-4px);
}

body.dark-mode .bg-gradient-to-br {
    background: linear-gradient(to bottom right, #1e293b, #0f172a) !important;
}

