/* Mobile Responsive Styles for Infinity League */

/* Mobile-first approach */
@media (max-width: 768px) {
  
  /* Global mobile adjustments */
  * {
    box-sizing: border-box;
  }
  
  body {
    font-size: 14px;
    line-height: 1.4;
  }
  
  /* Hide scrollbars on mobile for cleaner look */
  ::-webkit-scrollbar {
    width: 4px;
  }
  
  ::-webkit-scrollbar-track {
    background: #1a1a1a;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #ff8503;
    border-radius: 2px;
  }
  
  /* Admin Dashboard Mobile Styles */
  .admin-dashboard {
    flex-direction: column;
    min-height: 100vh;
  }
  
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: fixed;
    top: 0;
    left: -100%;
    z-index: 1000;
    transition: left 0.3s ease;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    max-height: 100vh;
  }
  
  .admin-sidebar.active {
    left: 0;
  }
  
  .admin-sidebar .logo {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 133, 3, 0.2);
  }
  
  .admin-sidebar .logo h2 {
    font-size: 1.2rem;
  }
  
  .admin-sidebar .nav-section {
    padding: 10px 0;
  }
  
  .admin-sidebar .nav-section h3 {
    font-size: 0.8rem;
    padding: 8px 20px;
    margin: 0;
  }
  
  .admin-sidebar .nav-item {
    padding: 12px 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .admin-sidebar .nav-item ion-icon {
    font-size: 1.1rem;
  }
  
  /* Mobile menu toggle */
  .mobile-menu-toggle {
    display: block;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: #ff8503;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
  }
  
  .admin-content {
    width: 100%;
    margin-left: 0;
    padding: 70px 15px 20px;
    min-height: 100vh;
  }
  
  .admin-header {
    padding: 15px;
    margin-bottom: 20px;
    background: rgba(26, 26, 26, 0.9);
    border-radius: 10px;
    backdrop-filter: blur(10px);
  }
  
  .admin-header h1 {
    font-size: 1.5rem;
    margin: 0 0 5px 0;
  }
  
  .admin-header p {
    font-size: 0.9rem;
    margin: 0;
  }
  
  /* Tables mobile optimization */
  .admin-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .admin-table table {
    min-width: 600px;
    font-size: 0.8rem;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 8px 6px;
    white-space: nowrap;
  }
  
  .admin-table .btn {
    padding: 6px 10px;
    font-size: 0.7rem;
    margin: 2px;
  }
  
  /* Forms mobile optimization */
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
    border-radius: 5px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .form-row .form-group {
    width: 100%;
  }
  
  /* Buttons mobile optimization */
  .btn {
    padding: 10px 15px;
    font-size: 0.9rem;
    border-radius: 5px;
    margin: 5px 0;
    width: 100%;
    text-align: center;
  }
  
  .btn-group {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn-group .btn {
    width: 100%;
    margin: 0;
  }
  
  /* Modals mobile optimization */
  .modal {
    padding: 20px 15px;
    margin: 10px;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .modal-header {
    padding: 15px 0;
    margin-bottom: 20px;
  }
  
  .modal-header h2 {
    font-size: 1.3rem;
  }
  
  .modal-content {
    padding: 0;
  }
  
  /* Score reports mobile optimization */
  .tournament-score-reports-container {
    padding: 10px;
  }
  
  .tournament-card {
    margin-bottom: 15px;
    padding: 15px;
  }
  
  .tournament-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .tournament-card .tournament-info {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }
  
  .tournament-card .tournament-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .tournament-card .stat-item {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 8px;
    background: rgba(255, 133, 3, 0.1);
    border-radius: 5px;
  }
  
  .tournament-card .stat-item .stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff8503;
  }
  
  .tournament-card .stat-item .stat-label {
    font-size: 0.7rem;
    color: #ccc;
  }
  
  /* Score report cards mobile optimization */
  .score-report-card {
    margin-bottom: 15px;
    padding: 15px;
  }
  
  .score-report-card .report-header {
    margin-bottom: 10px;
  }
  
  .score-report-card .report-header h4 {
    font-size: 1rem;
    margin-bottom: 5px;
  }
  
  .score-report-card .report-info {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }
  
  .score-report-card .report-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .score-report-card .stat-item {
    flex: 1;
    min-width: 60px;
    text-align: center;
    padding: 6px;
    background: rgba(255, 133, 3, 0.1);
    border-radius: 3px;
  }
  
  .score-report-card .stat-item .stat-value {
    font-size: 1rem;
    font-weight: bold;
    color: #ff8503;
  }
  
  .score-report-card .stat-item .stat-label {
    font-size: 0.6rem;
    color: #ccc;
  }
  
  /* Team cards mobile optimization */
  .team-card {
    margin-bottom: 15px;
    padding: 15px;
  }
  
  .team-card .team-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .team-card .team-logo {
    width: 50px;
    height: 50px;
    margin: 0 auto;
  }
  
  .team-card .team-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
  }
  
  .team-card .team-info p {
    font-size: 0.9rem;
  }
  
  /* Leaderboard mobile optimization */
  .leaderboard-container {
    padding: 10px;
  }
  
  .leaderboard-header {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .leaderboard-header h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  
  .leaderboard-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .leaderboard-table table {
    min-width: 500px;
    font-size: 0.8rem;
  }
  
  .leaderboard-table th,
  .leaderboard-table td {
    padding: 8px 4px;
  }
  
  .leaderboard-table .team-logo {
    width: 30px;
    height: 30px;
  }
  
  /* Navigation mobile optimization */
  .nav-item {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-item:hover {
    background: rgba(255, 133, 3, 0.1);
  }
  
  .nav-item.active {
    background: rgba(255, 133, 3, 0.2);
    border-left: 3px solid #ff8503;
  }
  
  /* Overlay for mobile menu */
  .mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  
  .mobile-overlay.active {
    display: block;
  }
  
  /* Hide desktop-only elements */
  .desktop-only {
    display: none;
  }
  
  /* Show mobile-only elements */
  .mobile-only {
    display: block;
  }
  
  /* Mobile-specific utility classes */
  .mobile-full-width {
    width: 100%;
  }
  
  .mobile-center {
    text-align: center;
  }
  
  .mobile-padding {
    padding: 15px;
  }
  
  .mobile-margin {
    margin: 15px;
  }
  
  /* Mobile form improvements */
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    transform: scale(1.02);
    transition: transform 0.2s ease;
  }
  
  /* Mobile button improvements */
  .btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  /* Mobile table improvements */
  .admin-table::-webkit-scrollbar {
    height: 4px;
  }
  
  .admin-table::-webkit-scrollbar-track {
    background: #1a1a1a;
  }
  
  .admin-table::-webkit-scrollbar-thumb {
    background: #ff8503;
    border-radius: 2px;
  }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .admin-sidebar {
    width: 200px;
  }
  
  .admin-content {
    margin-left: 200px;
  }
  
  .admin-table {
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

/* Large mobile devices */
@media (max-width: 480px) {
  .admin-content {
    padding: 60px 10px 15px;
  }
  
  .admin-header {
    padding: 10px;
    margin-bottom: 15px;
  }
  
  .admin-header h1 {
    font-size: 1.3rem;
  }
  
  .admin-table table {
    min-width: 500px;
    font-size: 0.75rem;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 6px 4px;
  }
  
  .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  .modal {
    margin: 5px;
    padding: 15px 10px;
  }
}

/* Mobile landscape orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .admin-sidebar {
    width: 60%;
    max-width: 300px;
  }
  
  .admin-content {
    padding: 50px 15px 15px;
  }
}
