/* Community Page Styles */

/* Hero Section */
.hero {
    background: white;
    color: #333;
    padding: 6rem 2rem 4rem;
    min-height: 70vh;
    display: flex;
    align-items: center;
    margin-top: 80px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: slideInLeft 0.8s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #09713D;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    color: #333;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #2E7D32;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
    animation: slideInRight 0.8s ease;
}

.hero-img {
    max-width: 100%;
    height: auto;
    width: 500px;
    border-radius: 15px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

/* Advertisement Section */
.advertisement {
    padding: 3rem 2rem;
    background: #f8f9fa;
}

.ad-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.ad-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2E7D32;
}

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

.ad-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ad-card img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
}

.ad-content h4 {
    margin: 0 0 0.5rem 0;
    color: #2E7D32;
    font-weight: 600;
}

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

/* Community Categories */
.community-categories {
    padding: 4rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: #2E7D32;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

.recipe-count {
    color: #4CAF50;
    font-weight: 500;
    font-size: 0.9rem;
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #09713D;
    background: transparent;
    color: #09713D;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #09713D;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(9, 113, 61, 0.3);
}

/* Community Grid */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.community-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    animation: fadeInUp 0.6s ease forwards;
}

.community-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.community-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.community-card:hover .community-image {
    transform: scale(1.05);
}

.community-content {
    padding: 1.5rem;
}

.community-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

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

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #2E7D32;
    font-size: 0.9rem;
}

.post-time {
    font-size: 0.8rem;
    color: #999;
}

.community-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
    line-height: 1.3;
}

.community-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.community-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.community-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: #666;
    background: #f8f9fa;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
}

.community-meta i {
    color: #4CAF50;
}

.season[data-level="festive"] i {
    color: #FF6B6B;
}

.season[data-level="summer"] i {
    color: #FFD93D;
}

.season[data-level="monsoon"] i {
    color: #6BCF7F;
}

.season[data-level="winter"] i {
    color: #4D9DE0;
}

.community-engagement {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.engagement-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
}

.engagement-btn:hover {
    color: #4CAF50;
    background: #f8f9fa;
}

.favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.favorite-btn:hover {
    background: white;
    transform: scale(1.1);
}

.favorite-btn.active i {
    color: #FF6B6B;
}

.favorite-btn i {
    font-size: 1.1rem;
    color: #666;
    transition: color 0.3s ease;
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin-top: 2rem;
}

/* Share Recipe Form */
.share-recipe {
    padding: 4rem 2rem;
    background: white;
}

.recipe-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2E7D32;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Community Features */
.community-features {
    padding: 4rem 2rem;
    background: white;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: white;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

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

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2E7D32;
}

.feature-description {
    color: #666;
    line-height: 1.6;
}

/* Community Guidelines */
.community-guidelines {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    color: white;
}

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

.guidelines-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

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

.guideline-item {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.guideline-item:hover {
    transform: translateY(-5px);
}

.guideline-item i {
    font-size: 2.5rem;
    color: #FFD54F;
    margin-bottom: 1rem;
}

.guideline-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.guideline-item p {
    opacity: 0.9;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delays for cards */
.community-card:nth-child(1) { animation-delay: 0.1s; }
.community-card:nth-child(2) { animation-delay: 0.2s; }
.community-card:nth-child(3) { animation-delay: 0.3s; }
.community-card:nth-child(4) { animation-delay: 0.4s; }
.community-card:nth-child(5) { animation-delay: 0.5s; }
.community-card:nth-child(6) { animation-delay: 0.6s; }
.community-card:nth-child(7) { animation-delay: 0.7s; }
.community-card:nth-child(8) { animation-delay: 0.8s; }
.community-card:nth-child(9) { animation-delay: 0.9s; }
.community-card:nth-child(10) { animation-delay: 1.0s; }

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 1rem 3rem;
        min-height: 60vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .category-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .community-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .guidelines-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .guidelines-title {
        font-size: 2rem;
    }
    
    .ad-grid {
        grid-template-columns: 1fr;
    }
    
    .ad-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 1rem 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .community-grid {
        grid-template-columns: 1fr;
    }
    
    .community-card {
        margin: 0 0.5rem;
    }
    
    .recipe-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .guideline-item {
        padding: 1.5rem 1rem;
    }
}