:root {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #f3f4f6;
  color: #111827;
  min-height: 100vh;
}

.app {
  position: relative;
  min-height: 100vh;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  z-index: 20;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
}

.site-header.header--detached {
  left: 1rem;
  right: 1rem;
  top: 1rem;
  border-radius: 1rem;
  box-sizing: border-box;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  opacity: 0.7;
  text-decoration: underline;
}

/* Hamburger Menu Styles */
.hamburger-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s ease;
  z-index: 50;
}

.hamburger-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.hamburger-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: inherit;
}

/* Mobile Navigation */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 40;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: white;
  display: flex;
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  gap: 1.5rem;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 50;
  overflow-y: auto;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-link {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0.75rem 0;
  text-align: left;
  font-size: 1.125rem;
  border-bottom: 1px solid #f3f4f6;
  transition: color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  color: #6366f1;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

/* Responsive styles */
@media (max-width: 767px) {
  .hamburger-button {
    display: block;
  }
  
  .site-nav {
    display: none;
  }
  
  .site-header {
    padding: 1rem 1.5rem;
  }
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 6rem 1.5rem 2rem;
  transition: background 0.3s ease, color 0.3s ease;
  background-color: #ffffff;
  color: #111827;
}

.hero--align-left {
  justify-content: flex-start;
}

.hero--align-center {
  justify-content: center;
}

.hero--align-right {
  justify-content: flex-end;
}

.hero-content {
  width: 100%;
  max-width: 24rem;
  transition: max-width 0.3s ease, width 0.3s ease;
}

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

.hero--align-right .hero-content {
  text-align: right;
}

.hero-heading {
  margin: 0 0 1.5rem;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
}

.hero-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-button:hover,
.hero-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.fab-button {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  background-color: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
  z-index: 50;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.fab-button:hover,
.fab-button:focus-visible {
  background-color: #1d4ed8;
  transform: translateY(-2px);
}

.fab-button svg {
  width: 1.5rem;
  height: 1.5rem;
}

.panel {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 20rem;
  height: calc(100% - 2rem);
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 60;
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
}

.panel--left {
  left: 1rem;
  right: auto;
  transform: translateX(-120%);
}

.panel--visible {
  transform: translateX(0) !important;
  opacity: 1;
}

.panel--hidden {
  pointer-events: none;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid #f3f4f6;
}

.panel-body {
  padding: 0.75rem 1.25rem 1.5rem;
  overflow-y: auto;
}

.panel-section + .panel-section {
  margin-top: 1.75rem;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.75rem;
  background: #f3f4f6;
  border-radius: 0.5rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}

.field--inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field--inline label {
  margin: 0;
}

.field input[type="text"],
.field input[type="file"],
.field select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input[type="text"]:focus-visible,
.field input[type="file"]:focus-visible,
.field select:focus-visible {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.field input[type="range"] {
  width: 100%;
}

.field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: #6b7280;
}

.color-input {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.color-input input[type="color"] {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.25rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #ffffff;
  cursor: pointer;
}

.color-input input[type="text"] {
  width: 7rem;
  padding: 0.45rem 0.5rem;
}

.color-input--split input[type="color"] {
  flex: 1;
}

.color-input--triple input[type="color"] {
  flex: 1;
}

.orientation-grid,
.position-grid,
.size-grid {
  display: grid;
  gap: 0.35rem;
}

.orientation-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0.75rem;
}

.orientation-grid button,
.position-grid button,
.size-grid button {
  padding: 0.4rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.orientation-grid button:hover,
.orientation-grid button:focus-visible,
.position-grid button:hover,
.position-grid button:focus-visible,
.size-grid button:hover,
.size-grid button:focus-visible {
  border-color: #2563eb;
  background: #ebf2ff;
}

.orientation-grid button.is-active,
.position-grid button.is-active,
.size-grid button.is-active {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.position-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.size-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.icon-button {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.5rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  color: #111827;
  background-color: #e5e7eb;
}

.hidden {
  display: none !important;
}

@media (min-width: 768px) {
  .hero {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}
