/* Üveg Asztal - Premium Design System */

/* ============================================
   IMPORTS & VARIABLES
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Montserrat:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Light theme colors (set by theme.js) */
  --color-primary: #556b2f;
  --color-primaryLight: #7a9e3d;
  --color-secondary: #c09f80;
  --color-accent: #2c3e50;
  --color-background: #ffffff;
  --color-surface: #f8f9fa;
  --color-surfaceHover: #f0f1f3;
  --color-text: #2c3e50;
  --color-textSecondary: #666666;
  --color-border: #e0e0e0;
  --color-shadow: rgba(0, 0, 0, 0.08);
  --color-shadowDark: rgba(0, 0, 0, 0.12);
  --color-glassDark: rgba(0, 0, 0, 0.05);
  --color-glassLight: rgba(255, 255, 255, 0.8);

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

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

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-base: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* ============================================
   THEME TRANSITIONS
   ============================================ */
html.theme-transition,
html.theme-transition *,
html.theme-transition *:before,
html.theme-transition *:after {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 6vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-md);
}

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

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: var(--spacing-md) 0 !important;
  background-color: var(--color-surface) !important;
  border-bottom: 1px solid var(--color-border) !important;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-primary) !important;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-link {
  color: var(--color-text) !important;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  margin: 0 var(--spacing-sm);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary) !important;
}

/* Language & Theme Switchers */
.header-controls {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  margin-left: var(--spacing-md);
}

.lang-toggle-btn,
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: var(--spacing-xs) var(--spacing-sm);
  cursor: pointer;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.lang-toggle-btn:hover,
.theme-toggle-btn:hover {
  background-color: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
  text-transform: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primaryLight);
  border-color: var(--color-primaryLight);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px var(--color-shadow);
}

.btn-outline-primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: white;
  border-color: var(--color-secondary);
}

.btn-secondary:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

/* ============================================
   BENTO GRID SYSTEM
   ============================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

/* Responsive bento grid */
@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
  }

  .bento-grid.four-col {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Span sizes */
  .bento-tile.span-2 {
    grid-column: span 2;
  }

  .bento-tile.span-2-row {
    grid-row: span 2;
  }

  .bento-tile.span-full {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bento-grid.four-col {
    grid-template-columns: repeat(4, 1fr);
  }

  .bento-grid.six-col {
    grid-template-columns: repeat(6, 1fr);
  }

  .bento-tile.span-2 {
    grid-column: span 2;
  }

  .bento-tile.span-2-row {
    grid-row: span 2;
  }

  .bento-tile.span-full {
    grid-column: 1 / -1;
  }
}

/* Bento Tile */
.bento-tile {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 280px;
}

.bento-tile:hover {
  border-color: var(--color-primary);
  box-shadow: 0 12px 32px var(--color-shadow);
  transform: translateY(-4px);
}

.bento-tile.glass {
  background: var(--color-glassLight);
  backdrop-filter: blur(10px);
  border-color: var(--color-border);
}

.bento-tile.dark {
  background-color: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.bento-tile.dark h3,
.bento-tile.dark h4 {
  color: white;
}

.bento-tile.accent {
  background-color: var(--color-secondary);
  color: white;
  border-color: var(--color-secondary);
}

.bento-tile.accent h3,
.bento-tile.accent h4 {
  color: white;
}

/* Bento Image Tile */
.bento-tile-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
}

.bento-tile-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.bento-tile.image-overlay {
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 400px;
}

.bento-tile.image-overlay .content {
  padding: var(--spacing-lg);
  color: white;
  z-index: 10;
  width: 100%;
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 6rem var(--spacing-lg);
  color: white;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  text-align: center;
}

.hero h1 {
  color: white;
  margin-bottom: var(--spacing-lg);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: var(--spacing-xxl) var(--spacing-lg);
}

section h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--color-text);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 12px 32px var(--color-shadow);
  transform: translateY(-4px);
}

.card-body {
  padding: var(--spacing-lg);
}

.card-title {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.card-text {
  color: var(--color-textSecondary);
  line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background-color: var(--color-accent);
  color: white;
  padding: var(--spacing-xxl) var(--spacing-lg) var(--spacing-lg);
  margin-top: var(--spacing-xxl);
}

footer h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-lg);
  color: white;
}

footer p {
  margin-bottom: var(--spacing-md);
  color: rgba(255, 255, 255, 0.9);
}

footer a {
  color: rgba(255, 255, 255, 0.9);
}

footer a:hover {
  color: var(--color-secondary);
}

footer .divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: var(--spacing-lg) 0;
  padding-top: var(--spacing-lg);
}

/* ============================================
   IMAGES & MEDIA
   ============================================ */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

figure {
  margin-bottom: var(--spacing-lg);
}

figcaption {
  font-size: 0.9rem;
  color: var(--color-textSecondary);
  margin-top: var(--spacing-sm);
  font-style: italic;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  border-left-color: var(--color-secondary);
  box-shadow: 0 8px 24px var(--color-shadow);
}

.star-rating {
  color: #ffd700;
  margin-bottom: var(--spacing-md);
  display: flex;
  gap: var(--spacing-xs);
}

.star-rating svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   FORMS
   ============================================ */
.form-control,
.form-select {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(85, 107, 47, 0.1);
  color: var(--color-text);
  background-color: var(--color-background);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.text-accent {
  color: var(--color-accent);
}

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

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: var(--spacing-sm);
}

.mb-2 {
  margin-bottom: var(--spacing-md);
}

.mb-3 {
  margin-bottom: var(--spacing-lg);
}

.mb-4 {
  margin-bottom: var(--spacing-xl);
}

.mt-1 {
  margin-top: var(--spacing-sm);
}

.mt-2 {
  margin-top: var(--spacing-md);
}

.mt-3 {
  margin-top: var(--spacing-lg);
}

.mt-4 {
  margin-top: var(--spacing-xl);
}

.shadow-sm {
  box-shadow: 0 2px 8px var(--color-shadow);
}

.shadow {
  box-shadow: 0 4px 16px var(--color-shadow);
}

.shadow-lg {
  box-shadow: 0 8px 24px var(--color-shadow);
}

.rounded {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.gap-2 {
  gap: var(--spacing-md);
}

.gap-3 {
  gap: var(--spacing-lg);
}

.gap-4 {
  gap: var(--spacing-xl);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 3rem var(--spacing-md);
    min-height: 400px;
  }

  section {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .bento-tile.span-2 {
    grid-column: span 1;
  }

  .bento-tile.span-2-row {
    grid-row: span 1;
  }

  .bento-tile {
    min-height: 250px;
  }

  .header-controls {
    margin-left: auto;
    gap: var(--spacing-sm);
  }

  .lang-toggle-btn,
  .theme-toggle-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.75rem;
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

.slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

/* Stagger animations */
.fade-in-up {
  animation-delay: 0.1s;
}

.fade-in-up:nth-child(2) {
  animation-delay: 0.2s;
}

.fade-in-up:nth-child(3) {
  animation-delay: 0.3s;
}

.fade-in-up:nth-child(4) {
  animation-delay: 0.4s;
}

.fade-in-up:nth-child(5) {
  animation-delay: 0.5s;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ============================================
   CONTAINER UTILITIES
   ============================================ */
.container-fluid {
  width: 100%;
  padding-right: 0;
  padding-left: 0;
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}

.col {
  flex-basis: 0;
  flex-grow: 1;
  max-width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.col-md-2 { max-width: 16.66%; }
.col-md-3 { max-width: 25%; }
.col-md-4 { max-width: 33.33%; }
.col-md-6 { max-width: 50%; }
.col-md-8 { max-width: 66.66%; }
.col-md-12 { max-width: 100%; }

@media (max-width: 768px) {
  .col-md-2,
  .col-md-3,
  .col-md-4,
  .col-md-6,
  .col-md-8 {
    max-width: 100%;
  }
}

/* ============================================
   NAVBAR UTILITIES
   ============================================ */
.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  margin-right: 1rem;
  font-size: 1.25rem;
  text-decoration: none;
  white-space: nowrap;
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.5rem 0;
}

@media (min-width: 992px) {
  .navbar-nav {
    flex-direction: row;
  }
  .nav-link {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
#cookie-consent-banner {
  background-color: var(--color-accent) !important;
  color: white !important;
  border-top: 1px solid var(--color-border);
}

#accept-cookies {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: white;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
}

#accept-cookies:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}
