/* ==========================================================================
   TEN56.IO - Responsive Styles
   ========================================================================== */

/* ==========================================================================
   Breakpoints
   ========================================================================== */

/*
  xs: 0-575px (mobile)
  sm: 576-767px (mobile landscape)
  md: 768-991px (tablet)
  lg: 992-1199px (desktop)
  xl: 1200px+ (large desktop)
*/

/* ==========================================================================
   Large Desktop (1200px+)
   ========================================================================== */

@media (min-width: 1200px) {
  .hero__title {
    font-size: 8rem;
  }
  
  .apparel__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Desktop (992px - 1199px)
   ========================================================================== */

@media (max-width: 1199px) {
  :root {
    --container-max-width: 960px;
  }
  
  .hero__title {
    font-size: 6rem;
  }
}

/* ==========================================================================
   Tablet (768px - 991px)
   ========================================================================== */

@media (max-width: 991px) {
  :root {
    --container-max-width: 720px;
    --spacing-3xl: 4rem;
  }
  
  /* Navigation */
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--color-dark-red);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
    transition: right var(--transition-normal);
    z-index: 999;
  }
  
  .nav__menu.active {
    right: 0;
  }
  
  .nav__toggle {
    display: flex;
    z-index: 1001;
  }
  
  .nav__toggle.active .nav__toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav__toggle.active .nav__toggle-bar:nth-child(2) {
    opacity: 0;
  }
  
  .nav__toggle.active .nav__toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  /* Hero */
  .hero__container {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    text-align: center;
  }
  
  .hero__title {
    font-size: 4rem;
  }
  
  /* Merchandise */
  .merchandise__content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  /* Apparel */
  .apparel__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Collaboration */
  .collaboration__content {
    justify-content: center;
    padding-right: var(--container-padding);
    text-align: center;
  }
  
  /* Footer */
  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    text-align: center;
  }
  
  .footer__links {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
}

/* ==========================================================================
   Mobile Landscape (576px - 767px)
   ========================================================================== */

@media (max-width: 767px) {
  :root {
    --container-max-width: 540px;
    --container-padding: 1rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 2.5rem;
    --spacing-3xl: 3rem;
  }
  
  /* Typography adjustments */
  .hero__title {
    font-size: 3rem;
    line-height: 1;
  }
  
  .apparel__title,
  .tours__title,
  .socials__title {
    font-size: 2.5rem;
  }
  
  /* Navigation */
  .nav__menu {
    width: 250px;
  }
  
  /* Apparel */
  .apparel__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  /* Footer */
  .footer__links {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  /* Social links */
  .social-links {
    gap: var(--spacing-md);
  }
  
  .social-links__icon {
    width: 40px;
    height: 40px;
  }
  
  /* Instagram carousel */
  .instagram-post {
    flex: 0 0 250px;
    width: 250px;
  }
  
  /* Carousel controls */
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .carousel-btn--prev {
    left: -20px;
  }
  
  .carousel-btn--next {
    right: -20px;
  }
}

/* ==========================================================================
   Mobile (max-width: 575px)
   ========================================================================== */

@media (max-width: 575px) {
  :root {
    --container-padding: 1rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 2rem;
    --spacing-3xl: 2.5rem;
  }
  
  /* Base adjustments */
  body {
    font-size: 14px;
  }
  
  /* Navigation */
  .nav__container {
    padding: var(--spacing-sm) var(--container-padding);
  }
  
  .nav__logo-img {
    height: 30px;
  }
  
  .nav__menu {
    width: 100%;
    right: -100%;
  }
  
  /* Hero */
  .hero {
    min-height: 80vh;
    padding: var(--spacing-3xl) 0;
  }
  
  .hero__container {
    gap: var(--spacing-lg);
  }
  
  .hero__logo-img {
    width: 150px;
  }
  
  .hero__title {
    font-size: 2.5rem;
  }
  
  /* Video embeds */
  .video-embed {
    margin: 0 -1rem;
  }
  
  /* Linktree embed responsive */
  .linktree-embed {
    height: 500px; /* Slightly shorter on mobile */
    min-height: 500px;
  }
  
  .bandsintown-widget__iframe,
  .linktree-widget__iframe {
    height: 400px;
  }
  
  /* Merchandise */
  .merchandise__stores {
    gap: var(--spacing-lg);
  }
  
  .store-card__img {
    width: 120px;
  }
  
  .store-card__title {
    font-size: 1.2rem;
  }
  
  /* Product cards */
  .product-card__name {
    font-size: 1rem;
  }
  
  .product-card__price {
    font-size: 0.9rem;
  }
  
  /* CTA Buttons */
  .cta-button {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.9rem;
  }
  
  /* Tours section */
  .tours__subtitle {
    font-size: 1.2rem;
  }
  
  .social-links {
    gap: var(--spacing-sm);
  }
  
  .social-links__icon {
    width: 35px;
    height: 35px;
  }
  
  /* Instagram feed */
  .instagram-post {
    flex: 0 0 200px;
    width: 200px;
  }
  
  .carousel-btn {
    display: none; /* Hide on very small screens */
  }
  
  /* Collaboration */
  .collaboration__product-img {
    width: 200px;
  }
  
  /* Footer */
  .footer {
    padding: var(--spacing-xl) 0 var(--spacing-md);
  }
  
  .footer__logo {
    width: 80px;
  }
  
  .footer__section-title {
    font-size: 1rem;
  }
}

/* ==========================================================================
   Small Mobile (max-width: 375px)
   ========================================================================== */

@media (max-width: 375px) {
  .hero__title {
    font-size: 2rem;
  }
  
  .apparel__title,
  .tours__title,
  .socials__title {
    font-size: 2rem;
  }
  
  .instagram-post {
    flex: 0 0 180px;
    width: 180px;
  }
  
  .store-card__img {
    width: 100px;
  }
  
  .collaboration__product-img {
    width: 180px;
  }
}

/* ==========================================================================
   Landscape Orientation (Mobile)
   ========================================================================== */

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
  }
  
  .hero__container {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
  }
  
  .hero__title {
    font-size: 2.5rem;
  }
  
  .nav__menu {
    padding: var(--spacing-lg) 0;
    gap: var(--spacing-md);
  }
}

/* ==========================================================================
   High DPI Displays
   ========================================================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize images for retina displays */
  .hero__bg-image,
  .tours__bg-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@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;
  }
  
  .animate-float,
  .animate-pulse,
  .animate-spin {
    animation: none;
  }
}

/* ==========================================================================
   Touch Device Optimizations
   ========================================================================== */

@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .hover-lift:hover,
  .hover-scale:hover {
    transform: none;
  }
  
  .nav__link::after {
    display: none;
  }
  
  /* Increase touch target sizes */
  .cta-button {
    min-height: 44px;
    padding: var(--spacing-sm) var(--spacing-lg);
  }
  
  .social-links__item {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav__toggle {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ==========================================================================
   Accessibility Improvements
   ========================================================================== */

@media (prefers-contrast: high) {
  /* Increase contrast for better accessibility */
  .nav {
    background: var(--color-black);
  }
  
  .cta-button--outline {
    border-width: 3px;
  }
  
  .footer__link,
  .footer__legal-link {
    color: #ccc;
  }
}

/* Focus visible for keyboard navigation */
@supports selector(:focus-visible) {
  .cta-button:focus-visible,
  .nav__link:focus-visible,
  .social-links__item:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
  }
}