/*
Theme Name: Lumière Gallery
Theme URI: https://example.com/lumiere-gallery
Author: Your Name
Author URI: https://example.com
Description: A modern, elegant WordPress theme for art galleries. Converted from React/Vite application. Features a dark, gallery-like aesthetic with content-first design philosophy.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lumiere-gallery
Tags: art, gallery, portfolio, contemporary, dark-theme, custom-post-types

Lumière Gallery WordPress Theme, Copyright 2024
This theme is licensed under the GPL.

This theme uses Tailwind CSS and modern web technologies.
*/

/* 
  Gallery Design System
  Mood: "The art speaks, the interface whispers"
  Elegant, gallery-like, content-first
*/

/* Base styles will be loaded from compiled CSS */
/* This file serves as the theme header for WordPress */

:root {
  /* Gallery Dark Theme - Default */
  --background: hsl(220, 14%, 7%);
  --foreground: hsl(0, 0%, 95%);
  
  --surface: hsl(220, 16%, 12%);
  --surface-foreground: hsl(0, 0%, 95%);
  
  --card: hsl(220, 16%, 12%);
  --card-foreground: hsl(0, 0%, 95%);

  --popover: hsl(220, 16%, 12%);
  --popover-foreground: hsl(0, 0%, 95%);

  --primary: hsl(39, 47%, 63%);
  --primary-foreground: hsl(220, 14%, 7%);

  --secondary: hsl(220, 16%, 16%);
  --secondary-foreground: hsl(0, 0%, 95%);

  --muted: hsl(220, 16%, 16%);
  --muted-foreground: hsl(220, 8%, 65%);

  --accent: hsl(200, 52%, 60%);
  --accent-foreground: hsl(220, 14%, 7%);

  --destructive: hsl(0, 62%, 50%);
  --destructive-foreground: hsl(0, 0%, 95%);

  --border: hsl(220, 18%, 18%);
  --input: hsl(220, 18%, 18%);
  --ring: hsl(39, 47%, 63%);

  --radius: 0.5rem;

  /* Custom Gallery Tokens */
  --divider: hsl(220, 18%, 20%);
  --overlay: hsla(220, 14%, 7%, 0.85);
  --header-bg: hsla(220, 14%, 7%, 0.8);
  
  /* Gradients */
  --gradient-hero: linear-gradient(180deg, transparent 0%, hsla(220, 14%, 7%, 0.4) 50%, hsla(220, 14%, 7%, 0.95) 100%);
  --gradient-card: linear-gradient(180deg, transparent 0%, hsla(220, 14%, 7%, 0.9) 100%);
  
  /* Shadows */
  --shadow-card: 0 4px 24px hsla(220, 14%, 4%, 0.4);
  --shadow-elevated: 0 8px 32px hsla(220, 14%, 4%, 0.5);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin: 0 0 1rem 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 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; padding-left: 2rem; padding-right: 2rem; }
}

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

/* Utility Classes */
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-24 { margin-top: 6rem; }

.text-center { text-align: center; }
.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; }

.font-serif { font-family: 'Playfair Display', Georgia, serif; }
.font-sans { font-family: 'Inter', system-ui, sans-serif; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }

.bg-background { background-color: var(--background); }
.bg-surface { background-color: var(--surface); }
.bg-primary { background-color: var(--primary); }
.bg-primary-foreground { background-color: var(--primary-foreground); }

.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-border { border-color: var(--border); }

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

.transition-colors { transition-property: color, background-color, border-color; transition-duration: var(--transition-base); }
.transition-all { transition-property: all; transition-duration: var(--transition-base); }
.duration-250 { transition-duration: 250ms; }

.hover\:text-primary:hover { color: var(--primary); }
.hover\:text-foreground:hover { color: var(--foreground); }
.hover\:bg-primary\/90:hover { background-color: hsla(39, 47%, 63%, 0.9); }

/* Grid */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
  .lg\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .lg\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .lg\:text-4xl { font-size: 2.25rem; }
  .lg\:text-5xl { font-size: 3rem; }
}

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.left-0 { left: 0; }
.z-50 { z-index: 50; }

/* Sizing */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-\[4\/5\] { aspect-ratio: 4 / 5; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

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

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

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

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

.animate-fade-in-up {
  animation: slideUp 0.5s ease-out forwards;
}

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

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: hsla(220, 8%, 65%, 0.3);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsla(220, 8%, 65%, 0.5);
}

/* Hover Effects */
.hover-zoom {
  transition: transform var(--transition-base);
}

.hover-zoom:hover {
  transform: scale(1.04);
}

/* Hidden/Visible */
.hidden { display: none; }

@media (min-width: 1024px) {
  .lg\:hidden { display: none; }
  .lg\:flex { display: flex; }
}

/* Backdrop Blur */
.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }

.hover\:opacity-100:hover { opacity: 1; }

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

/* Space Utilities */
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Leading */
.leading-relaxed { line-height: 1.625; }
.leading-tight { line-height: 1.25; }

/* Tracking */
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

/* Uppercase */
.uppercase { text-transform: uppercase; }

/* Max Width */
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-md { max-width: 28rem; }

/* Snapshot */
.snap-x { scroll-snap-type: x mandatory; }
.snap-start { scroll-snap-align: start; }

/* Flex Shrink */
.flex-shrink-0 { flex-shrink: 0; }

/* Responsive Padding */
@media (min-width: 640px) {
  .sm\:inline { display: inline; }
  .sm\:flex-row { flex-direction: row; }
}

/* Button Styles */
button,
.button,
input[type="submit"],
input[type="button"] {
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all var(--transition-base);
}

/* Focus Styles */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Disabled State */
button:disabled,
input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
