/* Philadelphia Argentine Tango School - Static Site Styles */

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font-family: 'Roboto', sans-serif;
  vertical-align: baseline;
  background-color: white;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================ */

:root {
  --color-primary: #b01116;
  --color-dark: #191717;
  --color-text: #231f20;
  --color-white: #ffffff;
  --header-height: 85px;
  --container-max-width: 1200px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

h1 {
  font-size: 2.5rem;
  font-weight: 400;
}

h2 {
  font-size: 2rem;
  font-weight: 400;
}

h3 {
  font-size: 1.5rem;
}

p {
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

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

/* ============================================
   HEADER STYLES
   ============================================ */

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 999;
  width: 100%;
}

.header-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  height: 85px;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Menu Toggle Button - Always visible like original */
.menu-toggle-wrapper {
  padding: 0 0 0 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-icon-button {
  background: transparent;
  border: none;
  padding: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  width: 48px;
  height: 48px;
}

.menu-icon-button:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.menu-icon {
  width: 24px;
  height: 24px;
  fill: rgba(0, 0, 0, 0.54);
  display: block;
}

/* Logo Container - matches original header.js */
.logo-container {
  padding: 0 0 0 10px;
  flex: 1;
  display: flex;
  align-items: center;
}

.logo-container #logo-link {
  cursor: pointer;
  line-height: 0;
}

.logo-container svg {
  height: 50px;
  width: auto;
  display: block;
  max-width: 100%;
}

/* Ensure logo is visible and properly sized */
#logo-link {
  display: inline-block;
  line-height: 0;
}

#logo-link svg {
  height: 50px;
  width: auto;
}

/* Header Button */
.header-button {
  display: none;
  margin: 0 15px 0 0;
  flex-shrink: 0;
}

.header-button .btn-register {
  background-color: var(--color-primary);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  white-space: nowrap;
}

.header-button .btn-register:hover {
  opacity: 1;
  background-color: #8d0e12;
}

@media (min-width: 600px) {
  .header-button {
    display: block;
  }
}

/* ============================================
   MOBILE DRAWER MENU
   ============================================ */

.menu-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background-color: white;
  box-shadow: 2px 0 8px rgba(0,0,0,0.15);
  transition: left 0.3s ease;
  z-index: 1001;
  overflow-y: auto;
  opacity: 0;
}

.menu-drawer.open {
  left: 0;
  opacity: 1;
}

.menu-drawer-logo {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #e0e0e0;
}

.menu-drawer-logo svg {
  height: 50px;
  width: auto;
}

.menu-drawer nav {
  padding: 0;
}

.menu-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-drawer li {
  margin: 0;
}

/* Drawer menu items - matches Material-UI MenuItem */
.drawer-menu-item {
  display: block;
  padding: 12px 16px;
  color: rgba(0, 0, 0, 0.87);
  line-height: 36px;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  cursor: pointer;
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  user-select: none;
}

.drawer-menu-item:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.menu-drawer-divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.12);
  min-width: 250px;
  margin: 0;
}

.menu-drawer-button {
  padding: 16px;
  margin: 10px 0 0 0;
}

.menu-drawer-button .btn-register {
  display: block;
  width: 100%;
  text-align: center;
  background-color: var(--color-primary);
  color: white;
  padding: 12px 16px;
  border-radius: 4px;
  font-weight: 500;
  line-height: 36px;
  transition: background-color 0.3s ease;
}

.menu-drawer-button .btn-register:hover {
  background-color: #8d0e12;
  opacity: 1;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

#main-content {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  background-color: white;
}

/* ============================================
   HERO CAROUSEL STYLES
   ============================================ */

.hero-carousel {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  background-color: #f5f5f5;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.carousel-loading.hidden {
  display: none;
}

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(176, 17, 22, 0.1);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Carousel Controls (optional) */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 16px;
  cursor: pointer;
  font-size: 18px;
  z-index: 10;
  transition: background-color 0.3s ease;
}

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

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* ============================================
   TEASERS SECTION STYLES
   ============================================ */

.teasers-section {
  padding: 30px 0;
}

#teasers-container {
  margin: 0;
}

.teaser {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin: 30px 15px;
  padding: 0;
}

.teaser__image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.teaser__image img,
.teaser__image video,
.teaser__image iframe {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.teaser__content {
  flex: 1;
  min-width: 300px;
}

.teaser__content h2 {
  color: var(--color-primary);
  margin: 0 0 15px 0;
  font-size: 1.75rem;
}

.teaser__content .content {
  margin-bottom: 20px;
  line-height: 1.6;
}

.teaser__content .cta {
  display: inline-block;
  background-color: var(--color-primary);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.teaser__content .cta:hover {
  background-color: #8d0e12;
  opacity: 1;
}

/* Teaser image positioning */
.teaser.image-left .teaser__image {
  order: 0;
}

.teaser.image-right .teaser__image {
  order: 1;
}

/* Mobile responsive */
@media (max-width: 900px) {
  .teaser {
    flex-direction: column;
    margin: 30px 0;
  }

  .teaser__image {
    order: 0 !important;
    min-width: 100%;
    max-width: 100%;
  }

  .teaser__content {
    min-width: 100%;
  }
}

/* ============================================
   DETAIL PAGE STYLES
   ============================================ */

.hero-image {
  width: 100%;
  overflow: hidden;
}

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

.detail-page-content {
  padding: 30px 0;
}

.detail-article {
  margin-bottom: 60px;
}

.page-headline {
  color: var(--color-primary);
  margin: 0 0 30px 0;
  max-width: 650px;
}

.page-content {
  line-height: 1.8;
  font-size: 1rem;
}

.page-content h2,
.page-content h3 {
  color: var(--color-primary);
  margin: 30px 0 15px 0;
}

.page-content ul,
.page-content ol {
  margin: 0 0 1rem 20px;
  line-height: 1.8;
}

.page-content strong,
.page-content b {
  font-weight: 700;
}

.page-content em,
.page-content i {
  font-style: italic;
}

/* ============================================
   CHECKOUT PAGE STYLES
   ============================================ */

.checkout-main {
  min-height: calc(100vh - var(--header-height) - 200px);
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.checkout-section {
  width: 100%;
}

.checkout-container {
  max-width: 600px;
}

.checkout-container h1 {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 30px;
}

.checkout-form {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-text);
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Roboto', sans-serif;
}

.btn-primary:hover {
  background-color: #8d0e12;
}

.btn-checkout {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
}

.message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
  display: none;
}

.message.success {
  display: block;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  display: block;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ============================================
   FOOTER STYLES - Matches original footer.js
   ============================================ */

#footer {
  background-color: #191717;
  color: white;
  min-height: 250px;
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0;
}

.footer-content {
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.footer-left {
  flex: 0 0 33.33%;
  max-width: 33.33%;
  margin: 20px 0 0 0;
}

.footer-logo {
  margin-bottom: 0;
}

.footer-logo svg {
  height: 120px;
  width: auto;
  display: block;
}

.footer-company {
  margin-top: 40px;
  margin-bottom: 40px;
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
  color: white;
}

.footer-company b {
  font-weight: 500;
}

.footer-right {
  flex: 0 0 66.67%;
  max-width: 66.67%;
  margin: 20px 0 30px 30px;
}

.footer-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li {
  padding: 2px;
  cursor: pointer;
}

.footer-menu a {
  padding: 2px;
  cursor: pointer;
  color: white;
  text-decoration: none;
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  font-size: 14px;
  transition: opacity 0.3s ease;
}

.footer-menu a:hover {
  opacity: 0.8;
}

.footer-copyright {
  text-align: left;
  padding: 40px 30px 20px;
  color: white;
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  font-size: 14px;
  font-weight: 400;
  max-width: 1200px;
  margin: 0 auto;
}

/* Responsive footer */
@media (max-width: 900px) {
  .footer-content {
    flex-wrap: wrap;
  }

  .footer-left {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 20px 0 0 0;
  }

  .footer-right {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 20px 0 30px 0;
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 30px;
  }

  .footer-menu ul {
    columns: 1;
  }
}

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

.fade-appear {
  opacity: 0.01;
}

.fade-appear-active {
  opacity: 1;
  transition: opacity 0.5s ease-in;
}

.annimateMenu-enter {
  opacity: 0.01;
}

.annimateMenu-enter-active {
  opacity: 1;
  transition: opacity 500ms ease-in;
}

.annimateMenu-leave {
  opacity: 1;
}

.annimateMenu-leave-active {
  opacity: 0.01;
  transition: opacity 300ms ease-in;
}

.blur-up {
  -webkit-filter: blur(5px);
  filter: blur(5px);
  transition: filter 400ms, -webkit-filter 400ms;
}

.blur-up.lazyloaded {
  -webkit-filter: blur(0);
  filter: blur(0);
}

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

.hidden {
  display: none !important;
}

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

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
