/* =========================================
   MODERN UI/UX STYLESHEET - SlotMarket
   ========================================= */

:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --secondary: #EC4899;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --dark: #1F2937;
    --light: #F9FAFB;
    --border: #E5E7EB;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   1. GLOBAL & TYPOGRAPHY
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background-attachment: fixed;
    padding-bottom: 80px;
    line-height: 1.6;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* =========================================
   2. ENHANCED MOBILE NAVIGATION
   ========================================= */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
    z-index: 1000;
    border-top: 1px solid rgba(79, 70, 229, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6B7280;
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 8px 12px;
    border-radius: 12px;
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
    transition: var(--transition);
}

.nav-item.active {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.08);
}

.nav-item.active i {
    transform: scale(1.1);
}

.nav-item:active {
    transform: scale(0.95);
}

/* Floating Action Button */
.fab-container {
    position: relative;
    top: -28px;
}

.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
    border: 4px solid #fff;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.fab-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.fab-btn:hover::before {
    width: 300px;
    height: 300px;
}

.fab-btn:hover {
    transform: scale(1.05) rotate(90deg);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.5);
}

.fab-btn:active {
    transform: scale(0.95);
}

/* =========================================
   3. ENHANCED CARD & PRODUCT STYLES
   ========================================= */
.card-product {
    border-radius: var(--radius-lg);
    border: none;
    transition: var(--transition);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-md);
    position: relative;
    height: 100%;
}

.card-product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card-product:hover::before {
    transform: scaleX(1);
}

.card-product:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: var(--transition);
}

.card-product:hover .card-img-top {
    transform: scale(1.05);
}

.price-tag {
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* Mobile List View */
@media (max-width: 767px) {
    .card-product {
        flex-direction: row;
        height: 140px;
    }
    
    .card-img-top {
        width: 40%;
        height: 100%;
    }
    
    .card-body {
        width: 60%;
        padding: 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

/* =========================================
   4. MODERN FORM INPUTS
   ========================================= */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    transition: var(--transition);
    background: white;
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

/* Code Input (Activation) */
.code-input {
    letter-spacing: 8px;
    font-size: 1.8rem;
    text-align: center;
    border: 3px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    transition: var(--transition);
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
}

.code-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.15);
    background: white;
}

/* =========================================
   5. ENHANCED BUTTONS
   ========================================= */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* =========================================
   6. BADGES & CHIPS
   ========================================= */
.badge-slot {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.badge-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.badge-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #DC2626 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* =========================================
   7. LOADING ANIMATIONS
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

/* =========================================
   8. GLASS MORPHISM EFFECTS
   ========================================= */
.glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.glass-dark {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* =========================================
   9. ALERT MESSAGES
   ========================================= */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.5s ease-out;
    box-shadow: var(--shadow-md);
}

.alert-success {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    border-left: 4px solid var(--success);
    color: #065F46;
}

.alert-error {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    border-left: 4px solid var(--danger);
    color: #991B1B;
}

.alert-info {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    border-left: 4px solid var(--primary);
    color: #1E3A8A;
}

/* =========================================
   10. RESPONSIVE UTILITIES
   ========================================= */
.container-custom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container-custom {
        padding: 0 16px;
    }
    
    body {
        font-size: 14px;
    }
}

/* =========================================
   11. HOVER EFFECTS & MICRO-INTERACTIONS
   ========================================= */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.4);
}

/* =========================================
   12. CUSTOM SCROLLBAR
   ========================================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
}/* Animation styles added */

/* =========================================
   13. BLOB ANIMATIONS
   ========================================= */
@keyframes blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -50px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(50px, 50px) scale(1.05); }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* =========================================
   14. TEXT GRADIENT ANIMATION
   ========================================= */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

/* =========================================
   15. SHIMMER EFFECT
   ========================================= */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}
