/* Minimal neobrutalism overrides to apply template palette and feel */
:root {
  --bg: #FAF4F0;
  --n1: #000000; /* black */
  --n4: #E7E8E9; /* light gray */
}

html, body { background: var(--bg); color: var(--n1); }

.neo-card { background:#fff; border:2px solid var(--n1); box-shadow: 8px 8px 0 var(--n1); border-radius: 2px; }
.neo-btn { display:inline-flex; align-items:center; gap:.5rem; padding:.5rem 1rem; border:2px solid var(--n1); background:#fff; box-shadow: 4px 4px 0 var(--n1); font-weight:700; }
.neo-btn:active { transform: translate(1px,1px); box-shadow: 3px 3px 0 var(--n1); }
.neo-section { border:2px solid var(--n1); box-shadow: 8px 8px 0 var(--n1); background:#fff; border-radius:2px; }
.neo-border { border:2px solid var(--n1); }
.neo-shadow { box-shadow: 8px 8px 0 var(--n1); }

/* Utility helpers if Tailwind classes are unavailable */
.container { max-width: 1100px; }

/* Next Post Card Styles */
.neo-next-post-wrapper {
  display: block;
  text-decoration: none;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.neo-next-post-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #fff;
  border: 3px solid var(--n1);
  padding: 1.5rem;
  box-shadow: 6px 6px 0 var(--n1);
  transition: all 0.2s ease;
}

.neo-next-post-wrapper:hover .neo-next-post-card {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--n1);
}

.neo-next-post-arrow {
  font-size: 2rem;
  font-weight: 700;
  color: #9333EA;
  line-height: 1;
  flex-shrink: 0;
}

.neo-next-post-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.neo-next-post-label {
  font-weight: 700;
  font-size: 0.75rem;
  color: #9333EA;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.neo-next-post-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--n1);
  line-height: 1.3;
  word-wrap: break-word;
}
  padding: 1.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--n1);
  background: #fff;
}

/* Notifications Dropdown Styles */
.neo-notifications-wrapper {
  position: relative;
}

.neo-notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #DC2626;
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  border: 2px solid var(--n1);
  min-width: 18px;
  text-align: center;
}

.neo-notifications-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 400px;
  max-width: 90vw;
  background: #fff;
  border: 3px solid var(--n1);
  box-shadow: 8px 8px 0 var(--n1);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  max-height: 600px;
  display: flex;
  flex-direction: column;
}

.neo-notifications-dropdown.neo-notifications-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.neo-notifications-header {
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--n1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: #F3E8FF;
}

.neo-notifications-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--n1);
}

.neo-notifications-mark-all {
  background: none;
  border: none;
  color: #9333EA;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
  text-decoration: underline;
}

.neo-notifications-mark-all:hover {
  color: #7C3AED;
}

.neo-notifications-list {
  overflow-y: auto;
  max-height: 500px;
}

.neo-notification-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--n4);
  transition: background 0.15s ease;
  position: relative;
}

.neo-notification-item:last-child {
  border-bottom: none;
}

.neo-notification-item:not(.neo-notification-read) {
  background: #FEF3C7;
}

.neo-notification-item:hover {
  background: #F3F4F6;
}

.neo-notification-item.neo-notification-read {
  opacity: 0.7;
}

.neo-notification-link {
  flex: 1;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.neo-notification-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.neo-notification-type {
  font-size: 0.75rem;
  font-weight: 700;
  color: #9333EA;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.neo-notification-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--n1);
  line-height: 1.4;
}

.neo-notification-date {
  font-size: 0.75rem;
  color: #6B7280;
  margin-top: 0.25rem;
}

.neo-notification-mark-read {
  background: none;
  border: 2px solid var(--n1);
  padding: 0.375rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
  background: #fff;
}

.neo-notification-mark-read:hover {
  background: #9333EA;
}

.neo-notification-mark-read:hover .neo-icon-small {
  stroke: #fff;
}

.neo-icon-small {
  width: 14px;
  height: 14px;
  stroke: var(--n1);
}

.neo-notifications-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
  color: #9CA3AF;
}

.neo-icon-large {
  width: 48px;
  height: 48px;
  stroke: #D1D5DB;
  margin-bottom: 1rem;
}

.neo-notifications-empty p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6B7280;
}

@media (max-width: 640px) {
  .neo-notifications-dropdown {
    width: calc(100vw - 2rem);
    right: -1rem;
  }
}
