@tailwind base;
@tailwind components;
@tailwind utilities;
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&family=Nunito:wght@200;300;400;600;700&display=swap');

@layer base {

    html {
        @apply font-body h-full;
    }

    h1, h2, h3, h4, h5, h6 {
        @apply font-display;
    }
}

@layer components {
    .btn {
        @apply px-4 py-2 rounded-lg font-semibold transition-all duration-200;
    }

    .btn-primary {
        @apply btn bg-primary-500 text-white hover:bg-primary-600;
    }

    .btn-secondary {
        @apply btn bg-secondary-500 text-white hover:bg-secondary-600;
    }

    .card {
        @apply bg-white rounded-xl shadow-lg p-6 transition-all duration-200 hover:shadow-xl;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .card:hover {
        transform: translateY(-5px) rotate(1deg);
    }

    .input {
        @apply rounded-lg border-gray-300 focus:border-primary-500 focus:ring focus:ring-primary-200 focus:ring-opacity-50;
    }

    .tag {
        @apply inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-primary-100 text-primary-800;
    }
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Custom Animations */
@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-25px);
    }
}

@keyframes gradient-xy {
    0%, 100% {
        background-size: 400% 400%;
        background-position: 0% 0%;
    }
    50% {
        background-size: 200% 200%;
        background-position: 100% 100%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(15deg);
    }
    75% {
        transform: rotate(-15deg);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 3s infinite;
}

.animate-gradient-xy {
    animation: gradient-xy 15s ease infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-wiggle {
    animation: wiggle 1s ease-in-out infinite;
}

/* Z-index utilities */
.-z-10 {
    z-index: -10;
}

.feature-toggle {
    position: relative;
    overflow: hidden;
}

.feature-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(236, 72, 153, 0.2);
}

.feature-toggle:active {
    transform: translateY(0);
}

.toggle-state {
    margin-left: 0.5rem;
    font-size: 0.8em;
    opacity: 0.8;
}
