:root {
    --primary-color: #325ea8;
    --secondary-color: #329ea8;
    --accent-color: #325ba8;
    --gray-dark: #596375;
    --gray-light: #e6e6e6;
    --white: #ffffff;
    --black: #000000;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    color: var(--gray-dark);
    background-color: #f8f9fa;
    line-height: 1.4;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.text-9 { font-size: 9px !important; }
.text-10 { font-size: 10px !important; }
.text-11 { font-size: 11px !important; }
.text-12 { font-size: 12px !important; }
.text-14 { font-size: 14px !important; }

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

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-size: 11px;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-size: 11px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.text-primary {
    color: var(--primary-color) !important;
}

.badge {
    font-size: 10px;
    font-weight: 500;
}

.badge-primary {
    background-color: var(--primary-color);
}

.card {
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    background-color: var(--white);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px 6px 0 0 !important;
    font-weight: 600;
    padding: 10px 15px;
}

.card-body {
    padding: 15px;
}

.sticky-sidebar {
    position: sticky;
    top: 90px;
    z-index: 1000;
    height: calc(100vh - 90px);
    overflow-y: auto;
}

.stat-card {
    border-left: 3px solid var(--primary-color);
    padding: 10px;
    background: var(--white);
}

.match-card {
    transition: all 0.3s;
    padding: 10px 15px;
}

.match-card:hover {
    background-color: var(--gray-light);
}

.player-card {
    transition: all 0.3s;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 6px;
}

.player-card:hover {
    border-color: var(--primary-color);
}

.team-management-card {
    transition: all 0.3s;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 6px;
}

.team-management-card:hover {
    border-color: var(--primary-color);
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 10px;
}

.table td {
    vertical-align: middle;
    padding: 8px 10px;
}

.team-logo-sm {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.team-logo-md {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.score-badge {
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 15px;
    background-color: var(--primary-color);
    color: white;
    display: inline-block;
}

.list-group-item {
    padding: 10px 15px;
    border-color: var(--gray-light);
}

/* Slider Styles */
.slider-container {
    width: 100%;
    position: relative;
    margin-bottom: 20px;
}

.slider-image {
    object-fit: cover;
    width: 100%;
    height: 400px; /* Default height for desktop */
}

.carousel-control-prev, 
.carousel-control-next {
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 5%;
}

.slider-container:hover .carousel-control-prev,
.slider-container:hover .carousel-control-next {
    opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    background-size: 50%;
}

.carousel-indicators {
    margin-bottom: 10px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .slider-image {
        height: 100px !important; /* 100px height for mobile */
    }
    
    .carousel-control-prev, 
    .carousel-control-next {
        opacity: 0.5; /* Always show on mobile for better UX */
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
    
    .carousel-indicators {
        margin-bottom: 5px;
    }
    
    .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
    
    /* Footer mobile grid adjustments */
    .mobile-footer-title {
        margin-top: 15px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sticky-sidebar {
        position: relative;
        top: 0;
        height: auto;
    }
    
    .display-5 {
        font-size: 1.6rem;
    }
    
    .card-body {
        padding: 10px;
    }
    
    /* Mobile-specific styles */
    .mobile-view-more {
        display: block;
        text-align: center;
        margin-top: 10px;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    /* Mobile header styling */
    .navbar {
        background-color: var(--primary-color) !important;
    }
    
    .navbar-brand, .navbar-nav .nav-link {
        color: white !important;
    }
    
    .navbar-toggler {
        border-color: rgba(255,255,255,0.5);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    /* Slider adjustments for mobile */
    .slider-container {
        max-height: 300px !important;
    }
    
    .slider-image {
        height: 300px !important;
    }
    
    .carousel-control-prev, 
    .carousel-control-next {
        opacity: 0.5; /* Always show on mobile for better UX */
    }
}

@media (min-width: 769px) {
    .mobile-view-more {
        display: none !important;
    }
}

/* Animation for live matches */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.live-pulse {
    animation: pulse 2s infinite;
    color: #dc3545;
    font-weight: bold;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Form elements */
.form-label {
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 5px;
}

.form-control, .form-select {
    font-size: 11px;
    padding: 6px 10px;
    border: 1px solid var(--gray-light);
}

/* Navigation */
.navbar-brand {
    font-size: 18px;
}

.nav-link {
    font-size: 12px;
}

/* Pagination */
.pagination {
    margin-bottom: 0;
}

.page-link {
    font-size: 11px;
    padding: 5px 10px;
}

/* Alert */
.alert {
    font-size: 11px;
    padding: 8px 12px;
    margin-bottom: 15px;
}

/* Additional styles for new pages */

/* Club card styles */
.club-card {
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    transition: all 0.3s;
}

.club-card:hover {
    border-color: var(--primary-color);
}

/* League card styles */
.league-card {
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    transition: all 0.3s;
}

.league-card:hover {
    border-color: var(--primary-color);
}

/* Team card styles */
.team-card {
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    transition: all 0.3s;
}

.team-card:hover {
    border-color: var(--primary-color);
}

/* Modal styles */
.modal-content {
    border: none;
    border-radius: 8px;
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px 8px 0 0;
}

.modal-title {
    font-size: 14px;
}

/* Form styles */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(50, 94, 168, 0.25);
}

/* Badge variants */
.badge-info {
    background-color: var(--secondary-color);
}

.badge-success {
    background-color: #28a745;
}

.badge-danger {
    background-color: #dc3545;
}

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

/* Responsive adjustments for smaller screens */
@media (max-width: 576px) {
    .club-card, .league-card, .team-card {
        text-align: center;
    }
    
    .modal-dialog {
        margin: 10px;
    }
}

/* Animation for team cards */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.club-card, .league-card, .team-card {
    animation: fadeIn 0.5s ease-out;
}
