/* Bury FC History Website Styles */

:root {
    --bury-blue: #17509e;
    --bury-white: #ffffff;
    --bury-light-blue: #4a8cc7;
    --bury-dark-blue: #123a73;
    --bury-gold: #ffd700;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bury-blue) 0%, var(--bury-light-blue) 100%);
    border-radius: 10px;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

/* Featured Player Card */
#featured-player {
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#featured-player.loaded {
    display: block;
    align-items: initial;
    justify-content: initial;
    padding: 20px;
}

#featured-player .text-center {
    width: 100%;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
}

.player-photo-container {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
}

.player-photo {
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Search Results */
.search-result-item {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

/* Statistics Cards */
.stat-item {
    padding: 1rem;
}

.stat-item h3 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-mini {
    padding: 0.5rem 0;
}

.stat-mini h6 {
    font-size: 1.2rem;
    font-weight: bold;
}

.stat-mini small {
    font-size: 0.8rem;
}

/* Player Profile Styles */
.player-image-container {
    position: relative;
}

#player-image {
    border: 3px solid #dee2e6;
    border-radius: 10px;
}

/* Match Results */
.match-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-left: 4px solid #28a745;
    background-color: #f8f9fa;
    margin-bottom: 0.5rem;
    border-radius: 0 5px 5px 0;
}

.match-result.loss {
    border-left-color: #dc3545;
}

.match-result.draw {
    border-left-color: #ffc107;
}

.score {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Transfer History */
.transfer-item {
    background-color: #f8f9fa;
    border-radius: 5px;
}

/* Season Cards */
.season-card {
    border-left: 4px solid var(--bury-blue);
}

.tier-section {
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 1rem;
}

/* Table Enhancements */
.table th {
    border-top: none;
    font-weight: 600;
    background-color: #f8f9fa;
}

.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

/* Loading States */
.spinner-border {
    margin: 2rem auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0 !important;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Custom Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Form Enhancements */
.form-control:focus,
.form-select:focus {
    border-color: var(--bury-light-blue);
    box-shadow: 0 0 0 0.2rem rgba(23, 80, 158, 0.25);
}

/* Button Enhancements */
.btn-primary {
    background-color: var(--bury-blue);
    border-color: var(--bury-blue);
}

.btn-primary:hover {
    background-color: var(--bury-dark-blue);
    border-color: var(--bury-dark-blue);
}

.btn-primary:focus,
.btn-primary:active {
    background-color: var(--bury-dark-blue);
    border-color: var(--bury-dark-blue);
    box-shadow: 0 0 0 0.2rem rgba(23, 80, 158, 0.25);
}

/* Footer */
footer {
    margin-top: auto;
    background-color: #f8f9fa !important;
    border-top: 1px solid #dee2e6;
}

/* Utility Classes */
.text-bury-blue {
    color: var(--bury-blue) !important;
}

.bg-bury-blue {
    background-color: var(--bury-blue) !important;
}

.border-bury-blue {
    border-color: var(--bury-blue) !important;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}