/**
 * Custom CSS Styles
 * Styles tambahan untuk DAPOY SHOP
 */

/* ===========================================
   TYPOGRAPHY
   =========================================== */
.font-display {
    font-family: 'Playfair Display', serif;
}

.font-body {
    font-family: 'Poppins', sans-serif;
}

/* ===========================================
   CUSTOM SCROLLBAR
   =========================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===========================================
   LINE CLAMP (TEXT TRUNCATION)
   =========================================== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===========================================
   ANIMATIONS
   =========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-in {
    animation: slideIn 0.5s ease-out forwards;
}

/* ===========================================
   BUTTON HOVER EFFECTS
   =========================================== */
.btn-primary {
    @apply bg-orange-600 text-white px-6 py-3 rounded-lg font-medium transition-all duration-300;
}

.btn-primary:hover {
    @apply bg-orange-700 shadow-lg transform -translate-y-0.5;
}

.btn-secondary {
    @apply bg-transparent border-2 border-orange-600 text-orange-600 px-6 py-3 rounded-lg font-medium transition-all duration-300;
}

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

/* ===========================================
   CARD HOVER EFFECTS
   =========================================== */
.card-hover {
    @apply bg-white rounded-xl overflow-hidden shadow-md transition-all duration-300;
}

.card-hover:hover {
    @apply shadow-xl transform -translate-y-1;
}

/* ===========================================
   FORM INPUTS
   =========================================== */
input:focus,
textarea:focus,
select:focus {
    @apply ring-2 ring-orange-500 border-transparent outline-none;
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */
.text-gradient {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-pattern {
    background-color: #fef7ed;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23fb923c' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ===========================================
   LOADING STATES
   =========================================== */
.loading {
    @apply relative overflow-hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ===========================================
   BADGE STYLES
   =========================================== */
.badge-preorder {
    @apply bg-orange-600 text-white text-xs font-semibold px-3 py-1 rounded-full;
}

.badge-ready {
    @apply bg-green-600 text-white text-xs font-semibold px-3 py-1 rounded-full;
}

.badge-pending {
    @apply bg-yellow-500 text-white text-xs font-semibold px-3 py-1 rounded-full;
}

/* ===========================================
   RESPONSIVE UTILITIES
   =========================================== */
@media (max-width: 640px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 641px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ===========================================
   SMOOTH SCROLL
   =========================================== */
html {
    scroll-behavior: smooth;
}

/* ===========================================
   Z-INDEX HELPERS
   =========================================== */
.z-dropdown {
    z-index: 40;
}

.z-modal {
    z-index: 50;
}

.z-toast {
    z-index: 60;
}

/* ===========================================
   PRINT STYLES
   =========================================== */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
    }
}