/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[13].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[13].use[3]!./node_modules/next/dist/build/webpack/loaders/resolve-url-loader/index.js??ruleSet[1].rules[14].oneOf[13].use[4]!./node_modules/next/dist/compiled/sass-loader/cjs.js??ruleSet[1].rules[14].oneOf[13].use[5]!./app/styles/pages/communities.scss ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@charset "UTF-8";
/* === Стили для страницы сообществ ===================================== */
.communities-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.communities-header .header-content h1 {
  background: linear-gradient(135deg, #8B5CF6, #D7FF5E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.communities-header .create-community-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #8B5CF6;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.communities-header .create-community-btn span {
  font-size: 1.2rem;
  font-weight: bold;
}
.communities-header .create-community-btn:hover {
  background: #7C3AED;
  transform: translateY(-2px);
}

.communities-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .communities-filters {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-box {
  flex: 1;
  max-width: 400px;
}
.search-box .search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(40, 42, 62, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: white;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.search-box .search-input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.search-box .search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.search-box .search-input:focus {
  outline: none;
  border-color: #8B5CF6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.filter-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.filter-controls .category-select,
.filter-controls .sort-select {
  padding: 0.5rem 1rem;
  background: rgba(40, 42, 62, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 6px;
  color: white;
  font-size: 0.85rem;
  cursor: pointer;
}
.filter-controls .category-select:focus,
.filter-controls .sort-select:focus {
  outline: none;
  border-color: #8B5CF6;
}
.filter-controls .filter-btn {
  padding: 0.5rem 1rem;
  background: rgba(40, 42, 62, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 6px;
  color: white;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-controls .filter-btn:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: #8B5CF6;
}
.filter-controls .filter-btn.active {
  background: #8B5CF6;
  border-color: #8B5CF6;
  color: white;
}

.communities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.community-card {
  background: rgba(40, 42, 62, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.community-card:hover {
  border-color: #8B5CF6;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.community-cover {
  position: relative;
  height: 120px;
  overflow: hidden;
}
.community-cover .cover-image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.community-cover .cover-overlay {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.5rem;
}
.community-cover .cover-overlay .privacy-badge {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}
.community-cover .cover-overlay .verified-badge {
  background: #10B981;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

.community-avatar {
  position: absolute;
  top: 80px;
  left: 1rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid rgba(40, 42, 62, 0.9);
  overflow: hidden;
}
.community-avatar .avatar-image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.community-info {
  padding: 1rem;
  padding-top: 2.5rem;
}

.community-header {
  margin-bottom: 0.75rem;
}
.community-header .community-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.community-header .community-name .verified-icon {
  color: #10B981;
  font-size: 0.9rem;
}
.community-header .community-category {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.community-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.community-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.community-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.community-stats .stat .stat-number {
  font-weight: 600;
  color: #D7FF5E;
  font-size: 0.9rem;
}
.community-stats .stat .stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.community-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.community-tags .tag {
  background: rgba(139, 92, 246, 0.2);
  color: #8B5CF6;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}
.community-tags .tag-more {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.community-action .join-btn,
.community-action .leave-btn {
  width: 100%;
  padding: 0.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.community-action .join-btn {
  background: #8B5CF6;
  color: white;
}
.community-action .join-btn:hover {
  background: #7C3AED;
}
.community-action .leave-btn {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  border: 1px solid #EF4444;
}
.community-action .leave-btn:hover {
  background: rgba(239, 68, 68, 0.3);
}

.no-communities {
  grid-column: 1/-1;
  padding: 3rem;
  text-align: center;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.community-modal {
  background: rgba(26, 26, 26, 0.95);
  border: 1px solid #8B5CF6;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
}
.modal-header .modal-title {
  color: white;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.modal-header .modal-title .verified-icon {
  color: #10B981;
}
.modal-header .close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.modal-header .close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.modal-cover {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.modal-cover .cover-image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.modal-cover .cover-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
}
.modal-cover .cover-overlay .privacy-badge {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.modal-content {
  padding: 1.5rem;
}

.community-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.community-header .avatar-section {
  flex-shrink: 0;
}
.community-header .avatar-section .avatar-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}
.community-header .info-section {
  flex: 1;
}
.community-header .info-section .community-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.community-header .info-section .community-meta .category {
  color: #8B5CF6;
  font-weight: 600;
}
.community-header .info-section .community-meta .created-date {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}
.community-header .info-section .community-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
}
.community-header .info-section .community-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.community-header .info-section .community-stats .stat .stat-number {
  font-weight: 600;
  color: #D7FF5E;
  font-size: 1.1rem;
}
.community-header .info-section .community-stats .stat .stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}
.community-header .info-section .action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.community-header .info-section .action-buttons button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.community-header .info-section .action-buttons .join-btn {
  background: #8B5CF6;
  color: white;
}
.community-header .info-section .action-buttons .join-btn:hover {
  background: #7C3AED;
}
.community-header .info-section .action-buttons .leave-btn {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  border: 1px solid #EF4444;
}
.community-header .info-section .action-buttons .leave-btn:hover {
  background: rgba(239, 68, 68, 0.3);
}
.community-header .info-section .action-buttons .write-post-btn {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
  border: 1px solid #10B981;
}
.community-header .info-section .action-buttons .write-post-btn:hover {
  background: rgba(16, 185, 129, 0.3);
}

.modal-tabs {
  display: flex;
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  margin-bottom: 1.5rem;
}
.modal-tabs .tab {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}
.modal-tabs .tab:hover {
  color: white;
}
.modal-tabs .tab.active {
  color: #8B5CF6;
  border-bottom-color: #8B5CF6;
}

.tab-content h4 {
  color: white;
  margin-bottom: 1rem;
}
.tab-content .description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.tab-content .tags-section,
.tab-content .owner-section {
  margin-bottom: 1.5rem;
}
.tab-content .tags-section .tags,
.tab-content .owner-section .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tab-content .tags-section .tags .tag,
.tab-content .owner-section .tags .tag {
  background: rgba(139, 92, 246, 0.2);
  color: #8B5CF6;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
}
.tab-content .tags-section .owner-info,
.tab-content .owner-section .owner-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.tab-content .tags-section .owner-info .owner-avatar,
.tab-content .owner-section .owner-info .owner-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}
.tab-content .tags-section .owner-info .owner-name,
.tab-content .owner-section .owner-info .owner-name {
  color: white;
  font-weight: 600;
}
.tab-content .rules-list {
  list-style: none;
  padding: 0;
}
.tab-content .rules-list .rule-item {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.tab-content .rules-list .rule-item:last-child {
  border-bottom: none;
}
.tab-content .members-preview .member-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}
.tab-content .members-preview .member-item .member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}
.tab-content .members-preview .member-item .member-info {
  display: flex;
  flex-direction: column;
}
.tab-content .members-preview .member-item .member-info .member-name {
  color: white;
  font-weight: 600;
}
.tab-content .members-preview .member-item .member-info .member-role {
  color: #8B5CF6;
  font-size: 0.8rem;
}
.tab-content .members-preview .more-members {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.create-community-modal {
  background: rgba(26, 26, 26, 0.95);
  border: 1px solid #8B5CF6;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.create-form {
  padding: 1.5rem;
}

.form-section {
  margin-bottom: 2rem;
}
.form-section h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  color: white;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  background: rgba(40, 42, 62, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 6px;
  color: white;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #8B5CF6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}
.form-group input::-moz-placeholder, .form-group textarea::-moz-placeholder, .form-group select::-moz-placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.form-group input::placeholder,
.form-group textarea::placeholder,
.form-group select::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.form-group .char-count {
  display: block;
  text-align: right;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.checkbox-label input[type=checkbox] {
  width: auto;
  margin: 0;
}
.checkbox-label span {
  color: white;
}

.help-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.tag-input,
.rule-input {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.tag-input input,
.rule-input input {
  flex: 1;
}
.tag-input .add-btn,
.rule-input .add-btn {
  padding: 0.75rem 1rem;
  background: #8B5CF6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.tag-input .add-btn:hover,
.rule-input .add-btn:hover {
  background: #7C3AED;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tags-list .tag {
  background: rgba(139, 92, 246, 0.2);
  color: #8B5CF6;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tags-list .tag .remove-tag {
  background: none;
  border: none;
  color: #8B5CF6;
  cursor: pointer;
  font-size: 0.8rem;
}
.tags-list .tag .remove-tag:hover {
  color: #EF4444;
}

.rules-list .rule-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(40, 42, 62, 0.5);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.rules-list .rule-item .rule-number {
  color: #8B5CF6;
  font-weight: 600;
  min-width: 20px;
}
.rules-list .rule-item .rule-text {
  color: white;
  flex: 1;
}
.rules-list .rule-item .remove-rule {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
.rules-list .rule-item .remove-rule:hover {
  color: #EF4444;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}
.form-actions .cancel-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.form-actions .cancel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.form-actions .create-btn {
  padding: 0.75rem 1.5rem;
  background: #8B5CF6;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.form-actions .create-btn:hover {
  background: #7C3AED;
}

@media (max-width: 768px) {
  .communities-header {
    flex-direction: column;
    gap: 1rem;
  }
  .communities-header .create-community-btn {
    width: 100%;
    justify-content: center;
  }
  .communities-filters .filter-controls {
    justify-content: center;
  }
  .communities-grid {
    grid-template-columns: 1fr;
  }
  .modal-content .community-header {
    flex-direction: column;
    text-align: center;
  }
  .modal-content .community-header .avatar-section {
    align-self: center;
  }
  .modal-content .action-buttons {
    justify-content: center;
  }
  .form-actions {
    flex-direction: column;
  }
  .form-actions button {
    width: 100%;
  }
}
