/**
 * Qubic.id - Network Page Styles
 * Path: /assets/css/network.css
 */

.network-page-wrapper {
  min-height: calc(100vh - 140px);
  padding: 1.5rem 0 3.5rem;
}

/* Overview / Active Profile Strip */
.network-overview-strip {
  background: #0b111e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.network-strip-wallet {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.network-strip-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00e5ff 0%, #0072ff 100%);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.network-strip-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.network-strip-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.network-strip-title {
  font-size: 0.74rem;
  color: #94a3b8;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.network-strip-address {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.network-strip-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.network-stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  min-width: 72px;
  text-align: center;
}

.network-stat-label {
  font-size: 0.68rem;
  color: #8e9bb0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.1;
}

.network-stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.2;
}

/* Main Layout Card */
.network-layout-card {
  background: #0b111e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header & Tab Navigation */
.network-card-header {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #080d17;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.network-nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.network-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.network-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.network-tab-btn.active {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.35);
  color: #00e5ff;
}

.network-tab-btn[data-tab="blocked"].active {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.network-tab-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  line-height: 1;
}

.network-tab-btn.active .network-tab-badge {
  background: rgba(0, 229, 255, 0.25);
  color: #00e5ff;
}

.network-tab-btn[data-tab="blocked"].active .network-tab-badge {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

/* Search Box */
.network-search-box {
  position: relative;
  min-width: 200px;
  max-width: 280px;
  flex: 1 1 auto;
}

.network-search-box .bi-search {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 0.85rem;
  pointer-events: none;
}

.network-search-input {
  width: 100%;
  padding: 0.42rem 0.85rem 0.42rem 2.1rem;
  font-size: 0.84rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.network-search-input:focus {
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.15);
}

.network-search-input::placeholder {
  color: #64748b;
}

/* Card Body & Panes */
.network-card-body {
  padding: 1.25rem;
  min-height: 380px;
}

.network-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Responsive Flex Grid for Profiles */
.follows-list-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  align-items: stretch;
}

.follows-user-item {
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.follows-user-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 229, 255, 0.25);
  transform: translateY(-1px);
}

.follows-user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.2;
}

.follows-user-handle {
  font-size: 0.74rem;
  color: #8e9bb0;
  line-height: 1.2;
}

.feed-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.feed-avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(0, 114, 255, 0.2));
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #00e5ff;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Sayfalama (Pagination) */
.network-pagination-wrapper {
  width: 100%;
}

.follows-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.follows-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  color: #8e9bb0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.follows-page-btn:hover:not(:disabled):not(.disabled):not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.follows-page-btn.active {
  color: #080c15 !important;
  background-color: #00e5ff !important;
  border-color: #00e5ff !important;
  font-weight: 700 !important;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.35) !important;
  cursor: default;
}

.follows-page-btn:disabled,
.follows-page-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Responsive Adaptations */
@media (max-width: 768px) {
  .network-overview-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .network-strip-stats {
    justify-content: space-between;
    width: 100%;
  }

  .network-stat-pill {
    flex: 1 1 0;
    min-width: 0;
  }

  .network-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .network-search-box {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .network-nav-tabs {
    width: 100%;
  }

  .network-tab-btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 0.45rem 0.5rem;
    font-size: 0.8rem;
  }

  .follows-list-grid {
    gap: 0.5rem;
  }

  .follows-user-item {
    flex: 1 1 100%;
    min-width: 100%;
  }
}