/* Custom styles to complement Tailwind CSS - ML Diamonds Store */

/* Myanmar Font Support */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Myanmar:wght@300;400;500;600;700;800;900&display=swap');

/* Font fallbacks for Myanmar */
.myanmar-text {
    font-family: 'Noto Sans Myanmar', 'Myanmar Text', 'Padauk', 'Myanmar3', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Animation classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.pulse-hover:hover {
    animation: pulse 0.3s ease-in-out;
}

/* Custom gradients - Fixed for Myanmar text */
.gradient-text {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Fallback for Myanmar fonts that don't support webkit-text-fill-color */
    color: #3b82f6;
    font-family: 'Noto Sans Myanmar', 'Myanmar Text', 'Padauk', 'Myanmar3', sans-serif;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Fix for Myanmar language - using data attribute */
.gradient-text[data-lang="mm"],
.gradient-text.myanmar-text[data-lang="mm"] {
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    text-shadow: 
        0 0 20px rgba(59, 130, 246, 0.6),
        0 0 40px rgba(139, 92, 246, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3) !important;
    background: none !important;
    font-family: 'Noto Sans Myanmar', 'Myanmar Text', 'Padauk', 'Myanmar3', sans-serif !important;
    font-weight: 800 !important;
    font-size: inherit !important;
}

/* Myanmar subtitle text styling */
.myanmar-text[data-lang="mm"] {
    font-family: 'Noto Sans Myanmar', 'Myanmar Text', 'Padauk', 'Myanmar3', sans-serif !important;
    font-weight: 500 !important;
    color: #d1d5db !important; /* text-gray-300 equivalent */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Ensure Myanmar text is always visible */
.gradient-text:lang(my),
.gradient-text[lang="my"],
html[lang="my"] .gradient-text {
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    text-shadow: 
        0 0 20px rgba(59, 130, 246, 0.6),
        0 0 40px rgba(139, 92, 246, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3) !important;
    background: none !important;
    font-family: 'Noto Sans Myanmar', 'Myanmar Text', 'Padauk', 'Myanmar3', sans-serif !important;
    font-weight: 800 !important;
}

/* Alternative gradient text for Myanmar */
.myanmar-gradient-text {
    color: #ffffff;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    text-shadow: 
        0 0 20px rgba(59, 130, 246, 0.6),
        0 0 40px rgba(139, 92, 246, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Noto Sans Myanmar', 'Myanmar Text', 'Padauk', 'Myanmar3', sans-serif;
    font-weight: 800;
}

/* Custom shadows */
.custom-shadow {
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Button styles */
.btn-primary {
    background: linear-gradient(45deg, #3b82f6, #6366f1);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #2563eb, #5338f5);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive typography */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* Focus styles for accessibility */
button:focus,
a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ML Hero Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-30px) rotate(3deg);
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 
                     0 0 30px rgba(251, 191, 36, 0.6),
                     0 0 40px rgba(251, 191, 36, 0.4);
        filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.3));
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 1), 
                     0 0 40px rgba(251, 191, 36, 0.8),
                     0 0 50px rgba(251, 191, 36, 0.6);
        filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.5));
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation delay classes */
.animation-delay-1000 { animation-delay: 1s; }
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-3000 { animation-delay: 3s; }
.animation-delay-4000 { animation-delay: 4s; }
.animation-delay-5000 { animation-delay: 5s; }

.slide-in-left { animation: slideInLeft 0.8s ease-out; }
.slide-in-right { animation: slideInRight 0.8s ease-out; }

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.text-glow {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
    }
    .hero-subtitle {
        font-size: 1rem !important;
    }
    .floating-element {
        display: none;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .hero-section {
        background: #000 !important;
        color: #fff !important;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Extra line height for Myanmar FAQ headings/subtitles */
.myanmar-line {
  line-height: 2.1 !important;
} 

.myanmar-line {
    border-bottom: 2px solid #3b82f6;
    width: 50px;
    margin: 1rem auto;
}

/* ===== PROMOTIONAL BANNER STYLES FOR ML LAYOUT ===== */

.promo-banner {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(56, 182, 255, 0.4);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #38B6FF 0%, #2493D4 50%, #1f7db8 100%);
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.countdown-timer {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.countdown-timer small {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 500;
}

.countdown-timer span {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-promo {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-promo:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-promo:active {
    transform: translateY(0);
}

/* Mobile responsive adjustments for ML promo banner */
@media (max-width: 768px) {
    .promo-banner {
        padding: 1rem 0 !important;
    }
    
    .promo-banner .text-lg {
        font-size: 1rem !important;
    }
    
    .promo-banner .text-xl {
        font-size: 1.125rem !important;
    }
    
    .countdown-timer {
        padding: 0.375rem 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .countdown-timer span {
        font-size: 1rem;
    }
    
    .btn-promo {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .promo-banner .flex {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .promo-banner .countdown-timer {
        margin: 0.5rem 0;
    }
    
    .promo-banner .text-sm {
        font-size: 0.875rem;
    }
    
    .promo-banner .text-base {
        font-size: 1rem;
    }
} 

/* Glow pulse animation for promotional banner */
@keyframes glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.6));
    }
} 