/* ========== BIOLINK ADMIN - MODERN DESIGN ========== */

.biolink-admin-body {
  background: var(--terminal-bg);
  color: var(--terminal-fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", sans-serif;
  margin: 0;
  padding: 0;
}

/* Navigation */
.bio-nav {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}

.nav-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.nav-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: var(--terminal-accent);
  letter-spacing: -0.5px;
}

.nav-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--terminal-fg);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.nav-back-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--terminal-fg);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  font-weight: 500;
}

.nav-back-btn:hover {
  border-color: var(--terminal-accent);
  color: var(--terminal-accent);
  background: rgba(0, 204, 51, 0.05);
}

/* Main Content */
.bio-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Sections */
.bio-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.bio-section:hover {
  border-color: var(--terminal-accent);
  background: rgba(0, 204, 51, 0.02);
}

.section-header {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--terminal-fg);
  font-weight: 600;
  letter-spacing: -0.3px;
}

.section-subtitle {
  color: var(--terminal-dim);
  font-size: 0.9rem;
  margin: 0.25rem 0 0 0;
}

.badge {
  display: inline-block;
  background: var(--terminal-accent);
  color: var(--terminal-bg);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Forms */
.bio-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-row.full-width {
  grid-template-columns: 1fr;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-field label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--terminal-fg);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.bio-input,
.bio-textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--terminal-fg);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.bio-input:focus,
.bio-textarea:focus {
  outline: none;
  border-color: var(--terminal-accent);
  background: rgba(0, 204, 51, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 204, 51, 0.1);
}

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

/* Upload boxes */
.avatar-upload-box,
.image-upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  border: 2px dashed var(--border-color);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.avatar-upload-box:hover,
.image-upload-box:hover {
  border-color: var(--terminal-accent);
  background: rgba(0, 204, 51, 0.05);
}

.avatar-display {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--terminal-accent);
  background: rgba(0, 0, 0, 0.3);
}

.avatar-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--terminal-accent);
}

.file-input-label {
  cursor: pointer;
  display: block;
}

.file-label-text {
  background: var(--terminal-accent);
  color: var(--terminal-bg);
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-block;
}

.file-input-label:hover .file-label-text {
  opacity: 0.9;
  transform: scale(1.05);
}

/* Radio options */
.radio-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  margin: 0;
}

.radio-option:hover {
  background: rgba(0, 204, 51, 0.1);
}

.radio-option input[type="radio"] {
  cursor: pointer;
  width: 20px;
  height: 20px;
  accent-color: var(--terminal-accent);
}

.radio-option span {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Buttons */
.btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.btn-lg {
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--terminal-accent);
  color: var(--terminal-bg);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 204, 51, 0.2);
}

.btn-success {
  background: #2ecc71;
  color: white;
}

.btn-success:hover {
  background: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(46, 204, 113, 0.2);
}

.btn-danger {
  background: #e74c3c;
  color: white;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

.btn-danger:hover {
  background: #c0392b;
}

.btn-edit {
  background: #3498db;
  color: white;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

.btn-edit:hover {
  background: #2980b9;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Links list */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--terminal-dim);
}

.empty-state p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.empty-state p:first-child {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Link card */
.link-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: all 0.3s ease;
  cursor: grab;
}

.link-card:active {
  cursor: grabbing;
}

.link-card:hover {
  border-color: var(--terminal-accent);
  background: rgba(0, 204, 51, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.link-card.dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

.drag-handle {
  font-size: 1.5rem;
  color: var(--terminal-dim);
  cursor: grab;
  user-select: none;
  padding: 0.5rem 0.25rem;
  flex-shrink: 0;
}

.drag-handle:active {
  cursor: grabbing;
  color: var(--terminal-accent);
}

.link-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}

.link-details {
  flex: 1;
  min-width: 0;
}

.link-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--terminal-fg);
  margin: 0 0 0.25rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-desc {
  font-size: 0.9rem;
  color: var(--terminal-dim);
  margin: 0.25rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.link-url {
  font-size: 0.85rem;
  color: var(--terminal-accent);
  margin: 0.5rem 0 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: monospace;
}

.link-stats {
  font-size: 0.8rem;
  color: var(--terminal-dim);
  margin-top: 0.5rem;
}

.link-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.link-actions button {
  min-height: auto;
  width: auto;
  padding: 0.5rem 1rem;
}

/* ========== LANDING PAGE STYLES ========== */

.profile-section {
  max-width: 700px;
  margin: 3rem auto 2rem;
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(5px);
}

.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid var(--terminal-accent);
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-title {
  font-size: 2.5rem;
  margin: 0;
  color: var(--terminal-fg);
  font-weight: 700;
  letter-spacing: -1px;
  text-decoration: none !important;
}

.profile-description {
  font-size: 1.15rem;
  color: var(--terminal-dim);
  margin: 0;
  max-width: 500px;
  line-height: 1.6;
  text-decoration: none !important;
}

[data-theme="classic"] .profile-description {
  color: #374151;
}

.links-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

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

.biolink-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  backdrop-filter: blur(5px);
}

[data-theme="classic"] .biolink-item {
  border: 1px solid #000;
  background: #ffffff !important;
}

.biolink-item:hover {
  border-color: var(--terminal-accent);
  box-shadow: 0 15px 40px rgba(0, 204, 51, 0.15);
  transform: translateY(-8px);
  background: rgba(0, 0, 0, 0.3);
}

.item-image-wrapper {
  width: 100%;
  height: 200px;
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

[data-theme="classic"] .item-image-wrapper {
  background: #e5e7eb;
}

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

.biolink-item:hover .item-image {
  transform: scale(1.05);
}

.item-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

[data-theme="classic"] .item-content {
  background: transparent !important;
  padding: 1.5rem !important;
  gap: 0.8rem;
}

.item-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--terminal-fg);
  margin: 0;
  letter-spacing: -0.3px;
  text-decoration: none !important;
}

[data-theme="classic"] .item-title {
  background: #e5e7eb;
  padding: 1.5rem 1.5rem 0 1.5rem;
  margin: -1.5rem -1.5rem 0 -1.5rem;
  width: calc(100% + 3rem);
  color: #1f2937;
}

.item-description {
  font-size: 1rem;
  color: var(--terminal-dim);
  margin: 0;
  line-height: 1.5;
  flex: 1;
  text-decoration: none !important;
}

[data-theme="classic"] .item-description {
  color: #4b5563;
  padding: 0;
}

.item-button {
  align-self: flex-start;
  background: var(--terminal-accent);
  color: var(--terminal-bg);
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

[data-theme="classic"] .item-button {
  background: #3b82f6;
  align-self: flex-start;
  margin: 0;
}

.item-button:hover {
  opacity: 0.9;
  transform: translateX(4px);
}

.biolink-footer {
  text-align: center;
  padding: 2rem 1.5rem 1rem;
  color: var(--terminal-dim);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.biolink-footer a {
  color: var(--terminal-accent);
  text-decoration: none;
  font-weight: 600;
}

.biolink-footer a:hover {
  text-decoration: underline;
}

.footer-theme-btn {
  background: rgba(0, 204, 51, 0.15);
  border: 1px solid var(--border-color);
  color: var(--terminal-accent);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.footer-theme-btn:hover {
  background: var(--terminal-accent);
  color: var(--terminal-bg);
  transform: scale(1.05);
}

[data-theme="classic"] .footer-theme-btn {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border-color: #d1d5db;
}

[data-theme="classic"] .footer-theme-btn:hover {
  background: #3b82f6;
  color: white;
}

@media (max-width: 768px) {
  .footer-theme-btn {
    padding: 0.7rem 1.4rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .footer-theme-btn {
    padding: 0.8rem 1.6rem;
    font-size: 1.1rem;
  }
}

.theme-selector {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
}

.theme-selector .theme-btn {
  background: rgba(0, 204, 51, 0.15);
  border: 1px solid var(--border-color);
  color: var(--terminal-accent);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.theme-selector .theme-btn:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 8px 24px var(--shadow-glow);
  border-color: var(--terminal-accent);
}

/* ========== MOBILE RESPONSIVE ========== */

@media (max-width: 768px) {
  .biolink-admin-body {
    padding: 0;
  }

  .nav-content {
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .nav-title {
    font-size: 1.3rem;
  }

  .nav-controls {
    width: 100%;
  }

  .theme-toggle-btn,
  .nav-back-btn {
    flex: 1;
    width: 100%;
  }

  .bio-main {
    padding: 1.5rem 1rem;
  }

  .bio-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-field label {
    font-size: 0.8rem;
  }

  .bio-input,
  .bio-textarea {
    font-size: 16px;
    padding: 0.7rem 0.9rem;
  }

  .btn-lg {
    width: 100%;
    min-height: 48px;
  }

  .avatar-upload-box,
  .image-upload-box {
    padding: 1.5rem 1rem;
  }

  .avatar-display {
    width: 100px;
    height: 100px;
  }

  .image-preview {
    width: 120px;
    height: 120px;
  }

  .link-card {
    flex-direction: column;
    gap: 1rem;
  }

  .link-image {
    width: 100%;
    height: 150px;
  }

  .link-actions {
    width: 100%;
    flex-direction: row;
  }

  .link-actions button {
    flex: 1;
  }

  .profile-section {
    margin: 1.5rem auto 1.5rem;
    padding: 1.5rem 0.75rem;
    border-radius: 12px;
  }

  .profile-avatar {
    width: 100px;
    height: 100px;
  }

  .profile-title {
    font-size: 2.2rem;
  }

  .profile-description {
    font-size: 1.3rem;
  }

  .items-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .item-title {
    font-size: 1.6rem;
  }

  .item-description {
    font-size: 1.2rem;
  }

  .item-content {
    padding: 1.5rem;
  }

  .theme-selector {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-content {
    padding: 0.75rem;
  }

  .nav-title {
    font-size: 1.1rem;
  }

  .bio-main {
    padding: 1rem 0.75rem;
  }

  .bio-section {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .btn,
  .btn-lg {
    font-size: 0.95rem;
    min-height: 44px;
  }

  .file-label-text {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .section-header h2 {
    font-size: 1.3rem;
  }

  .profile-section {
    margin: 1rem auto 1.5rem;
    padding: 1rem 1.25rem;
    max-width: 90%;
  }

  .profile-avatar {
    width: 90px;
    height: 90px;
  }

  .profile-title {
    font-size: 2.4rem;
  }

  .profile-description {
    font-size: 1.4rem;
  }

  .drag-handle {
    font-size: 1.3rem;
  }

  .item-title {
    font-size: 1.8rem;
  }

  .item-description {
    font-size: 1.5rem;
  }

  .item-content {
    padding: 1.5rem;
  }
}

/* ========== THEME INTEGRATION ========== */

/* Colors automatically inherit from jawnlam-styles.css via data-theme attribute */
/* No additional theme definitions needed */
