/* Responsive media queries per Danimarca Cup */

/* Mobile devices (portrait and landscape) */
@media (max-width: 767px) {
    .container, 
    .groups-container, 
    .calendar-container {
        width: 100%;
        padding: 0 15px;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .navbar-brand {
        margin-bottom: 10px;
    }
    
    .group-table {
        overflow-x: auto;
        width: 100%;
    }
    
    .modern-table {
        font-size: 0.9rem;
    }
    
    .calendar-header h1 {
        font-size: 1.8rem;
    }
    
    .tabs-container {
        flex-direction: column;
    }
    
    .tab {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Tablets and small laptops */
@media (min-width: 768px) and (max-width: 1023px) {
    .container, 
    .groups-container, 
    .calendar-container {
        width: 95%;
        max-width: none;
    }
    
    .modern-table {
        font-size: 0.95rem;
    }
}

/* Large devices (laptops, desktops) */
@media (min-width: 1024px) {
    .container, 
    .groups-container, 
    .calendar-container {
        max-width: 1200px;
    }
}

/* Print styles for better printing of schedules and results */
@media print {
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    .navbar, .footer, button, .tab, .pagination {
        display: none !important;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
    
    .container, 
    .groups-container, 
    .calendar-container {
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .modern-table {
        border-collapse: collapse;
        width: 100%;
    }
    
    .modern-table th, 
    .modern-table td {
        border: 1px solid #000;
    }
    
    .group-section {
        page-break-inside: avoid;
    }
}
