/* ============================================
   AIAllure - Red/Black/Orange Theme
   ============================================ */

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #ff3333;
}

/* Animations */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 51, 51, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 51, 51, 0.7);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-bounce-in {
    animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

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

.animate-slide-up {
    animation: slideUp 0.4s ease-out forwards;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Glassmorphism */
.backdrop-blur-md {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    background-color: rgba(10, 10, 10, 0.9);
}

@supports (backdrop-filter: blur(12px)) {
    .backdrop-blur-md {
        background-color: rgba(10, 10, 10, 0.85);
    }
}

/* Text Selection */
::selection {
    background: #ff3333;
    color: white;
}

html {
    scroll-behavior: smooth;
    background-color: #0a0a0a;
}

/* ============================================
   Gift Popup Modal Styles
   ============================================ */
.gift-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gift-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.gift-popup-modal {
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 51, 51, 0.3);
    border-radius: 1.5rem;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.gift-popup-overlay.active .gift-popup-modal {
    transform: scale(1) translateY(0);
}

.gift-popup-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 1.5rem 1.5rem 0 0;
}

.gift-popup-content {
    padding: 1.25rem;
}

.gift-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, #ff3333, #ff6600);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.gift-popup-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.gift-popup-highlight {
    color: #ff3333;
}

.gift-popup-text {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.gift-popup-bonus {
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid rgba(255, 51, 51, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.gift-popup-bonus-title {
    color: #ff6600;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.gift-popup-bonus-value {
    color: white;
    font-size: 1.5rem;
    font-weight: 900;
}

.gift-popup-cta {
    display: block;
    width: 100%;
    background: linear-gradient(90deg, #ff3333, #ff6600);
    color: white;
    font-weight: 800;
    font-size: 1rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 51, 51, 0.4);
}

.gift-popup-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 51, 51, 0.6);
}

.gift-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.gift-popup-close:hover {
    background: rgba(255, 51, 51, 0.8);
    transform: rotate(90deg);
}

/* ============================================
   Responsive Breakpoints
   ============================================ */

/* Mobile First Base */
.container-responsive {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Tablet (768px+) */
@media (min-width: 768px) {
    .container-responsive {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .gift-popup-image {
        height: 260px;
    }
    
    .gift-popup-content {
        padding: 2rem;
    }
    
    .gift-popup-title {
        font-size: 2rem;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .container-responsive {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .gift-popup-modal {
        max-width: 480px;
    }
    
    .gift-popup-image {
        height: 280px;
    }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
    .container-responsive {
        max-width: 1280px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-gradient-red {
    background: linear-gradient(90deg, #ff3333, #ff6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient-red {
    border: 2px solid transparent;
    background: linear-gradient(#0a0a0a, #0a0a0a) padding-box,
                linear-gradient(90deg, #ff3333, #ff6600) border-box;
}

.bg-gradient-red {
    background: linear-gradient(90deg, #ff3333, #ff6600);
}

.shadow-red {
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.4);
}

.shadow-red-lg {
    box-shadow: 0 0 40px rgba(255, 51, 51, 0.5);
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Focus states for accessibility */
.focus-ring:focus {
    outline: 2px solid #ff3333;
    outline-offset: 2px;
}

/* Card hover glow */
.card-glow {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-glow:hover {
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.2);
    border-color: rgba(255, 51, 51, 0.5);
}
