/*
Theme Name: HNRooms
Theme URI: https://hnrooms.com
Author: CODES Dev Team
Author URI: https://codeshn.com
Description: Modern WordPress theme for HNRooms - Airbnb-style room rental app for Honduras. Features: 8 complete sections, App Preview gallery with 5 screenshots, 100% responsive design, dark/light mode, professional SVG download buttons, Elementor compatible, one-click demo import. Converted from Vercel v0.
Version: 4.3.0
Requires at least: 6.0
Tested up to: 6.9.1
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: hnrooms
Tags: one-column, custom-logo, custom-menu, featured-images, theme-options, translation-ready, dark-mode, elementor, responsive-layout, mobile-friendly
*/

/*
===================================
CSS VARIABLES - Design System
===================================
Extracted from Vercel v0 design
*/

:root {
  /* Primary Colors */
  --hnr-primary: #004c36;
  --hnr-primary-light: #00695c;
  --hnr-primary-dark: #003428;
  --hnr-primary-foreground: #ffffff;

  /* Background Colors - Dark Mode (Default) */
  --hnr-background: #070707;
  --hnr-foreground: #f5f5f5;
  --hnr-card: #1a1a1a;
  --hnr-card-foreground: #f5f5f5;
  --hnr-surface: #141414;
  --hnr-surface-foreground: #f5f5f5;

  /* Secondary Colors */
  --hnr-secondary: #1e1e1e;
  --hnr-secondary-foreground: #f5f5f5;
  --hnr-muted: #1e1e1e;
  --hnr-muted-foreground: #888888;
  --hnr-accent: #00a86b;
  --hnr-accent-foreground: #ffffff;

  /* Border & Input */
  --hnr-border: #2a2a2a;
  --hnr-input: #2a2a2a;
  --hnr-ring: #00a86b;

  /* Typography */
  --hnr-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --hnr-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Border Radius */
  --hnr-radius: 0.75rem;
  --hnr-radius-sm: calc(var(--hnr-radius) - 4px);
  --hnr-radius-md: calc(var(--hnr-radius) - 2px);
  --hnr-radius-lg: var(--hnr-radius);
  --hnr-radius-xl: calc(var(--hnr-radius) + 4px);

  /* Spacing */
  --hnr-spacing-xs: 0.5rem;
  --hnr-spacing-sm: 1rem;
  --hnr-spacing-md: 1.5rem;
  --hnr-spacing-lg: 2rem;
  --hnr-spacing-xl: 3rem;

  /* Shadows */
  --hnr-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --hnr-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --hnr-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --hnr-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* Light Mode Variables */
body.light-mode {
  --hnr-background: #ffffff;
  --hnr-foreground: #0f0f0f;
  --hnr-card: #f5f5f5;
  --hnr-card-foreground: #0f0f0f;
  --hnr-surface: #fafafa;
  --hnr-surface-foreground: #0f0f0f;

  --hnr-secondary: #e5e5e5;
  --hnr-secondary-foreground: #0f0f0f;
  --hnr-muted: #f5f5f5;
  --hnr-muted-foreground: #666666;

  --hnr-border: #e5e5e5;
  --hnr-input: #e5e5e5;
}

/*
===================================
GLOBAL STYLES
===================================
*/

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--hnr-font-body);
  background-color: var(--hnr-background);
  color: var(--hnr-foreground);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--hnr-font-sans);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

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

/* Estilos globales para imágenes - EXCLUIR Elementor para permitir control total desde el editor */
img:not(.elementor-widget-image img):not(.elementor-widget-gallery img) {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Permitir que Elementor controle completamente sus imágenes */
.elementor-widget-image img,
.elementor-widget-gallery img {
  max-width: none; /* Resetear restricción global */
  height: auto;
  display: block;
}

/*
===================================
WORDPRESS CORE STYLES
===================================
*/

.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

a img.alignnone {
  margin: 5px 20px 20px 0;
}

a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  background: var(--hnr-card);
  border: 1px solid var(--hnr-border);
  max-width: 96%;
  padding: 5px 3px 10px;
  text-align: center;
}

.wp-caption.alignnone {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}

.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}

.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.fade-in-up {
  animation: fadeInUp 0.7s ease-in-out;
}

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

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

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

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(-2deg);
  }
  50% {
    transform: translateY(-20px) rotate(0deg);
  }
}

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

@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

.animate-glow-pulse {
  animation: glow-pulse 3s ease-in-out infinite;
}

/*
===================================
RESPONSIVE BREAKPOINTS
===================================
*/

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