/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

*:not(input, textarea) {
  font-family: "Helvetica", sans-serif;
  /* font-family: "Oswald", sans-serif; */
  font-optical-sizing: auto;
  font-weight: 400;
  text-transform: uppercase;
}

.pagy {
  display: flex;
  font-family: sans-serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: #6b7280;
}
.pagy > :not([hidden]) ~ :not([hidden]) {
  --space-reverse: 0;
  margin-right: calc(0.25rem * var(--space-reverse));
  margin-left: calc(0.25rem * calc(1 - var(--space-reverse)));
}
.pagy a:not(.gap) {
  display: block;
  text-decoration: none;
  border-radius: 0.5rem;
  background-color: #e5e7eb;
  padding: 0.25rem 0.75rem;
  color: inherit;
}
.pagy a:not(.gap):hover {
  background-color: #d1d5db;
}
.pagy a:not(.gap):not([href]) {
  /* disabled links */
  cursor: default;
  background-color: #f3f4f6;
  color: #d1d5db;
}
.pagy a:not(.gap).current {
  background-color: #9ca3af;
  color: white;
}
.pagy label {
  white-space: nowrap;
  display: inline-block;
  border-radius: 0.5rem;
  background-color: #e5e7eb;
  padding: 0.125rem 0.75rem;
}
.pagy label input {
  line-height: 1.5rem;
  border-radius: 0.375rem;
  border-style: none;
  background-color: #f3f4f6;
}

/* Carousel Styles - positioning handled above */

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 64rem; /* max-w-4xl equivalent */
  margin: 0 auto;
}

.carousel-wrapper {
  position: relative;
  height: 50vh;
  overflow: hidden;
  border-radius: 0.5rem;
}

@media (min-width: 768px) {
  .carousel-wrapper {
    height: 60vh;
  }
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition:
    opacity 800ms ease-in-out,
    transform 800ms ease-in-out;
  transform: translateX(100%);
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.carousel-slide.prev {
  transform: translateX(-100%);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 60vh;
}

/* Navigation Buttons */
.carousel-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: background-color 200ms;
  z-index: 10;
}

.carousel-nav-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.carousel-nav-button.prev {
  left: 1rem;
}

.carousel-nav-button.next {
  right: 1rem;
}

/* Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 200ms;
}

.carousel-indicator.active {
  background-color: rgba(255, 255, 255, 1);
}

.carousel-indicator:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Arts Gallery Styles */
.arts-gallery {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.arts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .arts-grid {
    gap: 5rem;
  }
}

.art-item {
  width: 100%;
}

.art-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 300ms ease;
}

.art-link:hover {
  transform: translateY(-4px);
}

.art-image-wrapper {
  position: relative;
  overflow: hidden;
  background-color: #f9fafb;
  border-radius: 0.125rem;
}

.art-image {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 300ms ease;
}

.art-link:hover .art-image {
  opacity: 0.95;
}

.art-title {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .art-title {
    font-size: 2rem;
  }
}

.no-arts-message {
  text-align: center;
  color: #6b7280;
  font-size: 1.125rem;
  margin: 4rem 0;
}

/* Arts Show Styles */
.art-show-container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.art-nav {
  margin-bottom: 2rem;
}

.back-link {
  display: inline-block;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 200ms ease;
}

.back-link:hover {
  color: #374151;
}

.art-show-content {
  width: 100%;
}

.art-piece {
  width: 100%;
}

.art-main {
  margin-bottom: 3rem;
}

.art-title-show {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .art-title-show {
    font-size: 3rem;
  }
}

.art-image-wrapper-show {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.art-image-show {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

/* Child Images Grid */
.art-child-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .art-child-images {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
}

.child-image-wrapper {
  position: relative;
  overflow: hidden;
  background-color: #f9fafb;
  border-radius: 0.125rem;
}

.child-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 300ms ease;
}

.child-image:hover {
  transform: scale(1.02);
}

/* Navigation Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  z-index: 100;
  border-bottom: 1px solid #e5e7eb;
}

.navbar-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  z-index: 110;
}

/* Hamburger Menu - Mobile Only */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
}

@media (max-width: 767px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

.hamburger-line {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: #000;
  margin: 3px 0;
  transition: all 300ms ease;
  transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-item {
  margin: 0;
}

.nav-link {
  text-decoration: none;
  color: #374151;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: color 200ms ease;
  position: relative;
}

.nav-link:hover {
  color: #000;
}

/* Mobile Menu */
@media (max-width: 767px) {
  .navbar-container {
    padding: 1rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 105;
  }

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

  .nav-list {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
  }

  .nav-link {
    font-size: 2rem;
    color: #000;
    display: block;
    padding: 0.5rem 1rem;
  }
}

/* Body scroll lock when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Site Layout */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 5rem;
}

@media (max-width: 767px) {
  .site-body {
    padding-top: 4rem;
  }
}

.site-main {
  flex-grow: 1;
  display: flex;
}

/* Default main content styling */
.site-main {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Override for home page carousel */
.carousel-page-wrapper {
  position: fixed;
  top: 5rem;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: calc(100vh - 5rem);
}

@media (max-width: 767px) {
  .carousel-page-wrapper {
    top: 4rem;
    height: calc(100vh - 4rem);
  }
}

/* Contact Page Styles */
.contact-page {
  width: 100%;
}

.contact-hero {
  width: 100%;
  margin-bottom: 3rem;
}

.contact-hero-image {
  width: 100%;
  height: 40vh;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .contact-hero-image {
    height: 50vh;
  }
}

.contact-container {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 2rem 4rem 2rem;
}

/* Contact Form */
.contact-form-section {
  margin-bottom: 4rem;
}

.contact-form {
  width: 100%;
}

.form-field {
  margin-bottom: 2rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.125rem;
  background: white;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: all 200ms ease;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #374151;
  box-shadow: 0 0 0 1px #374151;
}

.form-textarea {
  resize: vertical;
  min-height: 8rem;
  font-family: inherit;
}

.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.submit-button {
  background: white;
  border: 1px solid #000;
  color: #000;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 200ms ease;
  border-radius: 0.125rem;
}

.submit-button:hover {
  background: #000;
  color: white;
  transform: translateY(-1px);
}

.submit-button:active {
  transform: translateY(0);
}

/* Contact Info */
.contact-info {
  text-align: center;
}

.contact-email {
  margin-bottom: 2rem;
}

.email-link {
  color: #374151;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: color 200ms ease;
}

.email-link:hover {
  color: #000;
}

.contact-social {
  display: flex;
  justify-content: center;
}

.instagram-link {
  color: #374151;
  transition: color 200ms ease;
}

.instagram-link:hover {
  color: #000;
}

.instagram-icon {
  width: 2rem;
  height: 2rem;
  transition: transform 200ms ease;
}

.instagram-link:hover .instagram-icon {
  transform: scale(1.1);
}

/* Alert/Notice Styles */
.alert {
  position: fixed;
  top: 5rem; /* Position below the fixed navbar */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 32rem;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 50;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  animation: slideDown 0.3s ease-out;
}

.alert-notice {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #3b82f6;
}

.alert-error {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #ef4444;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-1rem);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
