/* Custom Hootcaster Color Scheme */
:root {
  /* Primary colors */
  --hoot-primary: #01d341;      /* Bright green - main brand color */
  --hoot-secondary: #019a2f;    /* Darker green - hover states */
  --hoot-accent: #1e2d3b;       /* Dark blue-gray - backgrounds */
  
  /* Override Bootstrap colors */
  --bs-primary: #01d341;
  --bs-primary-rgb: 1, 211, 65;
  --bs-secondary: #019a2f;
  --bs-secondary-rgb: 1, 154, 47;
  --bs-success: #01d341;
  --bs-success-rgb: 1, 211, 65;
}

/* Simple Page Loader */
.owl-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 45, 59, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.owl-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.simple-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(1, 211, 65, 0.2);
  border-top: 4px solid var(--hoot-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.loading-text {
  color: var(--hoot-primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 40px;
  text-align: center;
  animation: textPulse 2s ease-in-out infinite;
}

.loading-dots {
  display: inline-block;
  animation: dotsAnimation 1.5s steps(4, end) infinite;
}

/* Animations */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes textPulse {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes dotsAnimation {
  0% {
    content: '';
  }
  25% {
    content: '.';
  }
  50% {
    content: '..';
  }
  75% {
    content: '...';
  }
  100% {
    content: '';
  }
}


/* Dark theme color overrides */
[data-bs-theme="dark"] {
  --bs-primary: #01d341;
  --bs-primary-rgb: 1, 211, 65;
  --bs-secondary: #019a2f;
  --bs-secondary-rgb: 1, 154, 47;
  --bs-dark: #1e2d3b;
  --bs-dark-rgb: 30, 45, 59;
}

/* Custom styles for Hootcaster */

/* Navigation styling */
.navbar-dark {
  background-color: #01d341 !important;
}

.navbar-brand {
  font-size: 1.5rem;
  color: #ffffff !important;
}

.navbar-nav .nav-link {
  color: #ffffff !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Footer styling */
.footer {
  background-color: #01d341 !important;
}

.footer * {
  color: #ffffff !important;
}

/* Button styling */
.btn-primary {
  background-color: var(--hoot-primary);
  border-color: var(--hoot-primary);
  color: #000000;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: var(--hoot-secondary);
  border-color: var(--hoot-secondary);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--hoot-accent);
  border-color: var(--hoot-accent);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #2a3b4a;
  border-color: #2a3b4a;
}

.btn-outline-secondary {
  color: var(--hoot-accent);
  border-color: var(--hoot-accent);
}

.btn-outline-secondary:hover {
  background-color: var(--hoot-accent);
  border-color: var(--hoot-accent);
  color: #ffffff;
}

/* Card styling */
.card {
  border: none;
  box-shadow: 0 2px 8px rgba(30, 45, 59, 0.15);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(30, 45, 59, 0.2);
}

.card-header {
  background-color: var(--hoot-accent);
  color: #ffffff;
  border-bottom: 2px solid var(--hoot-primary);
}

/* Form styling */
.form-control:focus {
  border-color: var(--hoot-primary);
  box-shadow: 0 0 0 0.2rem rgba(1, 211, 65, 0.25);
}

/* Badge styling */
.badge.bg-primary {
  background-color: var(--hoot-primary) !important;
  color: #000000;
}

.badge.bg-secondary {
  background-color: var(--hoot-secondary) !important;
}

/* Alert styling */
.alert-success {
  background-color: rgba(1, 211, 65, 0.1);
  border-color: var(--hoot-primary);
  color: var(--hoot-secondary);
}

/* Links */
a {
  color: var(--hoot-primary);
  text-decoration: none;
}

a:hover {
  color: var(--hoot-secondary);
}

/* List group styling */
.list-group-item-action:hover {
  background-color: rgba(1, 211, 65, 0.1);
}

/* Dropdown styling */
.dropdown-menu {
  border: 1px solid var(--hoot-accent);
}

.dropdown-item:hover {
  background-color: rgba(1, 211, 65, 0.1);
  color: var(--hoot-secondary);
}

/* Profile image consistency */
.profile-image {
  object-fit: cover;
}

/* Message bubbles */
.message-bubble {
  border-radius: 18px;
  padding: 12px 16px;
  margin-bottom: 8px;
  max-width: 70%;
  word-wrap: break-word;
}

.message-bubble.sent {
  background-color: var(--hoot-primary);
  color: #000000;
  margin-left: auto;
}

.message-bubble.received {
  background-color: var(--hoot-accent);
  color: #ffffff;
}

/* Post cards */
.post-card {
  transition: transform 0.2s ease-in-out;
}

.post-card:hover {
  transform: translateY(-2px);
}

/* Button enhancements */
.btn-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: var(--hoot-primary);
  border-color: var(--hoot-primary);
}

.btn-floating:hover {
  background-color: var(--hoot-secondary);
  border-color: var(--hoot-secondary);
}

/* Text colors */
.text-primary {
  color: var(--hoot-primary) !important;
}

.text-secondary {
  color: var(--hoot-secondary) !important;
}

/* Background colors */
.bg-primary {
  background-color: var(--hoot-primary) !important;
}

.bg-secondary {
  background-color: var(--hoot-secondary) !important;
}

/* Border colors */
.border-primary {
  border-color: var(--hoot-primary) !important;
}

/* Input group styling */
.input-group .btn {
  border-color: var(--hoot-primary);
}

/* Landing page hero styling */
.container-fluid .card {
  border: 2px solid var(--hoot-primary);
}

/* Icon colors */
.fa-dove, .fas fa-dove {
  color: var(--hoot-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .message-bubble {
    max-width: 85%;
  }
}

/* Loading animations */
.loading-spinner {
  animation: spin 1s linear infinite;
  color: var(--hoot-primary);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Custom scrollbar for message containers */
.message-container::-webkit-scrollbar {
  width: 6px;
}

.message-container::-webkit-scrollbar-track {
  background: rgba(30, 45, 59, 0.1);
  border-radius: 3px;
}

.message-container::-webkit-scrollbar-thumb {
  background: var(--hoot-secondary);
  border-radius: 3px;
}

.message-container::-webkit-scrollbar-thumb:hover {
  background: var(--hoot-primary);
}

/* List group item hover effects */
.list-group-item-action:hover {
  background-color: rgba(1, 211, 65, 0.1);
  border-color: var(--hoot-primary);
}

/* Badge styling */
.badge {
  font-size: 0.75rem;
}

/* Text area auto-resize */
.auto-resize {
  resize: none;
  overflow: hidden;
}

/* Profile image placeholder */
.profile-placeholder {
  background: linear-gradient(135deg, var(--hoot-primary), var(--hoot-secondary));
}

/* Status indicators */
.status-online {
  color: var(--hoot-primary);
}

.status-offline {
  color: var(--hoot-accent);
}

/* Timeline styling */
.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--hoot-primary);
}

/* Utility classes */
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cursor-pointer {
  cursor: pointer;
}

/* Dark theme adjustments */
[data-bs-theme="dark"] .bg-light {
  background-color: rgba(30, 45, 59, 0.3) !important;
}

[data-bs-theme="dark"] .text-dark {
  color: #ffffff !important;
}

/* Animation classes */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* Badge Achievement Pop-up Animations */
.badge-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 350px;
  opacity: 0;
  transform: translateX(100%) scale(0.8);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
}

.badge-popup.show {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.badge-popup.hide {
  opacity: 0;
  transform: translateX(100%) scale(0.8);
  pointer-events: none;
}

.badge-popup-content {
  background: linear-gradient(135deg, var(--hoot-primary), var(--hoot-secondary));
  color: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(1, 211, 65, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.badge-popup-content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer-badge 2s ease-in-out;
}

@keyframes shimmer-badge {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(0%) translateY(0%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.badge-popup-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.badge-popup-icon {
  font-size: 2.5rem;
  margin-right: 15px;
  animation: bounceIn 0.8s ease-out 0.2s both;
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.badge-popup-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.badge-popup-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
}

.badge-popup-description {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 15px;
  line-height: 1.4;
}

.badge-popup-points {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 8px 16px;
  font-weight: bold;
  display: inline-block;
  animation: pointsGlow 1s ease-in-out 1s both;
}

@keyframes pointsGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.3); }
  50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.6); }
}

.badge-popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.badge-popup-close:hover {
  opacity: 1;
}

/* Celebratory sparkles */
.badge-popup-sparkles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  color: rgba(255, 255, 255, 0.8);
  animation: sparkle 2s ease-in-out infinite;
  font-size: 0.8rem;
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

.sparkle:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 20%; right: 15%; animation-delay: 0.5s; }
.sparkle:nth-child(3) { bottom: 30%; left: 10%; animation-delay: 1s; }
.sparkle:nth-child(4) { bottom: 10%; right: 25%; animation-delay: 1.5s; }

/* Badge tier color variations */
.badge-popup.tier-bronze .badge-popup-content {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
}

.badge-popup.tier-silver .badge-popup-content {
  background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
}

.badge-popup.tier-gold .badge-popup-content {
  background: linear-gradient(135deg, #ffd700, #ffb700);
}

.badge-popup.tier-platinum .badge-popup-content {
  background: linear-gradient(135deg, #e5e4e2, #d1d0ce);
}

.badge-popup.tier-diamond .badge-popup-content {
  background: linear-gradient(135deg, #b9f2ff, #87ceeb);
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
  .badge-popup {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .badge-popup-content {
    padding: 15px;
  }
  
  .badge-popup-icon {
    font-size: 2rem;
    margin-right: 10px;
  }
  
  .badge-popup-title {
    font-size: 1.2rem;
  }
}

/* Special accent styling for branding elements */
.hoot-accent {
  color: var(--hoot-primary) !important;
}

.hoot-bg-accent {
  background-color: var(--hoot-accent) !important;
}

/* Focus states */
.btn:focus, .btn-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(1, 211, 65, 0.25);
}

/* Special styling for important elements */
.navbar-toggler {
  border-color: var(--hoot-primary);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(1, 211, 65, 0.25);
}

/* Modern Home Page Styling */

/* Enhanced Post Creation Card */
.post-creation-card {
  background: linear-gradient(135deg, rgba(1, 211, 65, 0.03), rgba(1, 154, 47, 0.03));
  border: 1px solid rgba(1, 211, 65, 0.1);
  transition: all 0.3s ease;
}

.post-creation-card:hover {
  border-color: rgba(1, 211, 65, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(1, 211, 65, 0.15);
}

.post-textarea {
  resize: none;
  min-height: 100px;
  border: none !important;
  background: rgba(255, 255, 255, 0.8) !important;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  line-height: 1.6;
}

.post-textarea:focus {
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 0 0 3px rgba(1, 211, 65, 0.1) !important;
}

.post-btn {
  background: linear-gradient(135deg, var(--hoot-primary), var(--hoot-secondary));
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(1, 211, 65, 0.3);
}

.post-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(1, 211, 65, 0.4);
  background: linear-gradient(135deg, var(--hoot-secondary), var(--hoot-primary));
}

/* Enhanced Post Cards */
.post-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(1, 211, 65, 0.1);
  border-color: rgba(1, 211, 65, 0.2);
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #2c3e50;
}

/* Gradient Background Class */
.bg-gradient {
  background: linear-gradient(135deg, var(--hoot-primary), var(--hoot-secondary)) !important;
}

/* Ghost Button Style */
.btn-ghost {
  background: transparent;
  border: none;
  color: #6c757d;
  transition: all 0.3s ease;
  border-radius: 50px;
}

.btn-ghost:hover {
  background: rgba(1, 211, 65, 0.1);
  color: var(--hoot-primary);
  transform: scale(1.05);
}

/* Enhanced Vote Buttons */
.vote-btn {
  transition: all 0.3s ease;
  border: none;
  font-weight: 500;
  min-width: 60px;
}

.vote-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hover Link Effects */
.hover-link {
  transition: all 0.3s ease;
  position: relative;
}

.hover-link:hover {
  color: var(--hoot-primary) !important;
  transform: translateY(-1px);
}

.hover-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(135deg, var(--hoot-primary), var(--hoot-secondary));
  transition: width 0.3s ease;
}

.hover-link:hover::after {
  width: 100%;
}

/* Enhanced Badge Styling */
.badge.rounded-pill {
  padding: 0.5rem 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Improved Avatar Styling */
.rounded-circle {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.rounded-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(1, 211, 65, 0.2);
}

/* Welcome Header Styling */
.container h2 {
  background: linear-gradient(135deg, var(--hoot-primary), var(--hoot-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: 1px;
}

/* Enhanced Dropdown Styling */
.dropdown-menu {
  border: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 0.5rem 0;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.dropdown-item {
  padding: 0.7rem 1.2rem;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 0 0.5rem;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, rgba(1, 211, 65, 0.1), rgba(1, 154, 47, 0.1));
  transform: translateX(4px);
}

/* Empty State Styling */
.card-body button {
  transition: all 0.3s ease;
}

.card-body button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(1, 211, 65, 0.3);
}

/* Dark Theme Enhancements */
[data-bs-theme="dark"] .post-card {
  background: rgba(30, 45, 59, 0.8);
  border-color: rgba(1, 211, 65, 0.1);
}

[data-bs-theme="dark"] .post-content {
  color: #e9ecef;
}

[data-bs-theme="dark"] .post-textarea {
  background: rgba(30, 45, 59, 0.5) !important;
  color: #ffffff;
}

[data-bs-theme="dark"] .post-textarea:focus {
  background: rgba(30, 45, 59, 0.8) !important;
}

[data-bs-theme="dark"] .dropdown-menu {
  background: rgba(30, 45, 59, 0.95);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Enhanced Focus States */
*:focus {
  outline: none;
}

.btn:focus-visible,
.form-control:focus-visible {
  box-shadow: 0 0 0 3px rgba(1, 211, 65, 0.3);
}

/* Notification Bell Bounce Animation */
@keyframes bounce-animation {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.bounce-animation {
  animation: bounce-animation 1s ease-in-out;
  color: var(--hoot-primary) !important;
}

/* Notification Dropdown Styling */
.notification-item {
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.notification-item:hover {
  background-color: rgba(1, 211, 65, 0.05) !important;
  border-left-color: var(--hoot-primary);
  transform: translateX(2px);
}

.notification-item.bg-light {
  background-color: rgba(1, 211, 65, 0.1) !important;
  border-left-color: var(--hoot-primary);
}

.notification-icon {
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Notification Count Badge */
#notification-count {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Dark theme notification adjustments */
[data-bs-theme="dark"] .notification-item {
  border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .notification-item:hover {
  background-color: rgba(1, 211, 65, 0.1) !important;
}

[data-bs-theme="dark"] .notification-item.bg-light {
  background-color: rgba(1, 211, 65, 0.15) !important;
}

/* ========== GLASS MORPHISM & PATTERNS ========== */

/* Background Pattern Animation */
body {
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(1, 211, 65, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(1, 154, 47, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(1, 211, 65, 0.05) 0%, transparent 50%);
  z-index: -1;
  animation: float-patterns 20s ease-in-out infinite;
}

@keyframes float-patterns {
  0%, 100% { 
    background: 
      radial-gradient(circle at 20% 80%, rgba(1, 211, 65, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(1, 154, 47, 0.08) 0%, transparent 50%),
      radial-gradient(circle at 40% 40%, rgba(1, 211, 65, 0.05) 0%, transparent 50%);
  }
  50% { 
    background: 
      radial-gradient(circle at 70% 30%, rgba(1, 211, 65, 0.12) 0%, transparent 50%),
      radial-gradient(circle at 30% 70%, rgba(1, 154, 47, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 60% 60%, rgba(1, 211, 65, 0.07) 0%, transparent 50%);
  }
}

/* Glass Morphism Base Class */
.glass-effect {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.glass-effect:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(1, 211, 65, 0.3);
  box-shadow: 
    0 12px 40px rgba(1, 211, 65, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
}

/* Enhanced Post Creation Card with Glass Effect */
.post-creation-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 12px 35px rgba(1, 211, 65, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 0 1px rgba(1, 211, 65, 0.05);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-creation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(1, 211, 65, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.post-creation-card:hover::before {
  left: 100%;
}

.post-creation-card:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(1, 211, 65, 0.4);
  box-shadow: 
    0 20px 50px rgba(1, 211, 65, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 0 2px rgba(1, 211, 65, 0.1);
  transform: translateY(-8px) scale(1.02);
}

/* Enhanced Post Cards with Glass Effect */
.post-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(1, 211, 65, 0.6),
    transparent
  );
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.post-card:hover::before {
  transform: scaleX(1);
}

.post-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(1, 211, 65, 0.3);
  box-shadow: 
    0 15px 40px rgba(1, 211, 65, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-6px) scale(1.01);
}

/* Glass Navigation Bar */
.navbar {
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background: rgba(1, 211, 65, 0.9) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(1, 211, 65, 0.3);
}

/* Glass Dropdown Menus */
.dropdown-menu {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dropdown-item {
  background: transparent;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 2px 4px;
}

.dropdown-item:hover {
  background: rgba(1, 211, 65, 0.15);
  color: var(--hoot-primary);
  box-shadow: 0 4px 15px rgba(1, 211, 65, 0.2);
  transform: translateX(6px);
}

/* Glass Form Controls */
.form-control {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(1, 211, 65, 0.5);
  box-shadow: 
    0 0 0 3px rgba(1, 211, 65, 0.1),
    0 4px 15px rgba(1, 211, 65, 0.1);
}

.form-control::placeholder {
  color: rgba(108, 117, 125, 0.8);
}

/* Glass Button Enhancements */
.btn-primary {
  background: linear-gradient(135deg, rgba(1, 211, 65, 0.9), rgba(1, 154, 47, 0.9));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 6px 20px rgba(1, 211, 65, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(1, 154, 47, 0.95), rgba(1, 211, 65, 0.95));
  box-shadow: 
    0 8px 25px rgba(1, 211, 65, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
}

/* Floating Pattern Elements */
.pattern-dots {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(1, 211, 65, 0.15) 1px, transparent 0);
  background-size: 20px 20px;
  animation: drift 30s linear infinite;
}

@keyframes drift {
  0% { transform: translateX(0px) translateY(0px); }
  33% { transform: translateX(30px) translateY(-30px); }
  66% { transform: translateX(-20px) translateY(20px); }
  100% { transform: translateX(0px) translateY(0px); }
}

/* Glass Search Bar */
.navbar .form-control {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.navbar .form-control::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.navbar .form-control:focus {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
  color: white;
}

/* Welcome Header Glass Effect */
.welcome-header {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.welcome-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(1, 211, 65, 0.1),
    transparent
  );
  animation: rotate-background 15s linear infinite;
}

@keyframes rotate-background {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.welcome-header h2,
.welcome-header p {
  position: relative;
  z-index: 1;
}

/* Dark Theme Glass Adjustments */
[data-bs-theme="dark"] .glass-effect {
  background: rgba(30, 45, 59, 0.3);
  border-color: rgba(1, 211, 65, 0.2);
}

[data-bs-theme="dark"] .post-creation-card {
  background: rgba(30, 45, 59, 0.4);
}

[data-bs-theme="dark"] .post-card {
  background: rgba(30, 45, 59, 0.3);
}

[data-bs-theme="dark"] .form-control {
  background: rgba(30, 45, 59, 0.6);
  color: white;
}

[data-bs-theme="dark"] .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

[data-bs-theme="dark"] .dropdown-menu {
  background: rgba(30, 45, 59, 0.9);
}

/* Responsive Glass Effects */
@media (max-width: 768px) {
  .glass-effect,
  .post-creation-card,
  .post-card {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
  }
  
  .welcome-header {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/* Loading Animation for Post Actions */
.vote-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.vote-btn.loading i {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Responsive Enhancements */
@media (max-width: 576px) {
  .post-card {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .post-creation-card {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .container h2 {
    font-size: 1.5rem;
  }
}

/* Typography Improvements */
.post-content p {
  margin-bottom: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Custom Selection Colors */
::selection {
  background: rgba(1, 211, 65, 0.3);
  color: var(--hoot-secondary);
}

/* Sponsored Posts Styling */
.sponsored-post {
  border: 2px solid #ffc107 !important;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.05), rgba(255, 193, 7, 0.02));
  position: relative;
}

.sponsored-post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffc107, #ff9800, #ffc107);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.sponsored-badge {
  text-align: center;
}

.sponsored-badge .badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  from {
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
  }
  to {
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.5);
  }
}

.sponsored-post:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(255, 193, 7, 0.2);
  border-color: #ff9800 !important;
}

/* Dark theme adjustments for sponsored posts */
[data-bs-theme="dark"] .sponsored-post {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
}

/* Sponsor Post Page Styling */
.feature-box {
  padding: 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(1, 211, 65, 0.1);
}

.feature-box:hover {
  background: rgba(1, 211, 65, 0.05);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(1, 211, 65, 0.15);
}

/* Sponsored post dropdown item */
.dropdown-item:has(i.fa-bullhorn) {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
  color: #ff9800 !important;
  font-weight: 600;
}

.dropdown-item:has(i.fa-bullhorn):hover {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
  transform: translateX(6px);
}

/* Sponsor Post Page Pricing Tiers */
.bg-gradient-primary {
  background: linear-gradient(135deg, #01d341, #019a2f) !important;
}

.feature-box.border-success {
  border: 2px solid #01d341 !important;
  background: linear-gradient(135deg, rgba(1, 211, 65, 0.1), rgba(1, 154, 47, 0.05));
  box-shadow: 0 4px 15px rgba(1, 211, 65, 0.2);
}

.pricing-tier-premium {
  border: 2px solid #ffc107;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.05));
}

.pricing-tier-standard {
  border: 2px solid #17a2b8;
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.1), rgba(13, 110, 253, 0.05));
}

.pricing-tier-basic {
  border: 2px solid #28a745;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(25, 135, 84, 0.05));
}

/* Slot indicators for sponsored posts */
.sponsored-slot-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}

/* Pricing alert animations */
@keyframes urgency-pulse {
  0% { background-color: rgba(255, 193, 7, 0.1); }
  50% { background-color: rgba(255, 193, 7, 0.2); }
  100% { background-color: rgba(255, 193, 7, 0.1); }
}

.alert-warning {
  animation: urgency-pulse 2s ease-in-out infinite;
}

/* Enhanced pricing display */
.pricing-highlight {
  background: linear-gradient(135deg, rgba(1, 211, 65, 0.1), rgba(1, 154, 47, 0.05));
  border: 2px solid #01d341;
  border-radius: 15px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.pricing-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Social Media Share Buttons */
.share-buttons {
  position: relative;
}

.share-buttons button {
  transition: all 0.2s ease;
  border: 1px solid rgba(var(--bs-secondary-rgb), 0.3);
  background: rgba(var(--bs-light-rgb), 0.1);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.share-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Platform-specific hover colors */
.share-buttons button:has(.fa-twitter):hover {
  background-color: #1da1f2;
  border-color: #1da1f2;
  color: white;
}

.share-buttons button:has(.fa-facebook-f):hover {
  background-color: #1877f2;
  border-color: #1877f2;
  color: white;
}

.share-buttons button:has(.fa-linkedin-in):hover {
  background-color: #0077b5;
  border-color: #0077b5;
  color: white;
}

.share-buttons button:has(.fa-link):hover {
  background-color: #01d341;
  border-color: #01d341;
  color: white;
}

/* Dark theme adjustments */
[data-bs-theme="dark"] .share-buttons button {
  background: rgba(var(--bs-dark-rgb), 0.3);
  border-color: rgba(var(--bs-light-rgb), 0.2);
  color: var(--bs-light);
}

/* Share button spacing */
.share-buttons {
  margin-right: 0.5rem;
}

@media (max-width: 576px) {
  .share-buttons {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  
  .share-buttons button {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
}

/* Profile Picture Upload Styling */
.profile-picture-preview {
  transition: transform 0.2s ease;
  border: 3px solid transparent;
}

.profile-picture-preview:hover {
  transform: scale(1.05);
  border-color: var(--bs-primary);
}

.profile-upload-card {
  background: linear-gradient(135deg, rgba(1, 211, 65, 0.1), rgba(1, 154, 47, 0.1));
  border: 1px solid rgba(1, 211, 65, 0.2);
}

.file-input-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

.file-input-wrapper input[type=file] {
  position: absolute;
  left: -9999px;
}

.file-input-label {
  cursor: pointer;
  display: block;
  padding: 0.375rem 0.75rem;
  background-color: var(--bs-light);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.file-input-label:hover {
  background-color: var(--bs-primary);
  color: white;
  border-color: var(--bs-primary);
}

[data-bs-theme="dark"] .file-input-label {
  background-color: var(--bs-dark);
  color: var(--bs-light);
}

[data-bs-theme="dark"] .file-input-label:hover {
  background-color: var(--bs-primary);
  color: white;
}

/* Profile picture consistency across the site */
.profile-image-xs {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 50%;
}

.profile-image-sm {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
}

.profile-image-md {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
}

.profile-image-lg {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
}

.profile-image-xl {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
}

/* Profile picture placeholder */
.profile-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #01d341, #019a2f);
  border-radius: 50%;
  color: white;
}

.profile-placeholder.profile-placeholder-xs {
  width: 24px;
  height: 24px;
  font-size: 0.6rem;
}

.profile-placeholder.profile-placeholder-sm {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

.profile-placeholder.profile-placeholder-md {
  width: 50px;
  height: 50px;
  font-size: 1rem;
}

.profile-placeholder.profile-placeholder-lg {
  width: 80px;
  height: 80px;
  font-size: 1.5rem;
}

.profile-placeholder.profile-placeholder-xl {
  width: 100px;
  height: 100px;
  font-size: 2rem;
}

/* Verification Badge Styling */
.verified-badge {
  color: #1da1f2 !important;
  text-shadow: 0 0 3px rgba(29, 161, 242, 0.3);
  transition: all 0.2s ease;
}

.verified-badge:hover {
  transform: scale(1.1);
  text-shadow: 0 0 6px rgba(29, 161, 242, 0.5);
}

/* Dark theme adjustments for verification badge */
[data-bs-theme="dark"] .verified-badge {
  color: #1da1f2 !important;
  text-shadow: 0 0 4px rgba(29, 161, 242, 0.4);
}

/* Different sizes for verification badges */
.verified-badge.verified-badge-sm {
  font-size: 0.75rem;
}

.verified-badge.verified-badge-md {
  font-size: 0.875rem;
}

.verified-badge.verified-badge-lg {
  font-size: 1rem;
}

/* Animation for verified badge when hovering over username */
a:hover .verified-badge {
  animation: pulse-verification 0.8s ease-in-out;
}

@keyframes pulse-verification {
  0% {
    transform: scale(1);
    text-shadow: 0 0 3px rgba(29, 161, 242, 0.3);
  }
  50% {
    transform: scale(1.15);
    text-shadow: 0 0 8px rgba(29, 161, 242, 0.6);
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 3px rgba(29, 161, 242, 0.3);
  }
}