/*
    AganceOnline - Custom Styles
    This file contains global styles, utility classes, and specific component overrides
    that extend the Tailwind CSS framework configuration.
*/

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* Global Font Settings */
body {
    font-family: 'Inter', sans-serif;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* iOS Drag & Select Fix */
[draggable="true"] {
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: element;
    touch-action: none; /* Disable default touch actions for draggable elements */
}

/* Ensure smooth scrolling on iOS */
.overflow-y-auto {
    -webkit-overflow-scrolling: touch;
}

/* Text Effects */
.text-glow {
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Scrollbar Utilities */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #150d17;
}
::-webkit-scrollbar-thumb {
    background: #2d2430;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ee2122;
}

/* RTL Support Tweaks */
/* Ensure icons that indicate direction (like arrows) are handled correctly if not automatically flipped */
[dir="rtl"] .material-symbols-outlined {
    /*
       Note: Many material symbols are direction-neutral.
       Specific flipping logic can be added here if needed for icons like 'arrow_forward'.
    */
}

[dir="rtl"] {
    font-family: 'Inter', sans-serif; /* Fallback or specific Arabic font can be defined here */
}

/* Sold Out Overlay */
.sold-out-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    border: 4px solid #ee2122;
    color: #ee2122;
    padding: 0.5rem 1rem;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    z-index: 30;
    pointer-events: none;
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    white-space: nowrap;
}

/* Hero Carousel Transitions */
.hero-carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 1.5s ease-in-out;
}

.hero-carousel-img {
    opacity: 0;
    pointer-events: none;
}

.hero-carousel-img.active {
    opacity: 1;
    pointer-events: auto;
}
