/* ==================== GROUP HERO ==================== */
.group-hero {
    background: linear-gradient(135deg, #e85d75 0%, #6b4c9a 100%);
    padding: 80px 2rem 60px;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
}

.group-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.group-hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.group-hero-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.group-hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.group-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* ==================== GROUP INFO BANNER ==================== */
.group-info-banner {
    background: white;
    padding: 2rem;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.info-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.info-item h4 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.info-item p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* ==================== GROUP CONTAINER LAYOUT ==================== */
.group-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 2rem;
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 2rem;
}

/* ==================== SIDEBAR ==================== */
.group-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.sidebar-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.sidebar-card p {
    color: var(--gray-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.rules-list {
    list-style: none;
}

.rules-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.rules-list i {
    color: var(--primary-color);
}

.sidebar-card.featured {
    background: linear-gradient(135deg, rgba(232, 93, 117, 0.1), rgba(107, 76, 154, 0.1));
    border: 1px solid rgba(232, 93, 117, 0.2);
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.topic-tag {
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.4rem 0.9rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.topic-tag:hover {
    background: var(--primary-color);
    color: white;
}

.moderators-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.moderator-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.moderator-name {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.moderator-role {
    color: var(--gray-color);
    font-size: 0.8rem;
}

/* ==================== GROUP FEED ==================== */
.group-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ==================== CREATE POST ==================== */
.create-post {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.create-post-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.avatar-lg {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.create-post-input {
    flex: 1;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.create-post-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232, 93, 117, 0.1);
}

.create-post-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    justify-content: flex-end;
}

.action-btn {
    background: transparent;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.btn-primary-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* ==================== POST CARD ==================== */
.post-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.post-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.post-author {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.post-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.author-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.post-time {
    color: var(--gray-color);
    font-size: 0.8rem;
}

.post-menu {
    background: transparent;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px 8px;
    transition: var(--transition);
}

.post-menu:hover {
    color: var(--primary-color);
}

.post-content {
    margin-bottom: 1rem;
}

.post-content h4 {
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.post-content p {
    color: var(--gray-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.post-tag {
    background: var(--light-color);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-tag.job-tag {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.post-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-stats i {
    color: var(--primary-color);
}

.post-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-around;
}

.post-action-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.post-action-btn:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

/* ==================== LOAD MORE ==================== */
.load-more {
    text-align: center;
    padding: 2rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .group-hero h1 {
        font-size: 2rem;
    }

    .group-hero-subtitle {
        font-size: 1rem;
    }

    .info-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .group-container {
        grid-template-columns: 1fr;
    }

    .group-sidebar {
        order: 2;
    }

    .group-feed {
        order: 1;
    }
}

@media (max-width: 480px) {
    .group-hero {
        padding: 50px 1.5rem 40px;
    }

    .group-hero-icon {
        font-size: 3rem;
    }

    .group-hero h1 {
        font-size: 1.6rem;
    }

    .group-hero-subtitle {
        font-size: 0.95rem;
    }

    .info-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-item {
        padding: 0.5rem 0;
    }

    .group-container {
        padding: 20px 1.5rem;
    }

    .create-post-actions {
        flex-wrap: wrap;
    }

    .action-btn {
        flex: 1;
        min-width: 80px;
    }

    .post-stats {
        flex-direction: column;
        gap: 0.75rem;
    }

    .post-actions {
        gap: 0.5rem;
    }

    .post-action-btn {
        font-size: 0.8rem;
    }

    .topic-tags {
        gap: 0.5rem;
    }

    .topic-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ==================== SMALL MOBILE (384px - 480px) ==================== */
@media (max-width: 384px) {
    .group-hero {
        padding: 50px calc(max(1rem, 2vw)) 40px;
    }

    .group-hero h1 {
        font-size: 1.6rem;
    }

    .group-container {
        padding: 20px calc(max(1rem, 2vw));
        gap: 1.5rem;
    }

    .create-post {
        padding: 1.2rem;
    }

    .post-card {
        padding: 1.2rem;
    }

    .action-btn {
        min-width: 70px;
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .topic-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Extra small devices (320px and below) */
@media (max-width: 320px) {
    .group-hero {
        padding: 40px 1rem 30px;
    }

    .group-hero h1 {
        font-size: 1.4rem;
    }

    .group-container {
        padding: 15px 1rem;
        gap: 1rem;
    }

    .group-sidebar {
        gap: 1rem;
    }

    .group-feed {
        gap: 1rem;
    }

    .create-post {
        padding: 1rem;
    }

    .post-card {
        padding: 1rem;
    }

    .post-header {
        margin-bottom: 0.75rem;
    }

    .action-btn {
        min-width: 60px;
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .topic-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}
