/* Custom CSS for Pickleball Teams Website */

* {
    font-family: 'Inter', sans-serif;
}

/* Hero Section */
/* .hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
} */

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-banner img {
    margin-top: 0px;
    width: 100%;
    /* height: 540px; */
    object-fit: cover;
    /* crop image to fit nicely */
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero-banner img {
        height: 280px;
        /* smaller banner for mobile */
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}


/* Team Cards */
.team-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    border: none;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.team-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #198754;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #198754;
    margin: 0 auto;
}

.team-header {
    background: linear-gradient(135deg, #3F51B5 0%, #313e84 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.owner-name {
    font-size: 0.9rem;
    opacity: 0.9;
}

.players-section {
    padding: 1.5rem;
}

.player-slot {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid #dee2e6;
    transition: all 0.3s ease;
    min-height: 45px;
    display: flex;
    align-items: center;
}

.player-slot.captain {
    background: linear-gradient(135deg, #fff3cd 0%, #fef7e6 100%);
    border-left-color: #ffc107;
}

.player-slot.vice-captain {
    background: linear-gradient(135deg, #d1ecf1 0%, #e7f3ff 100%);
    border-left-color: #17a2b8;
}

.player-slot.filled {
    background: linear-gradient(135deg, #d4edda 0%, #e8f5e8 100%);
    border-left-color: #198754;
}

.player-slot.empty {
    background: #f8f9fa;
    border-left-color: #dee2e6;
    color: #6c757d;
    font-style: italic;
}

.position-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-left: auto;
}

.position-badge.captain {
    background: #ffc107;
    color: #000;
}

.position-badge.vice-captain {
    background: #17a2b8;
    color: #fff;
}

.manage-btn {
    width: 100%;
    margin-top: 1rem;
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.manage-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

/* Modal Styling */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: linear-gradient(135deg, #3F51B5 0%, #313e84 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.btn-close {
    filter: invert(1);
}

/* Player Management Form */
.player-input-group {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #198754;
}

.player-input-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.form-select {
    border-radius: 6px;
}

/* Loading Animation */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-card {
        margin-bottom: 1.5rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .team-logo {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .players-section {
        padding: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #198754;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #157347;
}

/* Animation for cards appearing */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Password section styling */
#password-section {
    text-align: center;
    padding: 2rem;
}

#password-section .form-control {
    max-width: 300px;
    margin: 0 auto 1rem auto;
}

/* Alert styling */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #0f5132;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #842029;
}

.bg-custom {
    background: #313e84;
}

.text-indigo {
    color: #313e84;
}

.btn-success {
    background-color: #313e84;
}

/* #fixtures {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
}

#fixtures .card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  color: #fff;
} */

#fixtures {
  background: url('/images/stadium-bg.jpg') center/cover no-repeat;
  color: #fff;
}

#fixtures .card {
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: 1px solid #444;
}




