/* Google Fonts are now loaded in the HTML head for better performance */

/* Main styles for The Netball Umpire website */

body {
    font-family: 'Fredoka', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: white !important;
}

.navbar-brand {
    font-weight: bold;
    color: #333;
    font-size: 1.5rem;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.home-container {
    width: 90vw;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.home-container .col-md-6 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

.home-container .alert-info {
    text-align: center;
}

/* Enhanced home page styles */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0 0 50px 50px;
    margin-top: -1.5rem;
}

.feature-card {
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.feature-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
}

.stats-section {
    border: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.stat-item {
    padding: 20px;
}

.stat-item:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.cta-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3);
}

.btn {
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border-color: #0d6efd;
}

.btn-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    border: none;
}

.btn-outline-success:hover {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    border-color: #198754;
}

.btn-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%);
    border: none;
}

.btn-outline-info:hover {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%);
    border-color: #0dcaf0;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    border: none;
}

.btn-outline-warning:hover {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    border-color: #ffc107;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .hero-section {
        border-radius: 0 0 30px 30px;
        margin-top: 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .stat-item {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 10px;
    }
    
    .hero-section .container {
        padding: 20px 15px;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
}

/* Additional animations and effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

/* Accessibility improvements */
.btn:focus,
.feature-card:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Z-index fixes are now handled inline in individual templates for consistency */

/* Ensure strong tags work in lead paragraphs */
.lead strong {
    font-weight: 700 !important;
}

/* Game management action colours (shared with Rule 18 / Rule 19) */
.bg-orange { background-color: #fd7e14 !important; }
.text-orange-dark { color: #cc5500 !important; }
.border-orange { border-color: #fd7e14 !important; }

.bg-danger-light { background-color: #e74c3c !important; }
.text-danger-light { color: #e74c3c !important; }
.border-danger-light { border-color: #e74c3c !important; }

.bg-dark-red { background-color: #8b0000 !important; }
.text-dark-red { color: #8b0000 !important; }
.border-dark-red { border-color: #8b0000 !important; }

/* Table-row tinted variants matching the above (parallel to Bootstrap's
   table-warning / table-info / table-danger). */
.table-orange,
.table-orange > th,
.table-orange > td { background-color: #ffe2cc !important; }

.table-danger-light,
.table-danger-light > th,
.table-danger-light > td { background-color: #fadbd8 !important; }

/* Add more custom styles as needed */