/* Mobile HUB League Page Styles */

@media (max-width: 768px) {
  /* ========================================
     Mobile League Hero
     ======================================== */
  .league-hero {
    height: 500px;
    margin-top: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
  }
  
  /* Add H.U.B. title at the top of hero */
  .league-hero::before {
    content: "H.U.B.";
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 28px;
    font-weight: 700;
    z-index: 3;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
  }
  
  .league-hero .hero-content {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0 var(--mobile-padding);
    z-index: 2;
  }
  
  .league-hero h1 {
    font-size: 36px;
    margin-bottom: 12px;
    line-height: 1.2;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    letter-spacing: -0.5px;
  }
  
  .hero-subtitle {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.4;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  }
  
  /* ========================================
     Mobile Overview Section
     ======================================== */
  .league-overview {
    padding: 40px 0;
    background: var(--light-gray);
  }
  
  .overview-content {
    padding: 0 var(--mobile-padding);
  }
  
  /* Mobile-only paragraph breaks */
  .mobile-break {
    display: block;
  }
  
  .mobile-break::before {
    content: "";
    display: block;
    margin-bottom: 16px;
  }
  
  .section-title {
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
    color: var(--text-primary);
    font-weight: 700;
  }
  
  .overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .overview-card {
    background: white;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .overview-card:active {
    transform: scale(0.98);
  }
  
  .overview-icon {
    font-size: 36px;
    margin-bottom: 8px;
  }
  
  .overview-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
  }
  
  .overview-label {
    font-size: 14px;
    color: var(--text-secondary);
  }
  
  /* ========================================
     Mobile League Sections
     ======================================== */
  .league-section {
    padding: 32px 0;
  }
  
  .section-content {
    padding: 0 var(--mobile-padding);
  }
  
  .section-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary);
    text-align: center;
  }
  
  .section-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
  }
  
  .section-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
  }
  
  .section-content li {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 8px;
  }
  
  /* ========================================
     Mobile Costs Section
     ======================================== */
  .costs-section {
    background: var(--light-gray);
  }
  
  .costs-content {
    display: block;
    padding: 0 var(--mobile-padding);
  }
  
  .cost-highlight {
    background: var(--primary);
    color: white;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 24px;
    transform: none;
  }
  
  .price-amount {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
  }
  
  .price-label {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 16px;
  }
  
  .price-details {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.4;
  }
  
  .cost-breakdown h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-primary);
  }
  
  /* ========================================
     Mobile Format Section
     ======================================== */
  .format-content {
    display: block;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  
  .format-times {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .format-times h3,
  .format-details h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--primary);
  }
  
  .time-slot {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .time-slot:last-child {
    border-bottom: none;
  }
  
  .time-slot strong {
    color: var(--text-primary);
    font-weight: 600;
  }
  
  .format-details ul {
    padding-left: 20px;
  }
  
  .format-details li {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.5;
  }
  
  /* ========================================
     Mobile CTA Section
     ======================================== */
  .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
  }
  
  .cta-buttons .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .btn-primary {
    background: var(--primary);
    color: white;
  }
  
  .btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
  }
  
  .cta-buttons .btn:active {
    transform: scale(0.98);
  }
  
  /* ========================================
     Mobile Details Section (if added)
     ======================================== */
  .details-container {
    display: block;
  }
  
  .details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
  }
  
  .price-card,
  .fixtures-card {
    position: static;
    margin: 0;
  }
  
  /* ========================================
     Remove Desktop-Only Elements
     ======================================== */
  .overview-highlights {
    display: none;
  }
  
  /* ========================================
     Mobile Info Buttons
     ======================================== */
  .info-buttons-wrapper {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    padding: 0 var(--mobile-padding);
  }
  
  .btn-info {
    width: 100%;
    padding: 14px 24px;
    font-size: 14px;
    min-width: unset;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
  }
  
  /* ========================================
     Mobile CTA Section Adjustments
     ======================================== */
  .league-cta {
    padding: 40px 0 80px;
  }
  
  .league-cta h2 {
    font-size: 28px;
    margin-bottom: 12px;
  }
  
  .league-cta .cta-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }
  
  .cta-options {
    flex-direction: column;
    gap: 20px;
  }
  
  .cta-option {
    width: 100%;
    padding: 24px 20px;
  }
  
  /* Make register buttons more button-like on mobile */
  .cta-option .btn-secondary {
    background-color: #324e8a;
    color: white;
    border: 2px solid #324e8a;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(50, 78, 138, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .cta-option .btn-secondary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(50, 78, 138, 0.2);
  }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
  .league-hero h1 {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 14px;
  }
  
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .price-amount {
    font-size: 40px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  
  /* Ensure PDF section is visible on mobile */
  .league-overview {
    padding: 20px 0;
    min-height: auto;
  }
  
  .league-overview .container {
    padding: 0 10px;
    max-width: 100%;
  }
  
  /* Mobile PDF Section */
  .mobile-pdf-section {
    padding: 20px 0;
  }
  
  .mobile-pdf-content {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
  }
  
  .mobile-pdf-content h2 {
    font-size: 24px;
    color: var(--hub-secondary);
    margin-bottom: 15px;
    font-weight: 700;
  }
  
  .mobile-pdf-content p {
    font-size: 16px;
    color: var(--medium-grey);
    margin-bottom: 25px;
    line-height: 1.5;
  }
  
  .mobile-pdf-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .mobile-pdf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  
  .btn-icon {
    font-size: 20px;
  }
  
  .mobile-pdf-btn.btn-primary {
    background-color: var(--hub-primary);
    color: white;
    border: 2px solid var(--hub-primary);
  }
  
  .mobile-pdf-btn.btn-secondary {
    background-color: transparent;
    color: var(--hub-primary);
    border: 2px solid var(--hub-primary);
  }
  
  .mobile-pdf-btn:active {
    transform: scale(0.98);
  }
}
