/* General Styles */
* {
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: #f8f9fa;
}

/* Navbar Styles */
.navbar {
    border-bottom: 1px solid #e9ecef;
}

.navbar-brand {
    font-size: 1.5rem;
}

/* Card Styles */
.card {
    border-radius: 10px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}

/* Button Styles */
.btn {
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: 600;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border-radius: 5px;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 80px 20px;
    margin-bottom: 3rem;
}

/* Statistics Cards */
.stats-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stats-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Profile Card */
.profile-card {
    position: relative;
    overflow: hidden;
}

.profile-card img {
    transition: transform 0.3s ease;
}

.profile-card:hover img {
    transform: scale(1.05);
}

.profile-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Message Styles */
.message-item {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

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

.message-item.unread {
    background-color: #e7f3ff;
}

.message-bubble {
    background-color: #e9ecef;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 70%;
    margin-bottom: 10px;
}

.message-bubble.sent {
    background-color: #667eea;
    color: white;
    margin-left: auto;
    text-align: right;
}

.message-bubble.received {
    background-color: #e9ecef;
    color: #333;
    margin-right: auto;
    text-align: left;
}

/* Notification Styles */
.notification-item {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

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

.notification-item.unread {
    background-color: #fff3cd;
}

/* Search Filters */
.filter-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Profile View */
.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    border-radius: 10px 10px 0 0;
}

.profile-picture {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.profile-info-item {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.profile-info-item:last-child {
    border-bottom: none;
}

.profile-info-label {
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 5px;
}

.profile-info-value {
    font-size: 1.1rem;
    color: #333;
}

/* Member list (home/search) */
.member-section-title{
    display:flex;
    align-items:center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.member-section-title .title{
    font-weight: 800;
    font-size: 1.05rem;
    color: #333;
    position: relative;
    padding-bottom: 8px;
}

.member-section-title .title:after{
    content:'';
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:3px;
    border-radius: 10px;
    background: #e83e8c;
}

.member-list{ display:flex; flex-direction:column; gap: 12px; }

.member-row{
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    padding: 14px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform .2s ease, box-shadow .2s ease;
}

.member-row:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.member-badge{
    position: absolute;
    top: 12px;
    left: 12px;
    background: #78c143;
    color: #fff;
    padding: 4px 10px;
    border-radius: 2px;
    font-size: .85rem;
    font-weight: 700;
}

.member-main{ display:flex; align-items:center; justify-content: space-between; gap: 12px; }

.member-avatar{
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f1f3f5;
    flex: 0 0 auto;
}

.member-info{ flex: 1 1 auto; min-width: 0; }

.member-name{
    font-weight: 800;
    color: #333;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-sub{
    color: #6c757d;
    font-size: .92rem;
    display:flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.member-meta{
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eef0f3;
    color: #6c757d;
    font-size: .92rem;
    display:flex;
    flex-wrap: wrap;
    gap: 16px;
}

.member-meta i{ color: #e83e8c; }

.member-row a.member-link{ color: inherit; text-decoration: none; display:block; }
.member-row a.member-link:hover{ color: inherit; }

/* Dashboard Stats */
.dashboard-stat {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.dashboard-stat i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.dashboard-stat h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Footer Styles */
footer {
    margin-top: 5rem;
}

footer a {
    text-decoration: none;
    transition: opacity 0.2s;
}

footer a:hover {
    opacity: 0.8;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    transition: transform 0.2s;
}

.social-links a:hover {
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .profile-picture {
        width: 150px;
        height: 150px;
    }
    
    .message-bubble {
        max-width: 85%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Loading Spinner */
.spinner-border-custom {
    width: 3rem;
    height: 3rem;
    border: 0.3em solid currentColor;
    border-right-color: transparent;
}

/* Badge Styles */
.badge-verified {
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.badge-premium {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Image Placeholder */
img[src=""], img:not([src]) {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Utility Classes */
.text-primary-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.shadow-custom {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
