/* Custom CSS for Community Platform */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 0.375rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}
.text-muted {
    --bs-text-opacity: 1;
    color: var(--secondary-color) !important;
}
/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    transition: color 0.15s ease-in-out;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Cards */
.card {
    border: none;
    box-shadow: var(--box-shadow);
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Community Cards */
.community-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.community-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
}

.member-count {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

/* Event Cards */
.event-card {
    border-left: 4px solid var(--primary-color);
}

.event-date {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    border-radius: var(--border-radius);
    padding: 0.5rem;
    text-align: center;
    min-width: 80px;
}

.event-price {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004494);
    transform: translateY(-1px);
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
}

/* Form Controls */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

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

/* Search Bar */
.search-bar {
    background: white;
    border-radius: 2rem;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.search-bar .form-control {
    border: none;
    border-radius: 2rem 0 0 2rem;
}

.search-bar .btn {
    border-radius: 0 2rem 2rem 0;
    border: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Statistics */
.stats-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

.kyc-verified {
    background: var(--success-color);
    color: white;
}

.kyc-pending {
    background: var(--warning-color);
    color: var(--dark-color);
}

.kyc-rejected {
    background: var(--danger-color);
    color: white;
}

/* Profile Image */
.profile-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--box-shadow);
}

/* Wallet */
.wallet-balance {
    background: linear-gradient(135deg, var(--success-color), #1e7e34);
    color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.wallet-balance h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--light-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--primary-color);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: var(--box-shadow);
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(0,0,0,.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Notifications */
.notification-item {
    border-left: 4px solid var(--info-color);
    background: rgba(23, 162, 184, 0.1);
    transition: all 0.2s ease;
}

.notification-item:hover {
    background: rgba(23, 162, 184, 0.2);
}

.notification-item.unread {
    border-left-color: var(--primary-color);
    background: rgba(0, 123, 255, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .community-logo {
        width: 40px;
        height: 40px;
    }
    
    .profile-img {
        width: 80px;
        height: 80px;
    }
    
    .event-date {
        min-width: 60px;
        font-size: 0.875rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #e0e0e0;
        --card-bg: #2d2d2d;
        --border-color: #404040;
    }
    
    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }
    
    .card {
        background-color: var(--card-bg);
        border-color: var(--border-color);
    }
    
    .navbar-light {
        background-color: var(--card-bg) !important;
        border-color: var(--border-color);
    }
}

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

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

.slide-up {
    animation: slideUp 0.3s ease-out;
}

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

/* Utility Classes */
.cursor-pointer {
    cursor: pointer;
}

.text-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-primary-left {
    border-left: 4px solid var(--primary-color);
}

.shadow-hover:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transition: box-shadow 0.15s ease-in-out;
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
.event-card {
            transition: transform 0.2s, box-shadow 0.2s;
            border: none;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .event-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        }
        
        .event-image {
            height: 200px;
            object-fit: cover;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        
        .event-image.placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 3rem;
        }
        
        .event-date-badge {
            position: absolute;
            top: 15px;
            left: 15px;
            background: rgba(255, 255, 255, 0.95);
            padding: 8px 12px;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .price-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(0, 123, 255, 0.9);
            color: white;
            padding: 5px 12px;
            border-radius: 15px;
            font-weight: bold;
        }
        
        .search-section {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 60px 0;
            margin-bottom: 40px;
        }
        
        .filter-card {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
        }
        
        .quick-filter-tags a {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
            text-decoration: none;
            padding: 5px 12px;
            border-radius: 15px;
            font-size: 0.85rem;
            transition: all 0.2s;
        }
        
        .quick-filter-tags a:hover {
            background: rgba(255, 255, 255, 0.3);
            color: white;
        }
        
        .service-card {
            transition: transform 0.2s, box-shadow 0.2s;
            height: 100%;
        }
        
        .service-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        }
        
        .service-image {
            height: 200px;
            object-fit: cover;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        
        .service-image.placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 3rem;
        }
        
        .price-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(0,0,0,0.8);
            color: white;
            padding: 5px 10px;
            border-radius: 20px;
            font-weight: bold;
        }
        
        .provider-info {
            display: flex;
            align-items: center;
            margin-top: 10px;
        }
        
        .provider-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            margin-right: 8px;
        }
        
        .rating-stars {
            color: #ffc107;
        }
        
        .filter-sidebar {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            height: fit-content;
        }
        
        .service-type-badge {
            font-size: 0.75rem;
            padding: 4px 8px;
        }
        
        .hero-section {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 60px 0;
            margin-bottom: 40px;
        }
.event-header {
            background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5)), url('uploads/events/<?= htmlspecialchars($eventDetails['cover_image']) ?>');
            background-size: cover;
            background-position: center;
            color: white;
            padding: 80px 0;
            margin-top: -20px;
        }
        
        .event-header.no-image {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        
        .event-card {
            margin-top: -50px;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .price-badge {
            background: linear-gradient(135deg, #28a745, #20c997);
            color: white;
            padding: 10px 20px;
            border-radius: 25px;
            font-weight: bold;
            font-size: 1.2rem;
        }
        
        .price-badge.paid {
            background: linear-gradient(135deg, #007bff, #0056b3);
        }
        
        .organizer-card {
            border: none;
            background: #f8f9fa;
            border-radius: 10px;
        }
        
        .ticket-info {
            background: #e3f2fd;
            border-left: 4px solid #2196f3;
            padding: 15px;
            border-radius: 8px;
        }
        
        .booking-form {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 25px;
        }
        
        .info-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #e3f2fd;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #1976d2;
        }
        /* This is more specific than Bootstrap's ".btn" rule */
.my-custom-button {
  background-color: #ff00ff; /* A custom color */
  border-radius: 20px;
}
