/* Mobile Responsive Styles for Main Website */

/* Mobile-first approach for main pages */
@media (max-width: 768px) {
  
  /* Global mobile adjustments */
  * {
    box-sizing: border-box;
  }
  
  body {
    font-size: 14px;
    line-height: 1.4;
    overflow-x: hidden;
  }
  
  /* Hide scrollbars on mobile for cleaner look */
  ::-webkit-scrollbar {
    width: 4px;
  }
  
  ::-webkit-scrollbar-track {
    background: #1a1a1a;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #ff8503;
    border-radius: 2px;
  }
  
  /* Header mobile optimization */
  .header {
    padding: 15px 20px;
    position: relative;
  }
  
  .header-top {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  
  .header-top .logo {
    font-size: 1.5rem;
  }
  
  .header-top .header-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  
  .header-top .btn {
    width: 100%;
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  /* Navigation mobile optimization */
  .navbar {
    flex-direction: column;
    padding: 15px 20px;
    gap: 15px;
  }
  
  .navbar-list {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  
  .navbar-link {
    padding: 12px 15px;
    text-align: center;
    border-radius: 5px;
    background: rgba(255, 133, 3, 0.1);
    transition: background 0.3s ease;
  }
  
  .navbar-link:hover {
    background: rgba(255, 133, 3, 0.2);
  }
  
  /* Hero section mobile optimization */
  .hero {
    padding: 40px 20px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .hero-text {
    font-size: 0.9rem;
    margin-bottom: 25px;
  }
  
  .hero-banner {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
  }
  
  .hero-form {
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
  }
  
  .hero-form .form-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 0.9rem;
  }
  
  .hero-form .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  /* About section mobile optimization */
  .about {
    padding: 40px 20px;
  }
  
  .about-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .about-text {
    text-align: center;
  }
  
  .about-text .section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  
  .about-text .section-text {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  
  .about-banner {
    max-width: 100%;
    height: auto;
  }
  
  /* Features section mobile optimization */
  .features {
    padding: 40px 20px;
  }
  
  .features-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .features-item {
    padding: 20px;
    text-align: center;
  }
  
  .features-item .item-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
  }
  
  .features-item .item-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .features-item .item-text {
    font-size: 0.9rem;
  }
  
  /* Tournaments section mobile optimization */
  .tournaments {
    padding: 40px 20px;
  }
  
  .tournaments-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .tournaments-item {
    padding: 20px;
  }
  
  .tournaments-item .item-banner {
    height: 150px;
    margin-bottom: 15px;
  }
  
  .tournaments-item .item-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .tournaments-item .item-text {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  
  .tournaments-item .tournament-meta {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .tournaments-item .tournament-meta .meta-item {
    text-align: center;
  }
  
  .tournaments-item .tournament-meta .meta-item .meta-text {
    font-size: 0.8rem;
  }
  
  .tournaments-item .tournament-meta .meta-item .meta-data {
    font-size: 0.9rem;
  }
  
  /* Teams section mobile optimization */
  .teams {
    padding: 40px 20px;
  }
  
  .teams-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .teams-item {
    padding: 20px;
    text-align: center;
  }
  
  .teams-item .item-banner {
    height: 150px;
    margin-bottom: 15px;
  }
  
  .teams-item .item-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .teams-item .item-text {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  
  .teams-item .team-meta {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .teams-item .team-meta .meta-item {
    text-align: center;
  }
  
  .teams-item .team-meta .meta-item .meta-text {
    font-size: 0.8rem;
  }
  
  .teams-item .team-meta .meta-item .meta-data {
    font-size: 0.9rem;
  }
  
  /* Footer mobile optimization */
  .footer {
    padding: 40px 20px 20px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-brand {
    text-align: center;
  }
  
  .footer-brand .logo {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .footer-brand .footer-text {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  
  .footer-social-list {
    justify-content: center;
    gap: 15px;
  }
  
  .footer-social-link {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .footer-list {
    text-align: center;
  }
  
  .footer-list .footer-list-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }
  
  .footer-list .footer-link {
    font-size: 0.9rem;
    padding: 8px 0;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding-top: 20px;
  }
  
  .footer-bottom .copyright {
    font-size: 0.8rem;
  }
  
  .footer-bottom .footer-bottom-link {
    font-size: 0.8rem;
  }
  
  /* 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: 12px 15px;
    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: 12px 20px;
    font-size: 0.9rem;
    border-radius: 5px;
    width: 100%;
    text-align: center;
    margin: 5px 0;
  }
  
  .btn-group {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn-group .btn {
    width: 100%;
    margin: 0;
  }
  
  /* Cards mobile optimization */
  .card {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .card-header {
    margin-bottom: 15px;
  }
  
  .card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .card-text {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  
  /* Tables mobile optimization */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .table-responsive table {
    min-width: 500px;
    font-size: 0.8rem;
  }
  
  .table-responsive th,
  .table-responsive td {
    padding: 8px 6px;
    white-space: nowrap;
  }
  
  /* Mobile-specific utility classes */
  .mobile-full-width {
    width: 100%;
  }
  
  .mobile-center {
    text-align: center;
  }
  
  .mobile-padding {
    padding: 15px;
  }
  
  .mobile-margin {
    margin: 15px;
  }
  
  .mobile-hidden {
    display: none;
  }
  
  .mobile-visible {
    display: block;
  }
  
  /* 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 */
  .table-responsive::-webkit-scrollbar {
    height: 4px;
  }
  
  .table-responsive::-webkit-scrollbar-track {
    background: #1a1a1a;
  }
  
  .table-responsive::-webkit-scrollbar-thumb {
    background: #ff8503;
    border-radius: 2px;
  }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .features-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tournaments-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .teams-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large mobile devices */
@media (max-width: 480px) {
  .hero {
    padding: 30px 15px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .card {
    padding: 15px;
  }
  
  .btn {
    padding: 10px 15px;
    font-size: 0.8rem;
  }
}

/* Mobile landscape orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 20px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .navbar {
    padding: 10px 20px;
  }
  
  .navbar-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
}
