/* Community Card Component Styles */

.community-card {
    width: 410px;
    height: auto;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: white;
    transition: box-shadow 0.3s ease;
}

.community-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.community-card__image-container {
    position: relative;
}

.community-card__image-wrapper {
    border-radius: 16px;
    overflow: hidden;
}

.community-card__new-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(135deg, #FD025F 0%, #B2004B 100%);
    font-family: 'Inter', sans-serif;
}

.community-card__image {
    width: 100%;
    aspect-ratio: 927 / 475;
    object-fit: cover;
    border-radius: 16px;
}

.community-card__members-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.community-card__members-count {
    color: white;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

.community-card__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px;
    flex: 1;
}

.community-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.community-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
}

.community-card__login-link {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.community-card__login-link:hover {
    opacity: 0.7;
}

.community-card__login-text {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
}

.community-card__description {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.625;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
}

.community-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.community-card__button {
    width: 193px;
    height: 48px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.community-card__button--explore {
    background-color: #E7E7E7;
    color: black;
}

.community-card__button--explore:hover {
    background-color: #D1D5DB;
}

.community-card__button--join {
    background-color: black;
    color: white;
}

.community-card__button--join:hover {
    background-color: #1F2937;
}

/* Responsive Design */

/* Large (lg) - max-width: 1350px */
@media (max-width: 1350px) {
    .community-card {
        width: 100%;
        max-width: 400px;
        height: auto;
    }

    .community-card__title {
        font-size: 19px;
    }

    .community-card__description {
        font-size: 13.5px;
    }

    .community-card__button {
        width: 48%;
        font-size: 15px;
    }
}

/* Tablet (md) - max-width: 1024px */
@media (max-width: 1024px) {
    .community-card {
        width: 100%;
        max-width: 380px;
        height: auto;
    }

    .community-card__title {
        font-size: 18px;
    }

    .community-card__description {
        font-size: 13px;
    }

    .community-card__button {
        width: 48%;
        font-size: 15px;
    }
}

/* Small Tablet (sm) - max-width: 768px */
@media (max-width: 768px) {
    .community-card {
        max-width: 100%;
        height: auto;
    }

    .community-card__title {
        font-size: 17px;
    }

    .community-card__description {
        font-size: 13px;
    }

    .community-card__button {
        height: 44px;
        font-size: 14px;
    }
}

/* Mobile (xs) - max-width: 400px */
@media (max-width: 400px) {
    .community-card {
        height: auto;
    }


    .community-card__new-badge {
        height: 26px;
        font-size: 11px;
    }

    .community-card__members-count {
        font-size: 13px;
    }

    .community-card__title {
        font-size: 15px;
    }

    .community-card__login-text {
        font-size: 11px;
    }

    .community-card__description {
        font-size: 11px;
        line-height: 1.4;
    }

    .community-card__button {
        height: 36px;
        font-size: 12px;
        border-radius: 10px;
    }
}