/* Desktop Responsive Design - TeamSchedule */
/* Applied only for screens ≥ 1024px wide */

@media (min-width: 1024px) {
  
  /* ========================================
     LAYOUT STRUCTURE OVERRIDES
     ======================================== */
  
  /* Convert intro screen to two-column grid layout */
  .intro-screen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    align-items: center;
    justify-items: stretch;
    gap: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: hidden;
  }
  
  /* Add gradient background overlay */
  .intro-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(225deg, #fff 0%, var(--brand-blue) 100%);
    z-index: 1;
  }
  
  /* Left column: Words and woman poster combined */
  .words-container {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0;
    padding: 4rem 2rem 4rem 6rem;
    z-index: 3;
  }
  
  .words-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.1) 0%, 
                rgba(255, 255, 255, 0.05) 50%, 
                transparent 100%);
    z-index: -1;
    border-radius: 0 50% 0 0;
  }
  
  /* Woman poster - starts off-screen to the right */
  .woman-poster {
    grid-column: 1;
    grid-row: 1;
    position: absolute;
    width: 70%;
    max-width: none;
    height: auto;
    left: 0;
    top: 60%;
    transform: translateY(-50%) translateX(100vw) rotate(-5deg);
    opacity: 1;
    z-index: 5;
    pointer-events: none;
  }
  
  /* When .visible class is added, use keyframe animation */
  .woman-poster.visible {
    animation: woman-swipe-in 0.9s cubic-bezier(0.7,0,0.3,1) forwards;
  }
  

  
  /* ========================================
     TYPOGRAPHY OVERRIDES
     ======================================== */
  
  /* Remove rotation and constrain sizing for desktop */
  .intro-word {
    transform: none !important;
    text-align: left;
    width: auto;
    margin: 0 0 0.5rem 0;
    line-height: 0.9;
    position: relative;
    z-index: 3;
    opacity: 1;
  }
  
  /* Animation for when .visible class is added */
  .intro-word:not(.visible) {
    transform: translateX(-100vw) !important;
    opacity: 0;
  }
  
  .intro-word.visible {
    animation: rotate-in 0.8s cubic-bezier(0.7,0,0.3,1) forwards;
  }
  
  /* Specific word sizing for desktop */
  .word-order {
    font-size: clamp(3rem, 10vw, 10rem);
  }
  
  .word-your {
    font-size: clamp(3rem, 10vw, 10rem);
    transform: none !important;
  }
  
  .word-teams {
    font-size: clamp(3rem, 10vw, 10rem);
  }
  
  .word-schedule {
    font-size: clamp(3rem, 10vw, 10rem);
    transform: none !important;
    margin-bottom: 2rem;
  }
  
  /* ========================================
     NAVIGATION OVERRIDES
     ======================================== */
  
  /* Keep hamburger menu visible on desktop and functioning like mobile */
  .hamburger-menu {
    display: flex;
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1001;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
  }
  
  /* Animation for when .visible class is added */
  .hamburger-menu:not(.visible) {
    opacity: 0;
    transform: translateY(-50px);
  }
  
  .hamburger-menu.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* ========================================
     SEARCH AND FORM OVERRIDES
     ======================================== */
  
  /* Logo sizing for desktop */
  .intro-logo {
    width: 240px;
    max-width: none;
    margin-bottom: 1rem;
    align-self: center;
  }
  
  /* Search input for desktop */
  .school-search {
    max-width: 100%;
    width: 100%;
    font-size: 1.2rem;
    padding: 1.2rem 1.5rem;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(19, 57, 106, 0.1);
    transition: all 0.2s ease;
  }
  
  .school-search:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(19, 57, 106, 0.2);
  }
  
  .selected-school-info {
    text-align: center;
    font-size: 1.1rem;
    padding: 1rem;
    background: rgba(19, 57, 106, 0.05);
    border-radius: 8px;
    margin-top: 1rem;
  }
  
  .search-results {
    position: absolute;
    left: 0;
    right: 0;
    width: 30%;
    max-width: none;
    transform: none;
    margin: 0.5rem auto;
    border-radius: 8px;
  }
  
  /* ========================================
     ANIMATION OVERRIDES
     ======================================== */
  
  /* Desktop word animation: slide in from left */
  @keyframes rotate-in {
    from {
      transform: translateX(-100vw);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  /* Desktop woman poster animation: slide in from right - position only */
  @keyframes woman-swipe-in {
    0% {
      transform: translateY(-50%) translateX(100vw) rotate(-5deg);
    }
    100% {
      transform: translateY(-50%) translateX(0) rotate(-5deg);
    }
  }
  
  /* Desktop logo container animation: slide in from below */
  @keyframes logo-slide-up {
    from {
      opacity: 0;
      transform: translateY(100vh);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .woman-poster.zoomed-in {
    width: 80%;
    max-width: none;
    left: 0;
    transform: translateY(-50%) scale(1.6) rotate(7deg) !important;
    opacity: 1;
    position: absolute;
  }
  
    /* ========================================
     SCHEDULE AND CONTENT OVERRIDES
     ======================================== */



  /* Preview container centered for desktop */
  #preview-container {
    position: fixed;
    top: 60%;
    left: 50%;
    transform: translate(-74%, -37%) rotate(10deg) scale(1.25);
    z-index: 2110;
    max-width: 100vw;
    max-height: 101vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #preview-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  }

  /* Workflow container desktop constraints */
  #workflowContainer {
    max-height: 100vh; /* No safe area needed on desktop */
  }
  
  .workflow-content-area {
    max-height: calc(100vh - 140px); /* Account for header and padding */
    overflow-y: auto;
  }

  /* Schedule container adjustments for desktop */
  .schedule-table-container {
    max-height: 60vh;
    margin-bottom: 2rem;
    padding-bottom: 200px !important;
  }

  /* Ensure content areas have enough bottom padding for workflow container */
  .schedule-container {
    padding-bottom: 200px !important;
    margin-bottom: 20px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
  }

  /* Ensure sections have proper desktop scrolling */
  #schedule,
  #payment {
    padding-bottom: 250px !important;
    overflow-y: auto;
  }
  
  .game-box {
    margin-bottom: 1rem;
    border-radius: 8px;
  }
  
  /* Selection buttons for desktop */
  .selection-btn {
    max-width: 100%;
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
  }
  
  .sport-buttons-container {
    max-height: 50vh;
    gap: 0.5rem;
  }
  
  /* Order buttons for desktop */
  .order-btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 8px;
  }
  
  /* Back icon adjustments */
  .back-icon {
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    backdrop-filter: blur(10px);
  }
  
  .back-icon svg {
    width: 24px;
    height: 24px;
  }
  
  /* ========================================
     RESPONSIVE BREAKPOINTS
     ======================================== */
  
  /* Large desktop adjustments */
  @media (min-width: 1400px) {
    .words-container {
      padding: 4rem 2rem 4rem 8rem;
    }
    
    .woman-poster {
      width: 75%;
      left: 0;
    }
    

    
    .word-order {
      font-size: clamp(3rem, 10vw, 10rem);
    }
    
    .word-your {
      font-size: clamp(3rem, 10vw, 10rem);
    }
    
    .word-teams {
      font-size: clamp(3rem, 10vw, 10rem);
    }
    
    .word-schedule {
      font-size: clamp(3rem, 10vw, 10rem);
    }
  }
  
  /* Ultra-wide desktop adjustments */
  @media (min-width: 1800px) {
    .words-container {
      padding: 4rem 2rem 4rem 10rem;
    }
    
    .woman-poster {
      width: 80%;
      left: 0;
    }
    

  }
  
}

/* ========================================
   TABLET BRIDGE STYLES (768px - 1023px)
   ======================================== */

@media (min-width: 768px) and (max-width: 1023px) {
  /* Improve tablet experience without full desktop layout */
  
  .intro-word {
    font-size: 8vw;
  }
  
  .word-order {
    font-size: 20vw;
  }
  
  .word-your {
    font-size: 25vw;
  }
  
  .word-teams {
    font-size: 18vw;
  }
  
  .word-schedule {
    font-size: 14vw;
  }
  
  .woman-poster {
    width: 120vw;
    max-width: 120vw;
  }
  

  
  .school-search {
    max-width: 450px;
  }
} 