/*
Theme Name: Sara Sax Arte
Theme URI: https://sarasax.art
Author: TI-Creativos
Author URI: https://ti-creativos.com
Description: Tema personalizado para el portafolio de arte de Sara Sax. Incluye galeria, tienda WooCommerce, comisiones, blog y libro de visitas.
Version: 2.2.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sarasax

Tags: portfolio, art, woocommerce, custom-colors, custom-logo, featured-images
*/

/* ============================================
   BASE STYLES
   ============================================ */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide scrollbar but keep functionality */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

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

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

@keyframes slideDown {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

@keyframes modalIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes promoIn {
  from { transform: scale(0.8) rotate(-5deg); opacity: 0; }
  to { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}

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

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

.animate-slideUp { animation: slideUp 0.8s ease-out forwards; }
.animate-slideDown { animation: slideDown 0.8s ease-out forwards; }
.animate-fadeIn { animation: fadeIn 0.8s ease-out forwards; }
.animate-modalIn { animation: modalIn 0.4s ease-out forwards; }
.animate-promoIn { animation: promoIn 0.5s ease-out forwards; }
.animate-sparkle { animation: sparkle 2s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-marquee { animation: marquee 20s linear infinite; }
.animate-bounce-gentle { animation: bounce-gentle 2s ease-in-out infinite; }

.animation-delay-200 { animation-delay: 200ms; }
.animation-delay-400 { animation-delay: 400ms; }
.animation-delay-600 { animation-delay: 600ms; }

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

.bg-gradient-radial {
  background: radial-gradient(circle, var(--tw-gradient-stops));
}

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

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

/* ============================================
   FOCUS STYLES FOR ACCESSIBILITY
   ============================================ */

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 2px;
}

/* ============================================
   MODAL OVERLAY
   ============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.modal-content {
  position: relative;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}

body.modal-open {
  overflow: hidden;
}

/* ============================================
   WOOCOMMERCE OVERRIDES
   ============================================ */

.woocommerce .products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.woocommerce .star-rating {
  color: #171717;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background-color: #171717 !important;
  color: white !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  padding: 0.75rem 2rem !important;
  transition: all 0.3s !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background-color: #404040 !important;
}

/* ============================================
   GUESTBOOK CANVAS
   ============================================ */

.guestbook-canvas {
  touch-action: none;
  cursor: crosshair;
}

/* ============================================
   MUSEUM FRAME 3D
   ============================================ */

.museum-frame-container {
  perspective: 2000px;
}

.museum-frame {
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

/* ============================================
   FULLSCREEN MENU
   ============================================ */

.fullscreen-menu {
  transition: all 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}

.fullscreen-menu.menu-closed {
  pointer-events: none;
}

.fullscreen-menu.menu-closed .menu-panels {
  transform: translateY(-100%);
}

.fullscreen-menu.menu-open .menu-panels {
  transform: translateY(0);
}

/* ============================================
   NOTIFICATION POPUP
   ============================================ */

.blog-notification {
  animation: slideUp 0.5s ease-out forwards;
}

/* ============================================
   PROMO POPUP
   ============================================ */

.promo-popup-content {
  animation: promoIn 0.5s ease-out forwards;
}

/* ============================================
   SCROLL REVEAL (used with animations.js)
   ============================================ */

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

@media print {
  nav, footer, .modal-overlay, .cart-indicator, .blog-notification, .promo-popup {
    display: none !important;
  }
}
