@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Noto+Sans+Arabic:wght@300;400;500;600;700&family=Hind:wght@400;500;700&display=swap');

@font-face {
    font-family: 'DIN Next LT W23';
    src: local('Qatar Regular'), local('Qatar-Regular'),
         url('../fonts/qatar/Web/Qatar-Regular.woff2') format('woff2'),
         url('../fonts/qatar/Web/Qatar-Regular.woff') format('woff'),
         url('../fonts/qatar/Web/Qatar-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Next LT W23';
    src: local('Qatar Medium'), local('Qatar-Medium'),
         url('../fonts/qatar/Web/Qatar-Medium.woff2') format('woff2'),
         url('../fonts/qatar/Web/Qatar-Medium.woff') format('woff'),
         url('../fonts/qatar/Web/Qatar-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Next LT W23';
    src: local('Qatar Bold'), local('Qatar-Bold'),
         url('../fonts/qatar/Web/Qatar-Bold.woff2') format('woff2'),
         url('../fonts/qatar/Web/Qatar-Bold.woff') format('woff'),
         url('../fonts/qatar/Web/Qatar-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --blue-parrot: #4586c2;
    --root-cocoa: #a36f3e;
    --white: #ffffff;
    --font-primary: 'DIN Next LT W23', 'Outfit', 'Noto Sans Arabic', sans-serif;
    --font-arabic: 'DIN Next LT W23', 'Noto Sans Arabic', sans-serif;
    --font-hindi: 'Hind', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}


/* Colors */
.bg-root-cocoa { background-color: var(--root-cocoa); }
.bg-root-cocoa:hover { background-color: #8c5d33; } /* Sightly darker brown */
.bg-blue-parrot { background-color: var(--blue-parrot); }
.bg-blue-parrot:hover { background-color: #3a71a5; } /* Slightly darker blue */
.bg-white { background-color: var(--white); }
.bg-transparent { background-color: transparent; }

.hover\:bg-blue-parrot\/10:hover { background-color: rgba(69, 134, 194, 0.1); }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }

body {
    font-family: var(--font-primary);
    background-color: var(--white);
    color: var(--blue-parrot);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Tailwind Utilities Recreation */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-grow { flex-grow: 1; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

.min-h-screen { min-height: 100vh; }
.h-screen { height: 100vh; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.w-\[90px\] { width: 90px; }
.h-\[120px\] { height: 120px; }
.w-\[110px\] { width: 110px; }
.h-\[140px\] { height: 140px; }
.w-\[200px\] { width: 200px; }
.h-\[267px\] { height: 267px; }
.w-\[250px\] { width: 250px; }
.h-\[333px\] { height: 333px; }
.w-\[450px\] { width: 450px; }
.h-\[600px\] { height: 600px; }
.w-\[525px\] { width: 525px; }
.h-\[700px\] { height: 700px; }
.w-fit { width: fit-content; }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.-z-10 { z-index: -10; }

.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-y-auto { overflow-y: auto; }

/* Spacing */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.gap-20 { gap: 5rem; }
.gap-24 { gap: 6rem; }
.gap-32 { gap: 8rem; }

.gap-x-2 { column-gap: 0.5rem; }
.gap-x-4 { column-gap: 1rem; }
.gap-x-8 { column-gap: 2rem; }
.gap-x-12 { column-gap: 3rem; }

.gap-y-4 { row-gap: 1rem; }
.gap-y-6 { row-gap: 1.5rem; }
.gap-y-8 { row-gap: 2rem; }
.gap-y-10 { row-gap: 2.5rem; }
.gap-y-12 { row-gap: 3rem; }
.gap-y-16 { row-gap: 4rem; }
.gap-y-20 { row-gap: 5rem; }

.p-0 { padding: 0; }
.p-4 { padding: 1rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pt-12 { padding-top: 3rem; }
.pt-16 { padding-top: 4rem; }
.pt-20 { padding-top: 5rem; }
.pt-24 { padding-top: 6rem; }
.pt-32 { padding-top: 8rem; }
.pb-8 { padding-bottom: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

.m-2 { margin: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-16 { margin-top: 4rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }

/* Typography */
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-english { font-family: var(--font-primary); }
.font-arabic { font-family: var(--font-arabic); }
.font-hindi { font-family: var(--font-hindi); }
.text-blue-parrot { color: var(--blue-parrot); }
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.group:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.text-white { color: var(--white); }
.text-root-cocoa { color: var(--root-cocoa); }
.text-black { color: #000000; }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-7xl { font-size: 4.5rem; }

/* Borders & Shadows */
.border-3 { border-width: 3px; }
.border-blue-parrot { border-color: var(--blue-parrot); }
.border-root-cocoa { border-color: var(--root-cocoa); }
.rounded-sm { border-radius: 0.125rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }

/* Animation */
@keyframes pulse-btn {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.animate-pulse-btn { animation: pulse-btn 2s infinite; }

/* Grid */
.grid { display: grid; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Transitions */
.transition-all { transition-property: all; }
.transition-colors { transition-property: color, background-color, border-color; }
.transition-transform { transition-property: transform; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }

/* Components */
.cursor-pointer { cursor: pointer; }
.object-cover { object-fit: cover; }

/* Carousel Styles */
.carousel-container {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 1rem 0;
}
.carousel-content {
    display: inline-flex;
    gap: 1.5rem;
    padding: 0 1rem;
}
.carousel-item {
    flex: 0 0 auto;
    width: 120px;
    transition: transform 0.3s ease;
}
.carousel-item:hover { transform: translateY(-5px); }
.carousel-item p { margin-top: 0.75rem; }
.carousel-img-wrapper {
    width: 120px;
    height: 160px;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* AI Pulse Button */
.ai-pulse-button {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 20;
    border: none;
    cursor: pointer;
}
.ai-icon { width: 1.5rem; height: 1.5rem; color: var(--root-cocoa); }
.pulse-ring {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--white);
    animation: pulse-ring 2s infinite;
    z-index: 10;
}
@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1.5); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.video-modal.active { display: flex; opacity: 1; }
.modal-content {
    position: relative;
    width: 80%;
    max-width: 700px;
    background-color: #000;
    border-radius: 1rem;
    overflow: hidden;
}
.modal-video { width: 100%; height: auto; display: block; }
.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}
.no-scroll { overflow: hidden; }

/* Custom Scrollbar Removal */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Responsive adjustments */
@media (min-width: 640px) {
    .sm\:text-2xl { font-size: 1.5rem; }
    .sm\:text-4xl { font-size: 2.25rem; }
    .sm\:text-5xl { font-size: 3rem; }
    .sm\:gap-8 { gap: 2rem; }
    .sm\:gap-10 { gap: 2.5rem; }
    .sm\:gap-y-16 { row-gap: 4rem; }
    .sm\:gap-y-24 { row-gap: 6rem; }
}

@media (min-width: 768px) {
    .md\:text-2xl { font-size: 1.5rem; }
    .md\:text-3xl { font-size: 1.875rem; }
    .md\:text-6xl { font-size: 3.75rem; }
    .md\:gap-12 { gap: 3rem; }
    .md\:gap-y-24 { row-gap: 6rem; }
    .md\:gap-y-32 { row-gap: 8rem; }
    .group:hover .dropdown-menu { opacity: 1; visibility: visible; }
}

@media (min-width: 1024px) {
    .lg\:text-2xl { font-size: 1.5rem; }
    .lg\:text-5xl { font-size: 3rem; }
    .lg\:text-7xl { font-size: 4.5rem; }
    .lg\:gap-y-24 { row-gap: 6rem; }
    .lg\:gap-y-32 { row-gap: 8rem; }
}

/* Game Cards */
.game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.game-card:hover { transform: scale(1.03); }

.game-card-image-container {
    position: relative;
    width: 90px;
    height: 120px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .game-card-image-container { width: 110px; height: 140px; }
}
@media (min-width: 768px) {
    .game-card { width: 16rem; max-width: 20rem; }
    .game-card-image-container { width: 16rem; height: 20rem; }
}
@media (min-width: 1024px) {
    .game-card { width: 20rem; max-width: 24rem; }
    .game-card-image-container { width: 20rem; height: 24rem; }
}

.game-card-img-wrapper {
    position: absolute;
    top: 5px;
    right: 5px;
    bottom: 5px;
    left: 5px;
    overflow: hidden;
    border-radius: 0.5rem;
}

.game-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.corner-border {
    position: absolute;
    width: 3rem;
    height: 3rem;
    border-color: var(--root-cocoa);
    pointer-events: none;
}

.top-left { top: -4px; left: -4px; border-top: 2px solid var(--root-cocoa); border-left: 2px solid var(--root-cocoa); }
.top-right { top: -4px; right: -4px; border-top: 2px solid var(--root-cocoa); border-right: 2px solid var(--root-cocoa); }
.bottom-left { bottom: -4px; left: -4px; border-bottom: 2px solid var(--root-cocoa); border-left: 2px solid var(--root-cocoa); }
.bottom-right { bottom: -4px; right: -4px; border-bottom: 2px solid var(--root-cocoa); border-right: 2px solid var(--root-cocoa); }

.game-card-title {
    margin-top: 0.5rem;
    font-weight: 500;
    color: var(--root-cocoa);
    text-align: center;
    font-size: 11px;
}

@media (min-width: 640px) { .game-card-title { font-size: 0.875rem; } }
@media (min-width: 768px) { .game-card-title { font-size: 1.125rem; } }
@media (min-width: 1024px) { .game-card-title { font-size: 1.5rem; } }
