/*
MONIQI Custom Styles
Enhanced version with comprehensive Tailwind CSS utilities and MONIQI branding
*/

/* ===== MONIQI BRAND COLORS ===== */
:root {
    --moniqi-orange: #FF6B35;
    --moniqi-teal: #2DD4BF;
    --moniqi-gray-light: #F8FAFC;
    --moniqi-gray-dark: #1F2937;
    --moniqi-text: #374151;
}

/* ===== TAILWIND CSS CUSTOM UTILITIES ===== */

/* MONIQI Brand Colors */
.bg-moniqi-orange { background-color: var(--moniqi-orange); }
.bg-moniqi-teal { background-color: var(--moniqi-teal); }
.text-moniqi-orange { color: var(--moniqi-orange); }
.text-moniqi-teal { color: var(--moniqi-teal); }
.border-moniqi-orange { border-color: var(--moniqi-orange); }
.border-moniqi-teal { border-color: var(--moniqi-teal); }

/* Hover states */
.hover\:bg-moniqi-orange:hover { background-color: #E55A2B; }
.hover\:bg-moniqi-teal:hover { background-color: #14B8A6; }
.hover\:text-moniqi-orange:hover { color: var(--moniqi-orange); }
.hover\:text-moniqi-teal:hover { color: var(--moniqi-teal); }

/* Focus states */
.focus\:ring-moniqi-orange:focus { 
    --tw-ring-color: var(--moniqi-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}
.focus\:ring-moniqi-teal:focus { 
    --tw-ring-color: var(--moniqi-teal);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
}

/* ===== TYPOGRAPHY ===== */

/* MONIQI Font Families */
.font-rubik { font-family: 'Rubik', sans-serif; }
.font-hind { font-family: 'Hind', sans-serif; }

/* Enhanced Typography Scale */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.text-8xl { font-size: 6rem; line-height: 1; }

/* Font Weights */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ===== LAYOUT & SPACING ===== */

/* Container */
.container { 
    width: 100%; 
    margin-left: auto; 
    margin-right: auto; 
    padding-left: 1rem; 
    padding-right: 1rem; 
}

@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }

/* Max Width Utilities */
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }

/* Margin & Padding */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }
.m-6 { margin: 1.5rem; }
.m-8 { margin: 2rem; }
.m-10 { margin: 2.5rem; }
.m-12 { margin: 3rem; }
.m-16 { margin: 4rem; }
.m-20 { margin: 5rem; }
.m-24 { margin: 6rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.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; }

.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

/* ===== FLEXBOX & GRID ===== */

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.inline-block { display: inline-block; }
.block { display: block; }
.hidden { display: none; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-1 { flex: 1 1 0%; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

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

/* ===== POSITIONING ===== */

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }

/* ===== SIZING ===== */

.w-full { width: 100%; }
.w-32 { width: 8rem; }
.w-8 { width: 2rem; }

.h-full { height: 100%; }
.h-screen { height: 100vh; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-2 { height: 0.5rem; }

/* ===== BACKGROUNDS ===== */

.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-500 { background-color: #6b7280; }
.bg-gray-600 { background-color: #4b5563; }
.bg-gray-700 { background-color: #374151; }
.bg-gray-800 { background-color: #1f2937; }

.bg-orange-500 { background-color: #f97316; }
.bg-orange-600 { background-color: #ea580c; }
.bg-red-500 { background-color: #ef4444; }
.bg-red-600 { background-color: #dc2626; }
.bg-teal-50 { background-color: #f0fdfa; }
.bg-teal-500 { background-color: #14b8a6; }
.bg-teal-600 { background-color: #0d9488; }

.bg-yellow-400 { background-color: #facc15; }
.bg-blue-400 { background-color: #60a5fa; }
.bg-blue-600 { background-color: #2563eb; }
.bg-purple-500 { background-color: #a855f7; }

/* Background Opacity */
.bg-opacity-10 { background-color: rgba(0, 0, 0, 0.1); }
.bg-opacity-20 { background-color: rgba(0, 0, 0, 0.2); }

/* Gradients */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }

.from-teal-500 { --tw-gradient-from: #14b8a6; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(20, 184, 166, 0)); }
.to-orange-500 { --tw-gradient-to: #f97316; }

/* ===== TEXT COLORS ===== */

.text-white { color: #ffffff; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }

.text-orange-500 { color: #f97316; }
.text-orange-600 { color: #ea580c; }
.text-teal-500 { color: #14b8a6; }
.text-teal-600 { color: #0d9488; }

/* ===== BORDERS ===== */

.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-gray-300 { border-color: #d1d5db; }
.border-teal-600 { border-color: #0d9488; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* ===== SHADOWS ===== */

.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* ===== TRANSITIONS & ANIMATIONS ===== */

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }

/* ===== INTERACTIVE ELEMENTS ===== */

.cursor-pointer { cursor: pointer; }

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5); }
.focus\:border-transparent:focus { border-color: transparent; }

.resize-none { resize: none; }

/* ===== OVERFLOW ===== */

.overflow-hidden { overflow: hidden; }

/* ===== OBJECT FIT ===== */

.object-cover { object-fit: cover; }

/* ===== RESPONSIVE UTILITIES ===== */

@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
    .md\:w-1\/2 { width: 50%; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .md\:text-8xl { font-size: 6rem; line-height: 1; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ===== MONIQI SPECIFIC COMPONENTS ===== */

/* MONIQI Logo Animation */
.moniqi-logo {
    font-family: 'Rubik', sans-serif;
    letter-spacing: 0.1em;
}

.moniqi-logo .rotate-on-hover {
    display: inline-block;
    transition: transform 0.5s ease;
}

.moniqi-logo .rotate-on-hover:hover {
    transform: rotate(180deg);
}

/* Resonance Tracker Styles */
.weather-icon {
    transition: all 0.3s ease;
    cursor: pointer;
}

.weather-icon:hover {
    transform: scale(1.1);
}

.weather-icon.selected {
    transform: scale(1.2);
    filter: brightness(1.3) drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Aspect Ratio Utilities */
.aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.aspect-w-16 > * {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* ===== MONIQI THEME OVERRIDES ===== */

/* Ensure MONIQI styles take precedence over Astra */
body.moniqi-theme {
    font-family: 'Hind', sans-serif;
    color: var(--moniqi-text);
}

.moniqi-theme h1,
.moniqi-theme h2,
.moniqi-theme h3,
.moniqi-theme h4,
.moniqi-theme h5,
.moniqi-theme h6 {
    font-family: 'Rubik', sans-serif;
}

/* Button Styles */
.moniqi-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.moniqi-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.moniqi-btn-primary {
    background-color: var(--moniqi-orange);
    color: white;
}

.moniqi-btn-primary:hover {
    background-color: #E55A2B;
}

.moniqi-btn-secondary {
    background-color: var(--moniqi-teal);
    color: white;
}

.moniqi-btn-secondary:hover {
    background-color: #14B8A6;
}

/* ===== UTILITY CLASSES ===== */

.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.leading-relaxed { line-height: 1.625; }
.tracking-wide { letter-spacing: 0.025em; }

.opacity-90 { opacity: 0.9; }

/* ===== PRINT STYLES ===== */

@media print {
    .no-print { display: none !important; }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .page-break {
        page-break-before: always;
    }
}