/* Church Community Interaction Section CSS - community.css */

.church-community-interaction-section {
    padding: 60px 20px;
    background: #e8f2ff;
    min-height: auto;
}

.community-interaction-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.community-main-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2980b9;
    text-align: center;
    margin-bottom: 50px;
}

/* Questions Feed - 3 cards per row */
.community-questions-discussion-feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Individual Question Post - Much smaller cards */
.community-individual-question-post {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #e5e5e5;
    transition: transform 0.2s ease;
    height: fit-content;
}

.community-individual-question-post:hover {
    transform: translateY(-2px);
}

.community-question-post-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.community-user-profile-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-right: 10px;
}

.community-question-post-metadata {
    display: flex;
    flex-direction: column;
}

.community-question-poster-username {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2d3748;
}

.community-question-posting-timestamp {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    color: #666;
}

.community-question-main-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: #2d3748;
    line-height: 1.4;
    margin: 0;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid #2980b9;
}

/* Comments Discussion Area - Compact */
.community-question-discussion-area {
    margin-top: 12px;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.community-question-responses-list {
    margin-bottom: 10px;
}

.community-individual-response-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.community-individual-response-item:hover {
    background: #e8f4fd;
}

.community-response-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    margin-right: 8px;
    flex-shrink: 0;
}

.community-response-content-wrapper {
    flex: 1;
}

.community-response-author-name {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2980b9;
    display: block;
    margin-bottom: 2px;
}

.community-response-content-wrapper p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    color: #2d3748;
    line-height: 1.3;
    margin: 0 0 2px 0;
}

.community-response-time-indicator {
    font-family: 'Poppins', sans-serif;
    font-size: 0.65rem;
    color: #999;
}

/* Response Input Container - Compact */
.community-response-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 15px;
    border: 1px solid #e5e5e5;
    transition: border-color 0.3s ease;
}

.community-response-input-container:focus-within {
    border-color: #2980b9;
}

.community-response-text-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 5px 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    outline: none;
    color: #2d3748;
}

.community-response-text-input::placeholder {
    color: #999;
}

.community-response-submit-button {
    background: #2980b9;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.community-response-submit-button:hover {
    background: #3498db;
    transform: translateY(-1px);
}

/* Tablet View - 2 cards per row */
@media (max-width: 992px) {
    .community-questions-discussion-feed {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* Mobile View - 1 card per row */
@media (max-width: 768px) {
    .church-community-interaction-section {
        padding: 40px 15px;
    }
    
    .community-main-section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .community-questions-discussion-feed {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .community-individual-question-post {
        padding: 15px;
        border-radius: 12px;
    }
    
    .community-user-profile-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-right: 10px;
    }
    
    .community-question-poster-username {
        font-size: 0.9rem;
    }
    
    .community-question-posting-timestamp {
        font-size: 0.75rem;
    }
    
    .community-question-main-content p {
        font-size: 0.9rem;
        padding: 12px;
    }
    
    .community-response-user-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        margin-right: 8px;
    }
    
    .community-response-author-name {
        font-size: 0.8rem;
    }
    
    .community-response-content-wrapper p {
        font-size: 0.8rem;
    }
    
    .community-response-time-indicator {
        font-size: 0.7rem;
    }
    
    .community-response-input-container {
        padding: 10px;
        gap: 8px;
    }
    
    .community-response-text-input {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .community-response-submit-button {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* Small Mobile - 1 card per row with smaller sizing */
@media (max-width: 576px) {
    .church-community-interaction-section {
        padding: 30px 10px;
    }
    
    .community-main-section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .community-questions-discussion-feed {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .community-individual-question-post {
        padding: 12px;
        border-radius: 10px;
    }
    
    .community-user-profile-avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-right: 8px;
    }
    
    .community-question-poster-username {
        font-size: 0.85rem;
    }
    
    .community-question-posting-timestamp {
        font-size: 0.7rem;
    }
    
    .community-question-main-content p {
        font-size: 0.85rem;
        padding: 10px;
    }
    
    .community-response-user-avatar {
        width: 25px;
        height: 25px;
        font-size: 0.75rem;
        margin-right: 6px;
    }
    
    .community-response-author-name {
        font-size: 0.75rem;
    }
    
    .community-response-content-wrapper p {
        font-size: 0.75rem;
    }
    
    .community-response-time-indicator {
        font-size: 0.65rem;
    }
    
    .community-response-input-container {
        padding: 8px;
        gap: 6px;
    }
    
    .community-response-text-input {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
    
    .community-response-submit-button {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
}