/* YLIA Website Styles */
/* Custom variables based on the globals.css */
:root {
    --font-size: 16px;
    --background: #ffffff;
    --foreground: oklch(0.145 0 0);
    --card: #ffffff;
    --card-foreground: oklch(0.145 0 0);
    --primary: #030213;
    --primary-foreground: oklch(1 0 0);
    --secondary: oklch(0.95 0.0058 264.53);
    --secondary-foreground: #030213;
    --muted: #ececf0;
    --muted-foreground: #717182;
    --accent: #e9ebef;
    --accent-foreground: #030213;
    --border: rgba(0, 0, 0, 0.1);
    --radius: 0.625rem;
}

html {
    font-size: var(--font-size);
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--foreground);
}

/* Background utilities */
.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-primary { background-color: var(--primary); }
.bg-primary-foreground { background-color: var(--primary-foreground); }
.bg-muted { background-color: var(--muted); }
.bg-accent { background-color: var(--accent); }

/* Text utilities */
.text-foreground { color: var(--foreground); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-accent-foreground { color: var(--accent-foreground); }

/* Border utilities */
.border-border { border-color: var(--border); }
.rounded-lg { border-radius: var(--radius); }

/* Desktop navigation dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: var(--radius);
    padding: 1rem;
    top: 100%;
    left: 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile menu */
.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: block;
}

/* Card styles */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: calc(var(--radius) - 2px);
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 0.5rem 1rem;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    border: 1px solid var(--border);
    background-color: transparent;
    color: var(--foreground);
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

/* Icons */
.icon {
    width: 1rem;
    height: 1rem;
    display: inline-block;
}

.icon-lg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Backdrop blur */
.backdrop-blur {
    backdrop-filter: blur(8px);
}

/* Aspect ratio */
.aspect-video {
    aspect-ratio: 16 / 9;
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Form styles */
.form-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    background-color: var(--background);
    color: var(--foreground);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    background-color: var(--background);
    color: var(--foreground);
    resize: vertical;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Select styles */
.form-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    background-color: var(--background);
    color: var(--foreground);
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 0.65rem auto;
    padding-right: 2rem;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Loading animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .md\:hidden { display: none !important; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex !important; }
    .md\:block { display: block !important; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .md\:text-4xl { font-size: 2.25rem !important; }
    .md\:text-6xl { font-size: 3.75rem !important; }
    .md\:text-xl { font-size: 1.25rem !important; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .lg\:flex-row { flex-direction: row !important; }
    .lg\:w-1\/2 { width: 50% !important; }
    .lg\:order-1 { order: 1 !important; }
    .lg\:order-2 { order: 2 !important; }
}

/* Additional utility classes */
.container { max-width: 1200px; margin: 0 auto; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.min-h-screen { min-height: 100vh; }
.min-h-80vh { min-height: 80vh; }

/* Height utilities */
.h-16 { height: 4rem; }
.h-8 { height: 2rem; }
.w-8 { width: 2rem; }
.h-12 { height: 3rem; }
.w-12 { width: 3rem; }
.h-6 { height: 1.5rem; }
.w-6 { width: 1.5rem; }
.h-5 { height: 1.25rem; }
.w-5 { width: 1.25rem; }
.h-4 { height: 1rem; }
.w-4 { width: 1rem; }
.h-full { height: 100%; }
.w-full { width: 100%; }
.h-10 { height: 2.5rem; }

/* Width utilities */
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.w-max { width: max-content; }

/* Display utilities */
.flex { display: flex; }
.grid { display: grid; }

/* Flexbox utilities */
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* Spacing utilities */
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Gap utilities */
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Padding utilities */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-6 { padding-top: 1.5rem; }
.pl-4 { padding-left: 1rem; }

/* Margin utilities */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-auto { margin-top: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Text utilities */
.text-center { text-align: center; }
.text-white { color: white; }
.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; }

/* Font weight utilities */
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* Line height utilities */
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-snug { line-height: 1.375; }
.leading-none { line-height: 1; }

/* Border utilities */
.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.rounded-sm { border-radius: 0.125rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-full { border-radius: 9999px; }

/* Overflow utilities */
.overflow-hidden { overflow: hidden; }

/* Object fit utilities */
.object-cover { object-fit: cover; }

/* Position utilities */
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* Z-index utilities */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }

/* Cursor utilities */
.cursor-pointer { cursor: pointer; }

/* Transition utilities */
.transition-colors { 
    transition: color 0.15s ease-in-out, 
                background-color 0.15s ease-in-out, 
                border-color 0.15s ease-in-out; 
}

/* Hover utilities */
.hover\:bg-accent:hover { background-color: var(--accent); }
.hover\:text-accent-foreground:hover { color: var(--accent-foreground); }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:text-primary-foreground:hover { color: var(--primary-foreground); }

/* Focus utilities */
.focus\:bg-accent:focus { background-color: var(--accent); }
.focus\:text-accent-foreground:focus { color: var(--accent-foreground); }
.focus\:outline-none:focus { outline: none; }

/* User select utilities */
.select-none { user-select: none; }

/* Specific width utilities */
.w-1\.5 { width: 0.375rem; }
.h-1\.5 { height: 0.375rem; }

/* Background opacity utilities */
.bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-primary\/10 { background-color: rgba(3, 2, 19, 0.1); }
.bg-muted\/30 { background-color: rgba(236, 236, 240, 0.3); }
.bg-background\/95 { background-color: rgba(255, 255, 255, 0.95); }

/* Text opacity utilities */
.text-primary-foreground\/80 { color: rgba(255, 255, 255, 0.8); }
.text-primary-foreground\/60 { color: rgba(255, 255, 255, 0.6); }

/* Background opacity utilities */
.bg-primary-foreground\/20 { background-color: rgba(255, 255, 255, 0.2); }

/* Small screen utilities */
.sm\:flex { display: flex; }
.sm\:w-auto { width: auto; }
.sm\:hidden { display: none; }

@media (min-width: 640px) {
    .sm\:flex { display: flex !important; }
    .sm\:w-auto { width: auto !important; }
    .sm\:hidden { display: none !important; }
}
