/* RecetaFlex Common Styles */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Playfair+Display:wght@700;800&family=Salsa&display=swap');

:root {
  --primary-orange: #FF8542;
  --primary-orange-hover: #FF6F28;
  --primary-orange-light: #FFB88C;
  --accent-gold: #FFD700;
  --text-dark: #2C2C2C;
  --text-medium: #666666;
  --text-light: #999999;
  --background-light: #FAFAFA;
  --background-cream: #FFF9F5;
  --white: #FFFFFF;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(255, 133, 66, 0.1);
  --shadow-md: 0 8px 24px rgba(255, 133, 66, 0.15);
  --shadow-lg: 0 16px 48px rgba(255, 133, 66, 0.2);
  --shadow-glow: 0 0 40px rgba(255, 133, 66, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #FFF9F5 0%, #FFE8DC 100%);
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 133, 66, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Header & Branding */
.header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  backdrop-filter: blur(20px);
  padding: 2rem 2rem;
  text-align: center;
  box-shadow: 0 4px 30px rgba(255, 133, 66, 0.08);
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 133, 66, 0.1);
  animation: slideDown 0.6s ease-out;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: 'Salsa', cursive;
  font-size: 2rem;
  font-weight: 400;
  background: linear-gradient(135deg, #FF8542 0%, #FF6F28 50%, #D65A1E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0px;
}

.brand:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(255, 133, 66, 0.3));
  transition: all 0.3s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 20px rgba(255, 133, 66, 0.4));
}

.brand-icon {
  font-size: 1.8rem;
}

/* Navigation */
nav {
  margin-top: 1.5rem;
  padding: 0.75rem 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  padding: 0.5rem 1.25rem;
  text-decoration: none;
  color: var(--text-medium);
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 133, 66, 0.1), transparent);
  transition: left 0.5s ease;
}

nav a:hover::before {
  left: 100%;
}

nav a:hover {
  color: var(--primary-orange);
  background-color: rgba(255, 133, 66, 0.08);
  transform: translateY(-1px);
}

/* Main Content Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.4s ease-out 0.1s both;
}

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

/* Content Cards */
.card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  padding: 3.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid rgba(255, 133, 66, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 133, 66, 0.02) 0%, transparent 70%);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(255, 133, 66, 0.2);
}

/* Typography */
h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 1rem 0;
  line-height: 1.2;
  letter-spacing: -1px;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #FF8542 0%, #D65A1E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 1.5rem 0;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-orange), transparent);
  border-radius: 2px;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.75rem 0;
  position: relative;
  display: inline-block;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.5rem 0;
}

p {
  font-size: 1.05rem;
  color: var(--text-medium);
  margin: 0 0 1rem 0;
  line-height: 1.8;
}

.text-small {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Buttons */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, #FF8542 0%, #FF6F28 100%);
  color: var(--white);
  padding: 1rem 3rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(255, 133, 66, 0.3);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  background: linear-gradient(135deg, #FF6F28 0%, #D65A1E 100%);
  box-shadow: 0 8px 30px rgba(255, 133, 66, 0.5);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0px);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Links */
a.link {
  color: var(--primary-orange);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

a.link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-orange), var(--accent-gold));
  transition: width 0.3s ease;
}

a.link:hover::after {
  width: 100%;
}

a.link:hover {
  color: var(--primary-orange-hover);
}

/* Email Display */
.email-container {
  font-size: 1.3rem;
  margin: 2.5rem 0;
  font-weight: 600;
  color: var(--text-dark);
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 133, 66, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
  border-radius: var(--border-radius);
  border: 2px dashed rgba(255, 133, 66, 0.2);
  transition: all 0.3s ease;
}

.email-container:hover {
  background: linear-gradient(135deg, rgba(255, 133, 66, 0.08) 0%, rgba(255, 215, 0, 0.08) 100%);
  border-color: rgba(255, 133, 66, 0.4);
  transform: scale(1.01);
}

.email-container a {
  color: var(--primary-orange);
  text-decoration: none;
  transition: color 0.2s ease;
}

.email-container a:hover {
  color: var(--primary-orange-hover);
}

/* Icon Styles */
.icon {
  display: inline-block;
  margin: 0 0.25rem;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.my-2 { margin-top: 2rem; margin-bottom: 2rem; }

/* Welcome Page Specific */
.welcome-image {
  max-width: 300px;
  margin: 0 auto 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.welcome-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .brand-logo,
  .card:hover,
  .btn:hover,
  .email-container:hover {
    transform: none !important;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  body::before {
    opacity: 0.5;
  }
  
  .header {
    padding: 1.5rem 1rem;
  }
  
  .container {
    padding: 2rem 1rem;
    animation-duration: 0.3s;
  }
  
  .card {
    padding: 2.5rem 2rem;
    margin: 1.5rem 0;
  }
  
  .card:hover {
    transform: translateY(-2px);
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  nav {
    gap: 0.5rem;
  }
  
  nav a {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
  
  nav a:hover {
    transform: none;
  }
  
  .btn {
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
  }
  
  .btn:hover {
    transform: translateY(-1px);
  }
  
  .brand-logo {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 1.25rem 1rem;
  }
  
  .brand {
    font-size: 1.65rem;
  }
  
  .brand:hover {
    transform: none;
  }
  
  .brand-logo {
    width: 42px;
    height: 42px;
  }
  
  nav {
    gap: 0.5rem;
  }
  
  nav a {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .card {
    padding: 2rem 1.5rem;
  }
  
  .card:hover {
    transform: none;
  }
  
  .email-container {
    font-size: 1.1rem;
    padding: 1.25rem;
  }
  
  .email-container:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
}

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

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

/* Selection styling */
::selection {
  background: rgba(255, 133, 66, 0.3);
  color: var(--text-dark);
}

