/* Component-specific styles */

/* Search and Stats Bar */
.search-stats-bar {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

/* Search input styling */
#searchInput {
    border-left: none;
    transition: all 0.3s ease;
}

#searchInput:focus {
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
    border-color: var(--sport-primary);
}

.input-group-text {
    border-right: none;
    background-color: white;
    border-color: #ced4da;
}

#searchInput:focus + .input-group-text,
.input-group:focus-within .input-group-text {
    border-color: var(--sport-primary);
}

/* Stats counter */
.stats-counter {
    padding: 8px 16px;
    border-radius: 8px;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.stats-counter strong {
    color: #1e40af;
}

/* Sort buttons */
.btn-group {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 6px;
}

.btn-group .btn {
    transition: all 0.3s ease;
}

.btn-group .btn:hover {
    background-color: #dbeafe;
}

.btn-group .btn.active {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Activity cards */
.activity-card {
    margin-bottom: 20px;
}

.course-card {
    border-left: 5px solid #2563eb;
}

.event-card {
    border-left: 5px solid #f59e0b;
}

.activity-type-badge {
    font-size: 0.9em;
    padding: 8px 15px;
    border-radius: 20px;
    margin-right: 10px;
    background: #2563eb;
    color: white;
}

/* Large badge variant for activity detail page */
.activity-type-badge.badge-lg {
    font-size: 1em;
    padding: 10px 20px;
    border-radius: 25px;
    margin-right: 15px;
    background: #2563eb;
    color: white;
}

.skill-level-badge {
    font-size: 0.8em;
    padding: 5px 10px;
    border-radius: 15px;
}

.price-tag {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
}

.event-type-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
}

.course-indicator {
    background: #2563eb;
    color: white;
}

.event-indicator {
    background: #f59e0b;
    color: white;
}

/* Filter section */
.filter-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filter-section.collapsed #filterContent {
    display: block;
}

.filter-section.collapsed.hide-filters #filterContent {
    display: none;
}

#toggleFilters {
    color: #2563eb;
    font-weight: 500;
}

#toggleFilters:hover {
    color: #1e40af;
}

#toggleFilters i {
    transition: transform 0.3s ease;
}

.filter-section.hide-filters #toggleFilters i {
    transform: rotate(-90deg);
}

/* Delete activity button */
.delete-activity {
    transition: all 0.3s ease;
}

.delete-activity:hover {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

/* Activity rating */
.activity-rating {
    margin-bottom: 10px;
}

.rating-stars {
    font-size: 1rem;
    margin-right: 8px;
}

.rating-text {
    font-size: 0.9rem;
    color: #64748b;
}

/* Tab navigation */
#viewTabs {
    border-bottom: 2px solid #2563eb;
    background: white;
    padding: 0;
    border-radius: 10px 10px 0 0;
}

#viewTabs .nav-item {
    margin-bottom: 0;
}

#viewTabs .nav-link {
    color: #64748b;
    font-weight: 500;
    padding: 15px 30px;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    background: transparent;
}

#viewTabs .nav-link:hover {
    color: #2563eb;
    background: #f1f5f9;
}

#viewTabs .nav-link.active {
    color: #2563eb;
    background: white;
    border-bottom: 3px solid #2563eb;
    font-weight: 600;
}

.tab-content {
    background: white;
    padding: 20px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Load more section */
#loadMoreContainer {
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

/* Load more button */
#loadMoreBtn {
    min-width: 250px;
    transition: all 0.3s ease;
    padding: 12px 24px;
    font-weight: 500;
}

#loadMoreBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-stats-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-stats-bar > div {
        width: 100%;
        max-width: none !important;
    }
    
    .btn-group {
        width: 100%;
        display: flex;
    }
    
    .btn-group .btn {
        flex: 1;
    }
    
    .stats-counter {
        width: 100%;
        justify-content: center;
    }
    
    #viewTabs .nav-link {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* Dashboard Activity Tabs */
#activityTabs {
    border-bottom: 2px solid #2563eb;
    background: white;
    padding: 0;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0 !important;
}

#activityTabs .nav-link {
    color: #000000;
    font-weight: 500;
    padding: 15px 30px;
    border: none;
    transition: all 0.3s ease;
    background: transparent;
}

#activityTabs .nav-link:hover {
    color: #2563eb;
    background: #f1f5f9;
}

#activityTabs .nav-link.active {
    color: #2563eb;
    background: white;
    border-bottom: 3px solid #2563eb;
    font-weight: 600;
}

#activityTabsContent {
    background: white;
    padding: 10px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    #activityTabs .nav-link {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* Action Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-width: 1.5px;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.btn:active {
    transform: scale(0.98);
}

.btn-sm {
    font-size: 0.8125rem;
    padding: 0.25rem 0.6rem;
    border-radius: 5px;
}

.btn-outline-primary {
    color: #2563eb;
    border-color: #2563eb;
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-outline-secondary {
    color: #64748b;
    border-color: #cbd5e1;
    background-color: transparent;
}

.btn-outline-secondary:hover {
    background-color: #64748b;
    border-color: #64748b;
    color: white;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3);
}

.btn-outline-warning {
    color: #f59e0b;
    border-color: #f59e0b;
    background-color: transparent;
}

.btn-outline-warning:hover {
    background-color: #f59e0b;
    border-color: #f59e0b;
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-outline-danger {
    color: #ef4444;
    border-color: #ef4444;
    background-color: transparent;
}

.btn-outline-danger:hover {
    background-color: #ef4444;
    border-color: #ef4444;
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-outline-info {
    color: #06b6d4;
    border-color: #06b6d4;
    background-color: transparent;
}

.btn-outline-info:hover {
    background-color: #06b6d4;
    border-color: #06b6d4;
    color: white;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

.btn-outline-success {
    color: #10b981;
    border-color: #10b981;
    background-color: transparent;
}

.btn-outline-success:hover {
    background-color: #10b981;
    border-color: #10b981;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Pulse animation for form validation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
