/* Mobile-First Responsive Design */

/* Mobile Jumbotron */
@media (max-width: 768px) {
    .jumbotron {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .jumbotron .form-group {
        margin-bottom: 15px;
    }
    
    .jumbotron .btn {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }
}

/* Mobile Table Improvements */
.standings-table {
    width: 100%;
    margin-top: 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.standings-table table {
    width: 100%;
    margin-bottom: 0;
}

.standings-table th {
    background: #3b3d3e;
    font-weight: 600;
    padding: 12px 8px;
    border-bottom: 2px solid #dee2e6;
}

.standings-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e9ecef;
}

.standings-table a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 768px) {
    .standings-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .standings-table table {
        min-width: 600px;
        font-size: 13px;
    }

    .dues-page .standings-table table {
        min-width: unset;
    }

    .standings-table th {
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .standings-table th:first-child,
    .standings-table td:first-child {
        position: sticky;
        left: 0;
        background: #333;
        z-index: 5;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    }

    .standings-table th:first-child {
        background: #3b3d3e;
        z-index: 15;
    }
}

/* Mobile Schedule Grid */
.schedule-grid {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 576px) {
    .schedule-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .schedule-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 769px) {
    .schedule-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Schedule Card Design */
.schedule-card {
    background: #3b3d3e;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.schedule-card .date-header {
    background: #073567;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 12px;
    text-align: center;
}

.schedule-card .match-item {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.schedule-card .match-item .tableName {
    font-style: italic;
    color: lightgray;
}

.schedule-card .match-item:last-child {
    border-bottom: none;
}

/* Mobile Header Image */
@media (max-width: 768px) {
    .headerImage {
        display: none;
    }
}

/* Container Improvements */
@media (max-width: 768px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .container.body-content {
        padding-bottom: 90px; /* Account for bottom nav */
    }
}

/* Home Page Cards */
.league-cards {
    display: grid;
    gap: 25px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .league-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (min-width: 769px) {
    .league-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.league-card {
    background: #333;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.league-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.league-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.league-card h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.league-card h2::before {
    content: '🎱';
    margin-right: 12px;
    font-size: 24px;
}

.league-card.tenball h2::before {
    content: '🎯';
}

.league-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.league-card .btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.league-card .btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.league-message {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #495057;
}

.home-jumbotron {
    background: linear-gradient(135deg, #2c3e50 0%, #3c556f 100%);
    color: white;
    text-align: center;
    padding: 60px 30px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.home-jumbotron h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.home-jumbotron .lead {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .home-jumbotron {
        padding: 40px 20px;
    }
    
    .home-jumbotron h1 {
        font-size: 2.2rem;
    }
    
    .home-jumbotron .lead {
        font-size: 1.1rem;
    }
}

/* Mobile Login Form */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 768px) {
    .login-container {
        padding: 15px;
        margin-top: 20px;
    }

    .login-form {
        background: #3b3d3e;
        border-radius: 8px;
        padding: 25px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .login-form h2 {
        text-align: center;
        margin-bottom: 25px;
        color: #fff;
    }
    
    .login-form .form-group {
        margin-bottom: 20px;
    }
    
    .login-form .form-control {
        height: 50px;
        font-size: 16px;
        border-radius: 6px;
        border: 2px solid #dee2e6;
        padding: 12px 15px;
    }
    
    .login-form .form-control:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    }
    
    .login-form .control-label {
        font-weight: 600;
        margin-bottom: 8px;
        display: block;
        color: #0056b3;
    }
    
    .login-form .btn {
        width: 100%;
        height: 50px;
        font-size: 18px;
        font-weight: 600;
        border-radius: 6px;
        margin-top: 10px;
    }
    
    .login-form .btn-primary {
        background-color: #007bff;
        border-color: #007bff;
    }
    
    .login-results {
        text-align: center;
        margin-top: 20px;
        padding: 15px;
        border-radius: 6px;
    }
    
    .login-results.error {
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }
    
    .login-results.success {
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }
}

