/* ========================================
   RESPONSIVE STYLES FOR CUSTOM REACT PAGES
   ======================================== */

/* ========================================
   MATCH DETAILS PAGE RESPONSIVE
   ======================================== */

/* Desktop - Default styles (no media query needed) */
.match-details-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 30px;
  align-items: start;
}

.match-details-tabs {
  display: flex;
  border-bottom: 2px solid #e5e7eb;
}

.match-details-tab {
  flex: 1;
  padding: 18px 24px;
  font-size: 16px;
}

.match-details-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.match-details-info-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.match-details-right-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Tablet - Large (max-width: 1199px) */
@media (max-width: 1199px) {
  .match-details-layout {
    grid-template-columns: 1fr 380px;
    gap: 24px;
  }

  .match-details-tab {
    padding: 16px 20px;
    font-size: 15px;
  }

  .match-details-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet - Medium (max-width: 991px) */
@media (max-width: 991px) {
  .match-details-layout {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  .match-details-right-panel {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .match-details-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile - Large (max-width: 767px) */
@media (max-width: 767px) {
  .match-details-tabs {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .match-details-tab {
    padding: 14px 16px;
    font-size: 14px;
    white-space: nowrap;
    min-width: 120px;
  }

  .match-details-tab i {
    display: none;
  }

  .match-details-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .match-details-main-image {
    height: 300px !important;
  }

  .match-details-thumbnail {
    height: 80px !important;
  }

  .match-details-right-panel {
    padding: 24px !important;
  }

  .match-details-title {
    font-size: 20px !important;
  }

  .match-details-price {
    font-size: 24px !important;
  }
}

/* Mobile - Small (max-width: 575px) */
@media (max-width: 575px) {
  .match-details-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .match-details-main-image {
    height: 250px !important;
  }

  .match-details-thumbnail {
    height: 70px !important;
  }

  .match-details-tab {
    padding: 12px 14px;
    font-size: 13px;
    min-width: 100px;
  }

  .match-details-right-panel {
    padding: 20px !important;
  }

  .match-details-title {
    font-size: 18px !important;
  }

  .match-details-price {
    font-size: 22px !important;
  }

  .match-details-button {
    padding: 12px !important;
    font-size: 14px !important;
  }
}

/* ========================================
   MATCHES PAGE RESPONSIVE
   ======================================== */

.matches-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.matches-sidebar {
  position: sticky;
  top: 100px;
}

/* Tablet and below - Stack sidebar */
@media (max-width: 991px) {
  .matches-sidebar {
    position: static;
    max-width: 100%;
  }
}

/* Mobile - Adjust spacing */
@media (max-width: 767px) {
  .matches-page-layout {
    gap: 20px;
  }

  .matches-title {
    font-size: 28px !important;
  }

  .matches-count {
    font-size: 14px !important;
  }
}

@media (max-width: 575px) {
  .matches-title {
    font-size: 24px !important;
  }
}

/* ========================================
   TOURNAMENTS PAGE RESPONSIVE
   ======================================== */

.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Tablet - 2 columns */
@media (max-width: 991px) {
  .tournaments-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Mobile - 1 column */
@media (max-width: 767px) {
  .tournaments-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ========================================
   CART PAGE RESPONSIVE
   ======================================== */

/* Mobile - Adjust cart item layout */
@media (max-width: 767px) {
  .cart-item-layout {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .cart-item-price {
    align-self: flex-end !important;
  }
}

/* ========================================
   GENERAL RESPONSIVE UTILITIES
   ======================================== */

/* Hide on mobile */
@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Hide on desktop */
@media (min-width: 768px) {
  .hide-desktop {
    display: none !important;
  }
}

/* Responsive text sizes */
@media (max-width: 767px) {
  .responsive-title-lg {
    font-size: 28px !important;
  }

  .responsive-title-md {
    font-size: 22px !important;
  }

  .responsive-title-sm {
    font-size: 18px !important;
  }

  .responsive-text {
    font-size: 14px !important;
  }

  .responsive-text-sm {
    font-size: 13px !important;
  }
}

@media (max-width: 575px) {
  .responsive-title-lg {
    font-size: 24px !important;
  }

  .responsive-title-md {
    font-size: 20px !important;
  }

  .responsive-title-sm {
    font-size: 16px !important;
  }
}

/* Responsive padding */
@media (max-width: 767px) {
  .responsive-padding {
    padding: 20px !important;
  }

  .responsive-padding-sm {
    padding: 15px !important;
  }
}

@media (max-width: 575px) {
  .responsive-padding {
    padding: 15px !important;
  }

  .responsive-padding-sm {
    padding: 12px !important;
  }
}

/* Responsive margins */
@media (max-width: 767px) {
  .responsive-margin-bottom {
    margin-bottom: 20px !important;
  }
}

@media (max-width: 575px) {
  .responsive-margin-bottom {
    margin-bottom: 15px !important;
  }
}

/* Flex utilities for mobile */
@media (max-width: 767px) {
  .mobile-stack {
    flex-direction: column !important;
  }

  .mobile-full-width {
    width: 100% !important;
  }
}

