/* Custom styles for the social network feed */
body {
    background-color: #F8F8F8;
}
/* Main container */
.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navbar styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #fff;
}

.logo {
    height: 30px;
    width: auto;
}

/* Featured Members Carousel */
#featuredMembersCarousel {
    min-height: 240px; 
}

#featuredMembersCarousel .carousel-item {
    padding: 0 1rem;
}

#featuredMembersCarousel .carousel-item img {
    height: 150px;
    width: 100%;
    object-fit: cover;
}

#featuredMembersCarousel .carousel-control-prev,
#featuredMembersCarousel .carousel-control-next {
    width: 8%;
    opacity: 0.8;
}

#featuredMembersCarousel .carousel-control-prev {
    left: -15px;
}

#featuredMembersCarousel .carousel-control-next {
    right: -15px;
}

#featuredMembersCarousel .carousel-indicators {
    margin-bottom: 0;
    bottom: -35px;
}

#featuredMembersLoading {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Comments Section */
.comments-section {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 1rem;
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.comment-avatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.comment-content {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 0.75rem;
    position: relative;
}

.comment-content:before {
    content: '';
    position: absolute;
    left: -8px;
    top: 15px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #f8f9fa;
}

/* Card styles */
.card {
    border: 1px solid #EFEFEF;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
}

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

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Profile image styles */
img.rounded-circle {
    object-fit: cover;
}

/* Featured Member */
.featured-member img {
    width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
}

/* Video Thumbnail */
.ratio-16x9 {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.play-button-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

/* New Members */
.new-member {
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.new-member:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

/* Reaction buttons */
.btn-outline-primary,
.btn-outline-success,
.btn-outline-info {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.btn-outline-primary {
    color: #0d6efd;
}

.btn-outline-success {
    color: #198754;
}

.btn-outline-info {
    color: #0dcaf0;
}

/* Comment section */
.comment-card {
    background-color: #f8f9fa;
    border-left: 3px solid #007bff;
}

a {
    color: rgb(108 117 125)
}
.btn-link {
    color: rgb(108 117 125);
    --btn-link-color: rgb(108 117 125);
    --bs-btn-link-color: rgb(108 117 125);
    --bs-btn-hover-color: rgb(73 79 85);
    --bs-btn-active-color: rgb(73 79 85);   
}

.navbar-collapse {
    justify-content: right;
}

footer, footer a{
    color: #bdcad4;
}

.form-floating>label {
    top: -5px;
}

.search-container {
    position: relative;
}
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}
.search-result-item {
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.search-result-item:hover {
    background-color: #f8f9fa;
}
.search-result-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.search-result-item .user-info {
    flex: 1;
}

.pagination > .active>.page-link, .page-link.active {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #FFF;
}
.pagination .page-link, .pagination .page-link:hover {
    color: #6c767e;
}

/*
.form-switch .form-check-input {
    height: 24px;
    width: 48px;
}
*/
.form-switch .form-check-input:focus {
    border-color: rgba(0, 0, 0, 0.25);
    outline: 0;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(0,0,0,0.25)'/></svg>");
}
.form-switch .form-check-input:checked {
    background-color: #6c757d;
    border-color: #6c757d;
    border: none;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(255,255,255,1.0)'/></svg>");
}

.membership-table .bi-x{
    color: #ff9ca5;
    font-size: 1.5rem;
}
.membership-table .bi-check{
    color: #28a745;
    font-size: 1.5rem;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: #6c757d;
    color: #FFF;
}

.alert-info {
    background-color: #e3eeff;
    border-color: #89adde;
}
.listing-type-selection {
    color: #777;
}
.listing-type-selection.active {
    color: #000;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .col-md-3 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        padding-left: 1rem;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .post-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .btn-outline-primary,
    .btn-outline-success,
    .btn-outline-info {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}
