/* Custom CSS for Tournament Website */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Committee Cards */
.committee-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.committee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.committee-icon {
    transition: transform 0.3s ease;
}

.committee-card:hover .committee-icon {
    transform: scale(1.1);
}

.committee-card .badge {
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
}

.committee-card .alert {
    border-radius: 8px;
    padding: 0.75rem;
}

.committee-card .alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    border-left: 3px solid var(--info-color);
}

.committee-card .alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 3px solid var(--warning-color);
}

/* Team Cards */
.team-card {
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--secondary-color);
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Contact Form */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Member Photos */
.rounded-circle {
    border: 3px solid var(--primary-color);
}

/* Badges */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 !important;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .committee-card, .team-card {
        margin-bottom: 1.5rem;
    }
}

/* Loading Animation */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-request.htmx-indicator {
    display: inline-block;
}

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

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

/* List group styling */
.list-group-item {
    border: none;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.3s ease;
}

.list-group-item:hover {
    background-color: var(--light-color);
}

.list-group-item:last-child {
    border-bottom: none;
}