@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #13131a;
  --bg-tertiary: #1a1a24;
  --bg-card: rgba(26, 26, 36, 0.6);
  --text-primary: #e8e8f0;
  --text-secondary: #a0a0b8;
  --accent-cyan: #00f5ff;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-blue: #3b82f6;
  --border-color: rgba(255, 255, 255, 0.08);
  --glow-cyan: 0 0 20px rgba(0, 245, 255, 0.4);
  --glow-purple: 0 0 20px rgba(139, 92, 246, 0.4);
}

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 245, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
}

.navbar {
  background: rgba(26, 26, 36, 0.8) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 50px;
  padding: 1rem 2rem;
}

.navbar-brand {
  color: var(--text-primary) !important;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  color: var(--accent-cyan) !important;
  text-shadow: var(--glow-cyan);
}

.navbar-brand img {
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.3));
}

.navbar-brand:hover img {
  transform: rotate(360deg) scale(1.1);
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-cyan) !important;
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.dropdown-menu {
  background: rgba(26, 26, 36, 0.95) !important;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 0.5rem;
}

.dropdown-item {
  color: var(--text-primary) !important;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.25rem;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: rgba(139, 92, 246, 0.2) !important;
  color: var(--accent-purple) !important;
  transform: translateX(5px);
}

.form-control {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px !important;
  color: var(--text-primary) !important;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--accent-cyan) !important;
  box-shadow: var(--glow-cyan) !important;
  outline: none;
}

.form-control::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink)) !important;
  border: none !important;
  border-radius: 12px;
  padding: 0.875rem 2rem;
  font-weight: 600;
  color: white !important;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.6);
}

.btn-outline-success {
  border: 2px solid var(--accent-cyan) !important;
  color: var(--accent-cyan) !important;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  background: transparent !important;
  transition: all 0.3s ease;
}

.btn-outline-success:hover {
  background: var(--accent-cyan) !important;
  color: var(--bg-primary) !important;
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.new-post {
  margin: 0 auto;
  max-width: 800px;
  margin-bottom: 3rem;
}

.new-post .row {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.new-post textarea {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  padding: 1rem;
  min-height: 120px;
  resize: vertical;
  font-size: 1rem;
  line-height: 1.6;
}

.new-post img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--accent-purple);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
  object-fit: cover;
  margin: 0;
  position: static;
}

.new-post button {
  margin-top: 1rem;
  width: 100%;
}

.post {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  margin: 0 auto 2rem;
  max-width: 800px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: auto;
  position: relative;
}

.post:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 48px rgba(0, 245, 255, 0.15);
  transform: translateY(-4px);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.post-user-picture {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
  object-fit: cover;
  margin: 0 !important;
  position: static !important;
  top: auto !important;
}

.post-owner {
  flex: 1;
  position: static !important;
  top: auto !important;
}

.post-owner a {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.post-owner a:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.updoots {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 400;
  display: block;
  margin-top: 0.25rem;
}

.post hr {
  border-color: var(--border-color);
  margin: 1rem 0;
  opacity: 0.5;
}

.post h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.post-footer {
  position: static !important;
  width: 100% !important;
  bottom: auto !important;
  display: flex;
  justify-content: space-around;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: 1rem;
}

.post-footer .nav {
  width: 100%;
  justify-content: space-around;
}

.post-footer-button {
  margin: 0 !important;
}

.post-footer-button a {
  color: var(--text-secondary) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem !important;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.post-footer-button a:hover {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-purple) !important;
}

.post-footer-action {
  color: var(--accent-cyan) !important;
  text-decoration: none;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.post-footer-action:hover {
  color: var(--accent-purple) !important;
  text-shadow: var(--glow-purple);
}

h1, h3 {
  color: var(--text-primary);
  font-weight: 700;
  text-align: center;
  margin: 2rem 0;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pagination {
  margin-top: 3rem;
}

.page-link {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  border-radius: 12px !important;
  margin: 0 0.25rem;
  padding: 0.75rem 1.25rem;
  transition: all 0.3s ease;
}

.page-link:hover {
  background: rgba(139, 92, 246, 0.2) !important;
  border-color: var(--accent-purple) !important;
  color: var(--accent-purple) !important;
  transform: translateY(-2px);
}

.user-profile-header {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.user-avatar-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  object-fit: cover;
  position: static;
  margin: 0;
}

blockquote {
  background: rgba(139, 92, 246, 0.1);
  border-left: 4px solid var(--accent-purple);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 12px 12px 0;
  color: var(--text-primary);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-purple), var(--accent-pink));
  border-radius: 10px;
  border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.overlay {
  opacity: 1;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alert {
  background: rgba(236, 72, 153, 0.2) !important;
  border: 1px solid var(--accent-pink);
  border-radius: 12px;
  color: var(--text-primary) !important;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.3);
}

.comment-body {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  height: 500px;
  width: 90%;
  max-width: 600px;
  z-index: 2000;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: left;
  padding: 1.5rem;
}

.comment-overlay {
  opacity: 1;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(5px);
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1500;
}

.comment-x-mark {
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.comment-x-mark:hover {
  color: var(--accent-pink);
  transform: rotate(90deg);
}

.comment-container {
  margin: 1rem 0;
  max-height: 350px;
  overflow-y: auto;
  padding-right: 1rem;
}

.comment-owner {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-left: 1rem;
}

.comment-line {
  border-left: 2px solid var(--border-color);
  height: 50px;
  margin-left: 2.5rem;
  margin-top: -1rem;
  margin-bottom: 1rem;
}

.comment-reply-input {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1rem;
  padding: 0.75rem;
  width: calc(100% - 2rem);
  margin: 0 1rem;
  transition: all 0.3s ease;
}

.comment-reply-input:focus {
  outline: none;
  border-bottom-color: var(--accent-cyan);
  box-shadow: 0 2px 10px rgba(0, 245, 255, 0.3);
}

.comment-reply-button {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border: none;
  border-radius: 12px;
  color: white;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 245, 255, 0.4);
  transition: all 0.3s ease;
}

.comment-reply-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 245, 255, 0.6);
}

.comment-post-content {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.comment-user-picture {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
  object-fit: cover;
}

.comment-view-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.comment-view-container:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-purple);
}

.comment-view-user-picture {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--accent-purple);
  object-fit: cover;
}

.comment-view-author {
  color: var(--text-primary);
  font-weight: 600;
  position: static;
}

.rounded {
  border-radius: 50% !important;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-purple);
  text-decoration: none;
}

@media (max-width: 768px) {
  .new-post, .post {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .navbar {
    padding: 1rem;
  }
  
  .comment-body {
    width: 95%;
    height: auto;
    max-height: 90vh;
  }
}