/* Community Page Styles */

/* General Styles */
:root {
    --primary-color: #ff8833;
    --secondary-color: #ffaa66;
    --accent-color: #e67300;
    --text-color: #333333;
    --light-text: #ffffff;
    --dark-bg: #1a1a1a;
    --light-bg: #f9f9f9;
    --border-color: #dddddd;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Banner */
.page-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    text-align: center;
    color: var(--light-text);
    position: relative;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-banner p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider span {
    height: 3px;
    width: 60px;
    background-color: var(--secondary-color);
    position: relative;
}

.divider span::before,
.divider span::after {
    content: '';
    position: absolute;
    height: 8px;
    width: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.divider span::before {
    left: -10px;
}

.divider span::after {
    right: -10px;
}

/* Introduction Section */
.intro-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.intro-content p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.community-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 200px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1rem;
    margin: 0;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 2rem;
    color: #fff;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-color);
}

/* Members Section */
.members-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.member-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.member-card:hover {
    transform: translateY(-10px);
}

.member-image {
    height: 200px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.member-card:hover .member-image img {
    transform: scale(1.1);
}

.member-card h3 {
    font-size: 1.5rem;
    margin: 20px 0 5px;
    color: var(--accent-color);
}

.member-title {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.member-bio {
    padding: 0 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-bottom: 20px;
}

.member-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.member-social a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Feed Section */
.feed-section {
    padding: 80px 0;
    background-color: #fff;
}

.feed-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

/* Sidebar Styles */
.feed-sidebar {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.sidebar-header {
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.sidebar-header h3 {
    font-size: 1.3rem;
    color: var(--accent-color);
}

.topic-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.topic-list li {
    margin-bottom: 10px;
}

.topic-list a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    padding: 8px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.topic-list a:hover {
    background-color: rgba(255, 136, 51, 0.1);
    color: var(--primary-color);
}

.topic-list i {
    margin-right: 10px;
    color: var(--primary-color);
}

.event-list {
    list-style: none;
    padding: 0;
}

.event-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.event-list li:last-child {
    border-bottom: none;
}

.event-date {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.event-info h4 {
    margin: 0 0 5px;
    font-size: 1rem;
}

.event-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Feed Content Styles */
.feed-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-form {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.post-form textarea {
    width: 100%;
    height: 100px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    resize: none;
    margin-bottom: 15px;
    font-family: inherit;
}

.post-actions {
    display: flex;
    justify-content: space-between;
}

.attach-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.attach-btn:hover {
    background-color: rgba(255, 136, 51, 0.1);
    color: var(--primary-color);
}

.post-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.post-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.feed-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.post-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-user img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.post-user h4 {
    margin: 0;
    font-size: 1.1rem;
}

.post-user p {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
}

.post-actions i {
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

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

.post-content {
    margin-bottom: 15px;
}

.post-images {
    margin: 15px 0;
    border-radius: 10px;
    overflow: hidden;
}

.post-images img {
    width: 100%;
    height: auto;
    display: block;
}

.post-stats {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.post-stats div {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

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

.post-comments {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment {
    display: flex;
    gap: 10px;
}

.comment img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment div {
    background-color: #fff;
    border-radius: 10px;
    padding: 10px 15px;
    flex: 1;
}

.comment h5 {
    margin: 0 0 5px;
    font-size: 1rem;
}

.comment p {
    margin: 0 0 10px;
    font-size: 0.9rem;
}

.comment-actions {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #666;
}

.comment-actions span {
    cursor: pointer;
    transition: color 0.3s ease;
}

.comment-actions span:hover {
    color: var(--primary-color);
}

.add-comment {
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-comment img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.add-comment input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-family: inherit;
}

/* Join Section */
.join-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-align: center;
}

.join-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.join-content p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.join-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.primary-btn {
    background-color: #fff;
    color: var(--primary-color);
}

.primary-btn:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.secondary-btn {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.secondary-btn:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* Social Media Section */
.social-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.social-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
}

.facebook {
    background-color: #3b5998;
}

.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.twitter {
    background-color: #1da1f2;
}

.youtube {
    background-color: #ff0000;
}

.telegram {
    background-color: #0088cc;
}

.social-feed {
    margin-top: 50px;
    text-align: center;
}

.social-feed h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 30px;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.instagram-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background-color: #fff;
}

.newsletter-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.newsletter-content p {
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-family: inherit;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .feed-container {
        grid-template-columns: 1fr;
    }
    
    .feed-sidebar {
        order: 2;
    }
    
    .feed-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .page-banner h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .community-stats {
        gap: 20px;
    }
    
    .stat-item {
        width: 150px;
    }
    
    .features-grid,
    .members-grid,
    .instagram-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .join-content h2 {
        font-size: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .page-banner {
        padding: 60px 0;
    }
    
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .page-banner p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .community-stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .stat-item {
        width: 100%;
        max-width: 250px;
    }
    
    .join-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .social-icons {
        flex-direction: column;
        align-items: center;
    }
}