/* fomopal.css - Modern and fun stylesheet for FOMOPAL cryptocurrency community */

:root {
  /* Main color scheme - vibrant purple gradient with complementary accents */
  --primary-color: #6e2de5;
  --primary-light: #8e55ee;
  --primary-dark: #4a15b7;
  --secondary-color: #2de5e5;
  --secondary-light: #6eeef5;
  --secondary-dark: #18a2a2;
  --accent-color: #ff4b8c;
  --accent-light: #ff7aa8;
  --accent-dark: #d1276c;
  
  /* Text colors */
  --text-light: #ffffff;
  --text-dark: #16162e;
  --text-muted: #828299;
  
  /* Background colors */
  --bg-light: #f8f9fe;
  --bg-dark: #16162e;
  --bg-card: #ffffff;
  --bg-hover: rgba(110, 45, 229, 0.05);
  
  /* Success/Error colors */
  --success: #00c48c;
  --warning: #ffb946;
  --danger: #ff5e6d;
  --info: #3f8cff;
  
  /* Border and shadow */
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  --border-radius-pill: 50rem;
  --box-shadow: 0 0.25rem 1rem rgba(22, 22, 46, 0.08);
  --box-shadow-hover: 0 0.5rem 1.5rem rgba(22, 22, 46, 0.12);
  
  /* Animation */
  --transition-speed: 0.3s;
}

/* Base styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  padding-top: 4.5rem;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* Navbar styling */
.navbar {
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
}

.navbar-brand img {
  height: 2rem;
  transition: transform var(--transition-speed);
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-purple .navbar-brand,
.navbar-purple .nav-link {
  color: var(--text-light);
  transition: opacity var(--transition-speed);
}

.navbar-purple .nav-link:hover {
  opacity: 0.85;
  color: var(--text-light) !important;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Search form */
.search-form {
  max-width: 450px;
}

.search-form .form-control {
  border-radius: var(--border-radius-pill) 0 0 var(--border-radius-pill);
  border: none;
  padding-left: 1.25rem;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-speed);
}

.search-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-form .form-control:focus {
  background-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.15);
  color: var(--text-light);
}

.search-form .btn {
  border-radius: 0 var(--border-radius-pill) var(--border-radius-pill) 0;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: none;
  color: var(--text-light);
  padding-left: 1rem;
  padding-right: 1rem;
  transition: all var(--transition-speed);
}

.search-form .btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn {
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
  border: none;
}

.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(74, 21, 183, 0.3);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(24, 162, 162, 0.3);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--text-light);
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(209, 39, 108, 0.3);
}

.btn-light {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.btn-light:hover {
  background-color: var(--bg-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(74, 21, 183, 0.2);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: var(--text-light);
}

.btn-outline-light:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

/* Badges */
.badge {
  font-weight: 600;
  padding: 0.35em 0.65em;
  border-radius: var(--border-radius-pill);
  letter-spacing: 0.5px;
  transition: all var(--transition-speed);
}

.badge:hover {
  transform: scale(1.05);
}

.badge-primary {
  background-color: var(--primary-light);
}

.badge-secondary {
  background-color: var(--secondary-light);
  color: var(--text-dark);
}

.badge-success {
  background-color: var(--success);
}

.badge-warning {
  background-color: var(--warning);
  color: var(--text-dark);
}

.badge-danger {
  background-color: var(--danger);
}

.badge-info {
  background-color: var(--info);
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background-color: var(--bg-card);
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed);
  margin-bottom: 1.5rem;
}

.card:hover {
  box-shadow: var(--box-shadow-hover);
}

.card-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background-color: var(--bg-card);
  padding: 1.25rem 1.5rem;
  font-weight: 600;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background-color: var(--bg-card);
  padding: 1rem 1.5rem;
}

/* Hero section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-light);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 10%, transparent 70%);
  transform: rotate(30deg);
}

.hero-section h1 {
  color: var(--text-light);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-section p {
  opacity: 0.9;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Lists and list groups */
.list-group-item {
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 1.25rem;
  transition: all var(--transition-speed);
}

.list-group-item:hover {
  background-color: var(--bg-hover);
  transform: translateX(5px);
}

.list-group-item:last-child {
  border-bottom: none;
}

.list-group-item-action:hover {
  background-color: var(--bg-hover);
}

/* Post styling */
.post-item {
  position: relative;
  transition: all var(--transition-speed);
  padding: 1rem;
  border-radius: var(--border-radius);
}

.post-item:hover {
  background-color: var(--bg-hover);
}

.post-stats {
  color: var(--text-muted);
}

.post-stats i {
  margin-right: 0.25rem;
}

/* Profile elements */
.profile-dropdown img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all var(--transition-speed);
}

.profile-dropdown:hover img {
  border-color: var(--text-light);
  transform: scale(1.1);
}

.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.6rem;
  transform: translate(25%, -25%);
  transition: all var(--transition-speed);
}

/* Animations and effects */
.btn, .card, .post-item, .list-group-item {
  will-change: transform;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Crypto price changes */
.text-success {
  color: var(--success) !important;
  font-weight: 600;
}

.text-danger {
  color: var(--danger) !important;
  font-weight: 600;
}

/* Crypto symbols and logos */
.crypto-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  color: var(--text-light);
  font-weight: bold;
  margin-right: 0.5rem;
}

.crypto-logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  margin-right: 0.5rem;
  border-radius: 50%;
  background-color: var(--bg-light);
  padding: 0.25rem;
}

/* Form controls */
.form-control {
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all var(--transition-speed);
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.25rem rgba(110, 45, 229, 0.15);
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-text {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 3rem 0;
  margin-top: 3rem;
}

.footer h5 {
  color: var(--text-light);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-speed);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-link:hover {
  color: var(--text-light);
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  margin-right: 0.5rem;
  transition: all var(--transition-speed);
}

.social-icon:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
  color: var(--text-light);
}

/* Responsive styles */
@media (max-width: 992px) {
  .navbar .nav-link {
    padding: 0.5rem 0;
  }
  
  .search-form {
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .hero-section h1 {
    font-size: 2.25rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .card-header, .card-body, .card-footer {
    padding: 1rem;
  }
  
  .post-item {
    padding: 0.75rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-light);
  }
  
  body.dark-mode h1, 
  body.dark-mode h2, 
  body.dark-mode h3, 
  body.dark-mode h4, 
  body.dark-mode h5, 
  body.dark-mode h6 {
    color: var(--text-light);
  }
  
  body.dark-mode .card,
  body.dark-mode .card-header,
  body.dark-mode .card-footer,
  body.dark-mode .list-group-item {
    background-color: #1e1e3f;
    color: var(--text-light);
  }
  
  body.dark-mode .text-dark {
    color: var(--text-light) !important;
  }
  
  body.dark-mode .form-control {
    background-color: #2c2c50;
    border-color: #3e3e6e;
    color: var(--text-light);
  }
  
  body.dark-mode .bg-light {
    background-color: #2c2c50 !important;
  }
  
  body.dark-mode .bg-white {
    background-color: #1e1e3f !important;
  }
  
  body.dark-mode .border {
    border-color: #3e3e6e !important;
  }
}

/* Cool crypto-themed animations */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

/* Digital rain effect for special elements */
@keyframes digital-rain {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 0% 100%;
  }
}

.digital-effect {
  position: relative;
  overflow: hidden;
}

.digital-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, 
    rgba(110, 45, 229, 0) 0%,
    rgba(110, 45, 229, 0.05) 50%,
    rgba(110, 45, 229, 0) 100%);
  background-size: 100% 300%;
  animation: digital-rain 3s linear infinite;
  pointer-events: none;
}

/* Special effects for price alerts and significant price changes */
.price-alert {
  position: relative;
  overflow: hidden;
}

.price-alert.positive::before,
.price-alert.negative::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  border-radius: 3px;
}

.price-alert.positive::before {
  background-color: var(--success);
}

.price-alert.negative::before {
  background-color: var(--danger);
}

.price-change-dramatic {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.price-change-dramatic::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: currentColor;
  opacity: 0.1;
  z-index: -1;
  border-radius: var(--border-radius);
}

/* Toast notifications for price alerts */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1060;
}

.toast {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border-radius: var(--border-radius);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: all var(--transition-speed);
}

.toast:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.4);
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
}

.toast.success::before {
  background-color: var(--success);
}

.toast.warning::before {
  background-color: var(--warning);
}

.toast.error::before {
  background-color: var(--danger);
}

.toast.info::before {
  background-color: var(--info);
}

/* Accessibility improvements */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

:focus {
  outline: 3px solid rgba(110, 45, 229, 0.5);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid rgba(110, 45, 229, 0.5);
  outline-offset: 2px;
}

     :root {
            --primary-color: #4a148c;
            --secondary-color: #6a1b9a;
            --accent-color: #8e24aa;
            --text-light: #ffffff;
            --text-dark: #212121;
            --bg-light: #f5f5f5;
            --bg-dark: #303030;
        }
        
        body {
        
            background-color: var(--bg-light);
        }
 
