/* ==========================================================================
   JavanehSchool - Utility & Animation Classes
   ادغام: extra-styles.css + tailwind-classes.css
   ========================================================================== */

/* ==========================================================================
   1. Animations
   ========================================================================== */

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.slide-in-up  { animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.fade-in      { animation: fadeIn 0.3s ease; }
.animate-bounce { animation: bounce 1s infinite; }

/* ==========================================================================
   2. Transform & Transition Utilities
   ========================================================================== */

.-translate-x-1\/2    { transform: translateX(50%); }
.group:hover .group-hover\:-translate-y-1 { transform: translateY(-0.25rem); }
.group:hover .group-hover\:-translate-y-2 { transform: translateY(-0.5rem); }

.duration-300 { transition-duration: 300ms; }
.delay-75     { transition-delay: 75ms; }
.delay-100    { transition-delay: 100ms; }
.delay-150    { transition-delay: 150ms; }

/* ==========================================================================
   3. Filter Utilities
   ========================================================================== */

.blur-2xl      { filter: blur(40px); }
.drop-shadow-sm { filter: drop-shadow(0 1px 1px rgba(0,0,0,0.05)); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }

/* ==========================================================================
   4. Opacity
   ========================================================================== */

.opacity-0  { opacity: 0; }
.opacity-30 { opacity: 0.3; }
.opacity-50 { opacity: 0.5; }
.opacity-80 { opacity: 0.8; }

/* ==========================================================================
   5. Shadow Utilities
   ========================================================================== */

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

.shadow-inner   { box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.06); }
.shadow-soft    { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.shadow-medium  { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.shadow-large   { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }

.shadow-yellow-100 {
    box-shadow: 0 10px 15px -3px rgba(254,249,195,0.4), 0 4px 6px -2px rgba(254,249,195,0.2);
}

.shadow-blue-200 {
    box-shadow: 0 20px 25px -5px rgba(191,219,254,0.4), 0 10px 10px -5px rgba(191,219,254,0.2);
}

/* ==========================================================================
   6. Background Colors
   ========================================================================== */

.bg-blue-400   { background-color: #60A5FA; }
.bg-blue-500   { background-color: #3B82F6; }
.bg-blue-600   { background-color: #2563EB; }
.bg-blue-700   { background-color: #1D4ED8; }
.bg-blue-800\/30 { background-color: rgba(30,64,175,0.3); }
.bg-yellow-50  { background-color: #FEFCE8; }
.bg-yellow-400 { background-color: #FACC15; }
.bg-slate-100  { background-color: #F1F5F9; }
.bg-slate-200  { background-color: #E2E8F0; }
.bg-orange-200 { background-color: #FED7AA; }
.bg-orange-300 { background-color: #FDBA74; }
.bg-lime-400   { background-color: #A3E635; }
.bg-white\/20  { background-color: rgba(255,255,255,0.2); }
.bg-white\/40  { background-color: rgba(255,255,255,0.4); }

/* ==========================================================================
   7. Text Colors
   ========================================================================== */

.text-blue-100  { color: #DBEAFE; }
.text-blue-200  { color: #BFDBFE; }
.text-yellow-400 { color: #FACC15; }
.text-slate-200 { color: #E2E8F0; }
.text-slate-300 { color: #CBD5E1; }
.text-slate-600 { color: #475569; }

.text-gradient {
    background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   8. Border Utilities
   ========================================================================== */

.border-2         { border-width: 2px; }
.border-4         { border-width: 4px; }
.border-dashed    { border-style: dashed; }
.border-yellow-400 { border-color: #FACC15; }
.border-slate-200  { border-color: #E2E8F0; }
.border-orange-200 { border-color: #FED7AA; }
.hover\:border-blue-400:hover { border-color: #60A5FA; }
.hover\:text-blue-500:hover   { color: #3B82F6; }

/* ==========================================================================
   9. Sizing
   ========================================================================== */

.w-2\.5 { width: 0.625rem; }
.w-5    { width: 1.25rem; }
.w-6    { width: 1.5rem; }
.w-12   { width: 3rem; }
.w-16   { width: 4rem; }
.w-32   { width: 8rem; }
.w-40   { width: 10rem; }
.w-1\/3 { width: 33.333333%; }
.w-1\/4 { width: 25%; }

.h-2\.5 { height: 0.625rem; }
.h-5    { height: 1.25rem; }
.h-6    { height: 1.5rem; }
.h-8    { height: 2rem; }
.h-9    { height: 2.25rem; }
.h-12   { height: 3rem; }
.h-14   { height: 3.5rem; }
.h-16   { height: 4rem; }
.h-20   { height: 5rem; }
.h-32   { height: 8rem; }

.min-h-\[320px\] { min-height: 320px; }

/* ==========================================================================
   10. Spacing
   ========================================================================== */

.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.gap-1     { gap: 0.25rem; }
.gap-2\.5  { gap: 0.625rem; }
.p-0\.5    { padding: 0.125rem; }
.p-1\.5    { padding: 0.375rem; }
.pb-1\.5   { padding-bottom: 0.375rem; }
.pb-2      { padding-bottom: 0.5rem; }

.-mt-6     { margin-top: -1.5rem; }
.-top-4    { top: -1rem; }
.-top-5    { top: -1.25rem; }
.-top-10   { top: -2.5rem; }
.-top-12   { top: -3rem; }
.-right-10 { right: -2.5rem; }
.-left-10  { left: -2.5rem; }
.-right-0\.5 { right: -0.125rem; }
.-bottom-1\.5 { bottom: -0.375rem; }
.left-1\/2   { left: 50%; }

/* ==========================================================================
   11. Border Radius
   ========================================================================== */

.rounded-3xl { border-radius: 1.5rem; }
.rounded-t-lg { border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; }
.rounded-t-md { border-top-left-radius: 0.375rem; border-top-right-radius: 0.375rem; }

/* ==========================================================================
   12. Layout Utilities
   ========================================================================== */

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.leading-tight { line-height: 1.25; }
.cursor-pointer { cursor: pointer; }

/* ==========================================================================
   13. Gradient Utilities
   ========================================================================== */

.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }

.from-slate-100 {
    --tw-gradient-from: #F1F5F9;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(241,245,249,0));
}

.from-yellow-50 {
    --tw-gradient-from: #FEFCE8;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(254,252,232,0));
}

.from-orange-50 {
    --tw-gradient-from: #FFF7ED;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255,247,237,0));
}

.to-white { --tw-gradient-to: #FFFFFF; }

/* ==========================================================================
   14. Glass Effect
   ========================================================================== */

.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
