/* ================================================================
   반응형 스타일 - 데스크탑 (min-width: 1024px)
   ================================================================ */

/* 데스크탑 네비게이션: 모바일에서 숨김 */
.desktop-nav {
  display: none;
}

@media (min-width: 1024px) {

  /* ----------------------------------------------------------------
     1. 기본 레이아웃
     ---------------------------------------------------------------- */
  html, body {
    max-width: 100%;
    background-color: #e8ecf0;
  }

  /* ----------------------------------------------------------------
     2. 헤더 - 데스크탑 수평 네비게이션
     ---------------------------------------------------------------- */
  header .header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
  }

  /* 로고: 모든 페이지에서 표시 */
  header .logo {
    width: auto;
    flex-shrink: 0;
  }
  header .logo img {
    height: 38px;
    width: auto;
    max-width: none;
  }
  header .header-content:not(.is-main) .logo {
    display: block;
  }

  /* 페이지 타이틀: 서브 페이지에서 중앙 정렬 */
  header .header-content:not(.is-main) {
    justify-content: flex-start;
  }
  header .header-content:not(.is-main) .page-title {
    flex: 1;
    text-align: center;
    position: static;
    transform: none;
    font-size: 18px;
  }
  header .header-content:not(.is-main) .header-back {
    position: static;
    transform: none;
    margin-right: 4px;
  }

  /* 햄버거 버튼 숨김 */
  header .header-menu {
    display: none;
  }

  /* 데스크탑 네비게이션 표시 */
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    flex-shrink: 0;
  }

  .desktop-nav-item {
    display: inline-block;
    padding: 8px 14px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
    cursor: pointer;
  }
  .desktop-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.18);
    color: #fff;
  }
  .desktop-nav-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 6px;
  }
  .desktop-nav-item.btn-login {
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-left: 10px;
  }
  .desktop-nav-item.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
  .desktop-nav-item.btn-signup {
    background-color: #fff;
    color: #5b68ac;
    margin-left: 6px;
    font-weight: 700;
  }
  .desktop-nav-item.btn-signup:hover {
    background-color: #eef0fb;
    color: #5b68ac;
  }
  .desktop-nav-item.desktop-nav-logout {
    opacity: 0.6;
    font-size: 13px;
  }
  .desktop-nav-item.desktop-nav-logout:hover {
    opacity: 1;
  }

  /* ----------------------------------------------------------------
     3. 하단 탭 네비게이션 숨김
     ---------------------------------------------------------------- */
  .float-navigation.bottom {
    display: none !important;
  }
  .float-navigation-margin {
    display: none !important;
  }

  /* ----------------------------------------------------------------
     4. 메인 콘텐츠 영역
     ---------------------------------------------------------------- */
  #appCapsule {
    max-width: 1280px;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
    min-height: calc(100vh - 75px);
  }

  /* ----------------------------------------------------------------
     5. 비주얼 배너
     ---------------------------------------------------------------- */
  .visual-wrap .visual-item img {
    max-height: 500px;
    width: 100%;
    object-fit: cover;
    object-position: center;
  }
  .visual-wrap .visual-item .txt-wrap .txt1 {
    font-size: 52px;
  }
  .visual-wrap .visual-item .txt-wrap .txt2 {
    font-size: 36px;
  }

  /* ----------------------------------------------------------------
     6. 섹션 공통 패딩
     ---------------------------------------------------------------- */
  .ui-section {
    padding: 50px 60px;
  }

  /* ----------------------------------------------------------------
     7-0. slick 화살표 버튼
     ---------------------------------------------------------------- */
  .slick-prev,
  .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.45);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    color: transparent;
    outline: none;
    transition: background 0.2s;
  }
  .slick-prev:hover,
  .slick-next:hover {
    background: rgba(0, 0, 0, 0.7);
  }
  .slick-prev {
    left: -20px;
  }
  .slick-next {
    right: -20px;
  }
  .slick-prev::before,
  .slick-next::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    position: absolute;
    top: 50%;
    left: 50%;
  }
  .slick-prev::before {
    transform: translate(-30%, -50%) rotate(-135deg);
  }
  .slick-next::before {
    transform: translate(-70%, -50%) rotate(45deg);
  }
  .slick-disabled {
    opacity: 0.3;
    cursor: default;
  }

  /* league-slider-wrap 양쪽 여백 확보 */
  .league-slider-wrap {
    padding: 0 30px;
    position: relative;
  }

  /* ----------------------------------------------------------------
     7. 대회 리스트 탭
     ---------------------------------------------------------------- */
  .ui-tab {
    justify-content: flex-start;
    gap: 8px;
    padding: 0;
  }
  .ui-tab .tab-item {
    flex: 0 0 auto;
    min-width: 80px;
  }

  /* ----------------------------------------------------------------
     8. 갤러리 그리드
     ---------------------------------------------------------------- */
  .ui-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    flex-wrap: unset;
  }
  .ui-gallery .gallery-item {
    width: 100%;
  }
  .ui-gallery .gallery-item .img-wrap img {
    width: 100%;
    max-width: 100%;
  }

  /* ----------------------------------------------------------------
     9. 랭킹 섹션
     ---------------------------------------------------------------- */
  .section-rank {
    padding: 50px 60px;
  }
  .section-rank .section-rank-wrap {
    max-width: 720px;
    margin: 0 auto;
  }

  /* ----------------------------------------------------------------
     10. 대회 코드 섹션
     ---------------------------------------------------------------- */
  .section-code {
    padding: 50px 60px;
  }
  .section-code .section-content {
    max-width: 540px;
    margin: 0 auto;
  }

  /* ----------------------------------------------------------------
     11. 공지사항
     ---------------------------------------------------------------- */
  .section-notice {
    padding: 50px 60px;
  }
  .ui-board .board-item {
    padding: 16px 0;
  }

  /* ----------------------------------------------------------------
     12. 갤러리 섹션
     ---------------------------------------------------------------- */
  .section-pictures {
    padding: 50px 60px;
  }

  /* ----------------------------------------------------------------
     13. footer
     ---------------------------------------------------------------- */
  footer .footer-wrap {
    max-width: 1280px;
    margin: 0 auto;
  }
  footer {
    padding: 40px 60px;
  }
}

/* ----------------------------------------------------------------
   중간 태블릿 (768px ~ 1023px)
   ---------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
  html, body {
    max-width: 100%;
    background-color: #e8ecf0;
  }

  #appCapsule {
    max-width: 768px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  }

  .ui-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
  }
  .ui-gallery .gallery-item {
    width: 100%;
  }
}
