/*
Theme Name: Luxury Minerals
Theme URI: https://luxuryminerals.com
Author: Luxury Minerals Co.
Author URI: https://luxuryminerals.com
Description: A premium one-page WordPress theme for wholesale minerals, crystals, and gemstones business. Features elegant design with gold accents and dark theme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: luxury-minerals
Tags: one-column, custom-colors, custom-menu, featured-images, full-width-template, sticky-post, theme-options, threaded-comments

Luxury Minerals WordPress Theme, Copyright 2025
Luxury Minerals is distributed under the terms of the GNU GPL
*/

:root {
  --background: 0 0% 7%;
  --foreground: 0 0% 98%;
  --card: 0 0% 12%;
  --card-foreground: 0 0% 98%;
  --popover: 0 0% 12%;
  --popover-foreground: 0 0% 98%;
  --primary: 45 85% 55%;
  --primary-foreground: 0 0% 10%;
  --secondary: 0 0% 20%;
  --secondary-foreground: 0 0% 98%;
  --muted: 0 0% 25%;
  --muted-foreground: 0 0% 65%;
  --accent: 45 85% 55%;
  --accent-foreground: 0 0% 10%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 0 0% 20%;
  --input: 0 0% 20%;
  --ring: 45 85% 55%;
  --gold: 45 85% 55%;
  --gold-muted: 45 60% 45%;
  --charcoal: 0 0% 15%;
  --charcoal-light: 0 0% 20%;
  --radius: 1rem;
}

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

/* Font Loading States - Start with fallback fonts */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  overflow-x: hidden;
  transition: font-family 0.1s ease;
}

/* Apply custom fonts when loaded */
body.fonts-loaded {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 700;
  line-height: 1.2;
  transition: font-family 0.1s ease;
}

body.fonts-loaded h1,
body.fonts-loaded h2,
body.fonts-loaded h3,
body.fonts-loaded h4,
body.fonts-loaded h5,
body.fonts-loaded h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* ==================================
   NAVIGATION & HEADER STYLES
   ================================== */

.site-header {
  transition: background 0.3s ease;
}

.site-header .primary-menu,
.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2rem;
}

.mobile-menu-list {
  flex-direction: column;
  gap: 1.5rem;
}

.site-header .primary-menu li a,
.mobile-menu-list li a {
  color: hsl(0, 0%, 98%);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s, transform 0.2s;
  display: block;
}

.site-header .primary-menu li a:hover,
.mobile-menu-list li a:hover,
.site-header .primary-menu li.current-menu-item a {
  color: hsl(43, 74%, 52%);
  transform: translateY(-2px);
}

/* ==================================
   CARD & GRID LAYOUTS
   ================================== */

.product-card,
.blog-card {
  background: hsl(0, 0%, 12%);
  border: 1px solid hsl(0, 0%, 20%);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, hsl(43, 74%, 52%, 0) 0%, hsl(43, 74%, 52%, 0.3) 50%, hsl(43, 74%, 52%, 0) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.product-card:hover,
.blog-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.3), 0 0 60px rgba(212, 175, 55, 0.1);
  border-color: hsl(43, 74%, 52%);
}

.product-card:hover::before {
  opacity: 1;
}

.card-image {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, hsl(0, 0%, 10%) 0%, hsl(0, 0%, 8%) 100%);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .card-image img,
.blog-card:hover .card-image img {
  transform: scale(1.15) rotate(2deg);
}

.card-content {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Category Card Styles */
.category-card {
  background: hsl(0, 0%, 12%);
  border: 1px solid hsl(0, 0%, 20%);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-12px);
  border-color: hsl(43, 74%, 52%);
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.3);
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ==================================
   BUTTONS & CTAs
   ================================== */

.btn,
.cta-button,
button[type="submit"] {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: hsl(43, 74%, 52%);
  color: hsl(0, 0%, 10%);
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 1rem;
}

.btn:hover,
.cta-button:hover,
button[type="submit"]:hover {
  background: hsl(43, 74%, 62%);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid hsl(43, 74%, 52%);
  color: hsl(43, 74%, 52%);
}

.btn-outline:hover {
  background: hsl(43, 74%, 52%);
  color: hsl(0, 0%, 10%);
}

/* ==================================
   FORMS & INPUTS
   ================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: hsl(0, 0%, 12%);
  border: 1px solid hsl(0, 0%, 20%);
  border-radius: 0.5rem;
  color: hsl(0, 0%, 98%);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: hsl(43, 74%, 52%);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: hsl(0, 0%, 98%);
  font-weight: 500;
}

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

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.section-subtitle {
  font-size: 1.25rem;
  color: hsl(0, 0%, 65%);
  max-width: 48rem;
  margin: 0 auto 3rem;
}

.gold-text {
  color: hsl(43, 74%, 52%);
}

.muted-text {
  color: hsl(0, 0%, 65%);
}

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

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

.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.py-8 { padding-top: 4rem; padding-bottom: 4rem; }

/* Spacing */
.section-padding {
  padding: 6rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3rem 0;
  }
}

/* Gold Gradient */
.gradient-gold {
  background: linear-gradient(135deg, hsl(43, 74%, 52%), hsl(43, 74%, 62%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================================
   ANIMATIONS
   ================================== */

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

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

/* ==================================
   FOOTER STYLES
   ================================== */

.site-footer {
  background: hsl(0, 0%, 12%);
  border-top: 1px solid hsl(0, 0%, 20%);
}

/* Footer centered layout - matches React version */
.site-footer a {
  color: hsl(0, 0%, 65%);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: hsl(43, 74%, 52%);
}

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

@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
}

/* ==================================
   ADMIN BAR OFFSET
   ================================== */

.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}
