/* Community Page Styles */
.community-section {
    width: 100%;
    padding: 150px 40px 80px;
    min-height: calc(100vh - 200px);
}

.community-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.community-main-title {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: white;
    text-align: center;
    margin: 0;
    margin-top: 20px;
}

.community-product-title {
    font-family: 'Square721TL-BoldExtended', 'Arial Black', Arial, sans-serif;
    font-size: 72px;
    font-weight: bold;
    color: white;
    margin: 0 0 24px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.community-subtitle {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 20px;
    color: rgba(186, 186, 186, 1);
    margin: 0 0 60px 0;
    text-align: center;
    max-width: 800px;
    line-height: 1.6;
}

.community-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
    margin-bottom: 60px;
}

.community-group-card {
    background: rgba(21, 21, 21, 0.6);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* squircle поддержка для gradient-border-feature */
@supports (corner-shape: squircle) {
    .community-group-card {
        corner-shape: squircle;  
        border-radius: 40px;
    }
}

.group-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
    text-align: center;
}

.group-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(100, 104, 251, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px solid rgba(100, 104, 251, 0.3);
}

.group-icon i {
    font-size: 40px;
    color: #6468FB;
}

.group-title {
    font-family: 'Square721TL-BoldExtended', 'Arial Black', Arial, sans-serif;
    font-size: 32px;
    font-weight: bold;
    color: white;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;

    height: 80px;
}

.group-subtitle {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 16px;
    color: rgba(186, 186, 186, 0.8);
    margin: 0;
    font-weight: 400;
}

.group-qr-container {
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code-wrapper {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

/* squircle поддержка для gradient-border-feature */
@supports (corner-shape: squircle) {
    .qr-code-wrapper {
        corner-shape: squircle;  
        border-radius: 40px;
    }
}

.community-group-card:hover .qr-code-wrapper {
    transform: scale(1.05);
}

.qr-code-image {
    width: 300px;
    height: 300px;
    display: block;
    border-radius: 10px;
}

.group-description {
    margin-bottom: 32px;
    text-align: center;
}

.group-description p {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 16px;
    color: rgba(186, 186, 186, 1);
    line-height: 1.6;
    margin: 0;
}

.btn-group {
    background: #6468FB;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    width: 100%;
    justify-content: center;
    max-width: 300px;
}

.btn-group:hover {
    background: #5559E8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(100, 104, 251, 0.4);
}

.btn-group i {
    font-size: 20px;
}

.community-chat-info {
    width: 100%;
    max-width: 800px;
    margin-bottom: 40px;
}

.chat-info-card {
    background: rgba(21, 21, 21, 0.6);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* squircle поддержка для gradient-border-feature */
@supports (corner-shape: squircle) {
    .chat-info-card {
        corner-shape: squircle;  
        border-radius: 40px;
    }
}

.chat-info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(100, 104, 251, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px solid rgba(100, 104, 251, 0.3);
}

.chat-info-icon i {
    font-size: 30px;
    color: #6468FB;
}

.chat-info-title {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin: 0 0 16px 0;
}

.chat-info-text {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 16px;
    color: rgba(186, 186, 186, 1);
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.chat-link {
    color: #6468FB;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.chat-link:hover {
    color: #5559E8;
    text-decoration: underline;
}

.btn-chat {
    background: #6468FB;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    max-width: 300px;
}

.btn-chat:hover {
    background: #5559E8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(100, 104, 251, 0.4);
}

.btn-chat i {
    font-size: 20px;
}

.community-info {
    width: 100%;
    max-width: 800px;
}

.info-card {
    background: rgba(21, 21, 21, 0.6);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(10px);
}

/* squircle поддержка для gradient-border-feature */
@supports (corner-shape: squircle) {
    .info-card {
        corner-shape: squircle;  
        border-radius: 40px;
    }
}

.info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(100, 104, 251, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px solid rgba(100, 104, 251, 0.3);
}

.info-icon i {
    font-size: 30px;
    color: #6468FB;
}

.info-title {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin: 0 0 16px 0;
}

.info-text {
    font-family: 'Inter', 'Arial Narrow', Arial, sans-serif;
    font-size: 16px;
    color: rgba(186, 186, 186, 1);
    line-height: 1.6;
    margin: 0;
}

.community-footer {
    width: 100%;
    padding: 40px;
    text-align: center;
}


.profile-footer {
    width: 100%;
    padding: 40px;
    text-align: center;
}

/* Community Responsive */
@media (max-width: 767px) {
    .community-section {
        padding: calc(92px + env(safe-area-inset-top)) 16px 40px;
        min-height: auto;
    }

    .community-main-title {
        font-size: 28px;
        margin-top: 16px;
    }

    .community-product-title {
        font-size: 32px;
        margin-bottom: 16px;
        letter-spacing: 1px;
    }

    .community-subtitle {
        font-size: 15px;
        margin-bottom: 32px;
        line-height: 1.6;
    }

    .community-groups {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 32px;
    }

    .community-group-card {
        padding: 24px 18px;
    }
    
    .group-card-header {
        margin-bottom: 24px;
    }
    
    .group-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
    }
    
    .group-icon i {
        font-size: 32px;
    }

    .group-title {
        font-size: 20px;
        height: auto;
        margin-bottom: 6px;
    }
    
    .group-subtitle {
        font-size: 14px;
    }

    .qr-code-image {
        width: 200px;
        height: 200px;
    }
    
    .group-description {
        margin-bottom: 24px;
    }

    .group-description p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .btn-group {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .btn-group i {
        font-size: 18px;
    }

    .community-chat-info {
        margin-bottom: 32px;
    }

    .chat-info-card {
        padding: 24px 18px;
    }
    
    .chat-info-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 16px;
    }
    
    .chat-info-icon i {
        font-size: 26px;
    }

    .chat-info-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .chat-info-text {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .btn-chat {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .btn-chat i {
        font-size: 18px;
    }

    .info-card {
        padding: 24px 18px;
    }
    
    .info-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 16px;
    }
    
    .info-icon i {
        font-size: 26px;
    }

    .info-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .info-text {
        font-size: 14px;
        line-height: 1.6;
    }
}

@media (max-width: 479px) {
    .community-main-title {
        font-size: 24px;
    }
    
    .community-product-title {
        font-size: 28px;
    }
    
    .community-subtitle {
        font-size: 14px;
    }
    
    .group-title {
        font-size: 18px;
    }
    
    .qr-code-image {
        width: 180px;
        height: 180px;
    }
}

