/* Komunitas specific styles - Remove global overrides that conflict with base template */

/* Ensure no conflict with visitor counter from base template */
.visitor-counter-bar {
    position: relative !important;
    z-index: 1001 !important;
    margin-bottom: 0 !important;
}

/* Ensure community hero doesn't overlap with base template elements */
.community-hero {
    margin-top: 0 !important;
    padding-top: 2rem !important;
    position: relative;
    z-index: 1000;
}

/* Dark mode styles for komunitas page */
body.dark-mode .community-hero {
    background: linear-gradient(90deg, #1a1a1a 0%, #333 100%);
}

body.dark-mode .community-search .form-control {
    background: #2d2d2d;
    color: #fff;
    border: 1px solid #444;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

body.dark-mode .community-search .form-control::placeholder {
    color: #888;
}

/* Community Hero Section */
.community-hero {
    background: linear-gradient(90deg, #0d6efd 0%, #6ea8fe 100%);
    color: #fff;
    padding-bottom: 2rem;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.community-hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem; /* Reduced from 1.5rem */
}

.community-hero .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

.community-search {
    max-width: 500px; /* Increased width */
    margin: 0 auto;
}

.community-search .form-control {
    padding: 0.8rem 1.2rem;
    font-size: 1.1rem;
    border-radius: 30px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: #fff;
    color: #212529;
    transition: all 0.3s ease;
}

.community-list-section {
    min-height: 60vh;
}

.community-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

/* Dark mode untuk community card */
.dark-mode .community-card {
    background: #2d2d2d;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.community-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.13);
    transform: translateY(-4px);
}

.dark-mode .community-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

.community-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #e9ecef;
}

.dark-mode .community-card-img {
    background: #404040;
}

.community-card-body {
    padding: 1.2rem 1rem 1rem 1rem;
}

.community-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #212529;
}

.dark-mode .community-card-title {
    color: #fff;
}

.community-card-desc {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.7rem;
}

.dark-mode .community-card-desc {
    color: #a7a7a7;
}

.community-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: #666;
}

.dark-mode .community-card-meta {
    color: #888;
}

.community-card-meta i {
    color: #0d6efd;
}

.dark-mode .community-card-meta i {
    color: #6ea8fe;
}

.community-card-join {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.4rem 1.1rem;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 2;
}

.dark-mode .community-card-join {
    background: #0d6efd;
    color: #fff;
}

.community-card-join.joined {
    background: #198754;
}

.dark-mode .community-card-join.joined {
    background: #198754;
}

.community-filter-tabs .btn {
    transition: all 0.3s ease;
}

.dark-mode .community-filter-tabs .btn-outline-light {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.dark-mode .community-filter-tabs .btn-outline-light:hover,
.dark-mode .community-filter-tabs .btn-outline-light.active {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}
