/* Custom styles for Thursday Golf League - Far Oaks Inspired */

body {
    background: linear-gradient(135deg, #f4f7f0 0%, #e8f1e0 100%);
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #2d4a2b;
    min-height: 100vh;
}

/* Golf course background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(76, 129, 63, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 183, 89, 0.08) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.6rem;
    color: #2d4a2b !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.navbar {
    background: linear-gradient(135deg, #4c813f 0%, #6ba556 100%) !important;
    box-shadow: 0 2px 15px rgba(76, 129, 63, 0.3);
    border-bottom: 3px solid #8bb759;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #8bb759;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
    left: 0;
}

.card {
    border: none;
    box-shadow: 0 8px 25px rgba(76, 129, 63, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(76, 129, 63, 0.2);
}

.card-header {
    background: linear-gradient(135deg, #4c813f 0%, #6ba556 100%);
    color: white;
    border-bottom: none;
    border-radius: 12px 12px 0 0 !important;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #8bb759, #a8cc6b, #8bb759);
}

.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    background: linear-gradient(135deg, #f4f7f0 0%, #e8f1e0 100%);
    font-weight: 600;
    color: #2d4a2b;
    border-bottom: 2px solid #8bb759;
}

.table-hover tbody tr:hover {
    background-color: rgba(139, 183, 89, 0.15);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

.table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(139, 183, 89, 0.2);
}

.badge {
    font-size: 0.875em;
    padding: 0.5em 0.8em;
    border-radius: 20px;
    font-weight: 600;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%) !important;
    color: #2d4a2b;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
}

.btn {
    border-radius: 25px;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-success,
.btn-primary {
    background: linear-gradient(135deg, #4c813f 0%, #6ba556 100%);
    border-color: #4c813f;
    box-shadow: 0 4px 15px rgba(76, 129, 63, 0.3);
}

.btn-success:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, #3d6632 0%, #5a9448 100%);
    border-color: #3d6632;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 129, 63, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #2d4a2b;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.section {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.standings-row {
    transition: all 0.2s ease;
}

.standings-row:hover {
    transform: translateX(5px);
}

.handicap-positive {
    color: #c44536;
    font-weight: 600;
}

.handicap-negative {
    color: #4c813f;
    font-weight: 600;
}

.handicap-zero {
    color: #6c757d;
    font-weight: 500;
}

.search-highlight {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 3px 6px;
    border-radius: 6px;
    font-weight: 600;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(76, 129, 63, 0.2);
    border-top: 3px solid #4c813f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sync-status {
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.sync-success {
    background: linear-gradient(135deg, #d1e7dd 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #4c813f;
}

.sync-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #c44536;
}

.sync-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

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

::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #f4f7f0 0%, #e8f1e0 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4c813f 0%, #6ba556 100%);
    border-radius: 10px;
    border: 2px solid #f4f7f0;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #3d6632 0%, #5a9448 100%);
}

/* Golf-themed section headers */
.section h2 {
    color: #2d4a2b;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 10px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4c813f, #8bb759);
    border-radius: 2px;
}

/* Enhanced container styling */
.container {
    position: relative;
    z-index: 1;
}

/* Modal enhancements */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(76, 129, 63, 0.2);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.modal-header {
    background: linear-gradient(135deg, #4c813f 0%, #6ba556 100%);
    color: white;
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.form-control:focus {
    border-color: #8bb759;
    box-shadow: 0 0 0 0.2rem rgba(139, 183, 89, 0.25);
}

.form-select:focus {
    border-color: #8bb759;
    box-shadow: 0 0 0 0.2rem rgba(139, 183, 89, 0.25);
}

/* Input field styling */
.form-control,
.form-select {
    border: 2px solid rgba(139, 183, 89, 0.3);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:hover,
.form-select:hover {
    border-color: rgba(139, 183, 89, 0.5);
}

/* List group styling for search results */
.list-group-item {
    border: 1px solid rgba(139, 183, 89, 0.2);
    border-radius: 8px !important;
    margin-bottom: 5px;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: rgba(139, 183, 89, 0.1);
    transform: translateX(5px);
    border-color: #8bb759;
} 