* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base */
body {
  font-family: 'Courier New', monospace;
  background: #000;
  color: #fff;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* Light mode */
body.light {
  background: #f5f5f5;
  color: #000;
}

/* Page wrapper */
.page {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  flex: 1 0 auto;
}

/* Admin controls (like wishlist) */
.admin-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  gap: 10px;
}

.admin-btn {
  background: transparent;
  border: 1px solid #333;
  color: #fff;
  padding: 8px 16px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-btn:hover {
  border-color: #999;
  color: #999;
}

.admin-btn.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* Header */
.site-header {
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  padding-top: 40px;
}

.brand-logo-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 10px;
  border: 2px solid #fff;
}

.brand-name {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tagline {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #999;
  max-width: 26rem;
  line-height: 1.5;
  margin-left: auto;
  margin-right: auto;
}

body.light .tagline {
  color: #666;
}

/* Mode toggle */
.mode-toggle {
  position: absolute;
  top: 40px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

body.light .mode-toggle {
  border-color: #aaa;
}

.mode-toggle:hover {
  transform: translateY(-1px);
}

.mode-icon {
  font-size: 0.8rem;
}

/* Section header / separator */
.websites-section {
  max-width: 100%;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Add button – like wishlist */
.add-btn {
  background: #fff;
  color: #000;
  border: none;
  padding: 10px 20px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.add-btn:hover {
  background: #ddd;
}

/* Grid – like wishlist layout */
.websites-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1400px) {
  .websites-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .websites-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding: 15px;
  }
  .admin-controls {
    top: 15px;
    right: 15px;
    flex-direction: column;
  }
  .websites-grid {
    grid-template-columns: 1fr;
  }
}

/* Card style – same as wishlist */
.wishlist-item {
  border: 1px solid #333;
  padding: 25px;
  background: rgba(20, 20, 20, 0.5);
  position: relative;
}

body.light .wishlist-item {
  background: #ffffff;
  border-color: #ccc;
}

.wishlist-item:hover {
  border-color: #999;
  transform: translateY(-2px);
}

/* Image */
.item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  border: 1px solid #333;
}

body.light .item-image {
  border-color: #ccc;
}

/* Header inside card */
.item-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 10px;
}

.item-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  flex: 1;
}

/* Description */
.item-price {
  font-size: 14px;
  color: #999;
  margin-bottom: 15px;
}

body.light .item-price {
  color: #555;
}

/* Actions */
.item-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.item-link {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 16px;
  border: 1px solid #333;
  display: inline-block;
  transition: all 0.2s;
}

.item-link:hover {
  border-color: #999;
  background: rgba(255, 255, 255, 0.1);
}

body.light .item-link {
  color: #000;
  border-color: #ccc;
}

body.light .item-link:hover {
  background: #eee;
}

/* Admin item buttons */
.item-btn {
  background: transparent;
  border: 1px solid #333;
  color: #fff;
  font-size: 12px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.item-btn:hover {
  border-color: #999;
  color: #999;
}

body.light .item-btn {
  border-color: #ccc;
  color: #000;
}

body.light .item-btn:hover {
  border-color: #999;
  color: #333;
}

/* WIP badge */
.badge-wip {
  background: #facc15;
  color: #000;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75em;
  font-weight: 600;
}

/* Modals (from wishlist) */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 200;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  border: 1px solid #333;
  background: #000;
  padding: 30px;
  max-width: 400px;
  width: 100%;
  margin: auto;
}

.modal-content h3 {
  margin-bottom: 20px;
  font-size: 20px;
}

.modal-close {
  background: transparent;
  border: 1px solid #333;
  color: #fff;
  width: 32px;
  height: 32px;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.modal-close:hover {
  border-color: #999;
  color: #999;
}

.info-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.info-header h3 {
  margin: 0;
  flex: 1;
  padding-right: 15px;
}

/* Form inputs (from wishlist) */
.form-input,
.form-textarea {
  width: 100%;
  background: transparent;
  border: 1px solid #333;
  color: #fff;
  padding: 12px 16px;
  margin-bottom: 15px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

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

.form-input::placeholder,
.form-textarea::placeholder {
  color: #666;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #999;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #999;
  margin-bottom: 15px;
}

.form-buttons {
  display: flex;
  gap: 10px;
}

.save-btn,
.cancel-btn {
  padding: 12px 24px;
  border: none;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.save-btn {
  background: #fff;
  color: #000;
  flex: 1;
}

.save-btn:hover {
  background: #ddd;
}

.cancel-btn {
  background: transparent;
  color: #fff;
  border: 1px solid #333;
}

.cancel-btn:hover {
  border-color: #999;
  color: #999;
}

/* Footer */
.footer {
  margin-top: 40px;
  padding: 20px 20px 0 20px;
  text-align: center;
  border-top: 1px solid #333;
  flex-shrink: 0;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #999;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #fff;
}

.footer-text {
  font-size: 13px;
  letter-spacing: 0.5px;
}

.perplexity-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: transform 0.2s;
}

.footer-link:hover .perplexity-logo {
  transform: scale(1.1);
}
