/* ================================================
   BULL BEAR NEXUS - MAIN STYLESHEET
   Enhanced Color Scheme and Professional Spacing
   ================================================ */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0A0E27 0%, #1a1f3a 100%);
  color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
}

/* ==================
   HEADER & NAVIGATION
   Enhanced with Professional Spacing and Glow Effects
   ================== */
.site-header {
  background: rgba(19, 24, 41, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid rgba(0, 255, 136, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: #00FF88;
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
}

.logo:hover {
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
  transform: scale(1.05);
}

/* Navigation Links - Enhanced Spacing and Glow */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem; /* Increased from 1.5rem for better spacing */
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.0625rem; /* Slightly larger for better readability */
  font-weight: 500;
  padding: 0.75rem 1.25rem; /* Increased padding for better click area */
  border-radius: 8px;
  transition: all 0.3s ease;
  display: block;
  position: relative;
}

/* Hover Effect with Glow */
.nav-links a:hover {
  color: #00FF88;
  background: rgba(0, 255, 136, 0.1);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
  transform: translateY(-2px);
}

/* Active/Current Page Glow */
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: #00FF88;
  background: rgba(0, 255, 136, 0.15);
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

/* Animated Underline Effect */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #00FF88;
  transform: translateX(-50%);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 80%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(0, 255, 136, 0.3);
  color: #00FF88;
  font-size: 1.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(0, 255, 136, 0.1);
  border-color: #00FF88;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

/* ==================
   HERO SECTION
   No AD space between header and hero
   ================== */
.hero-section {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
  border-bottom: 2px solid rgba(0, 255, 136, 0.1);
  margin-top: 0; /* Removed any top margin */
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #00FF88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #a0a0a0;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.cta-button {
  background: linear-gradient(135deg, #00FF88 0%, #00cc70 100%);
  color: #0A0E27;
  padding: 1.125rem 3rem;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 255, 136, 0.6);
  background: linear-gradient(135deg, #00cc70 0%, #00FF88 100%);
}

/* ==================
   MAIN CONTAINER
   ================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.section-title span {
  color: #00FF88;
}

/* ==================
   CARD GRID
   ================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Enhanced Card with Glow and Lift Effect */
.card {
  background: rgba(19, 24, 41, 0.8);
  border: 2px solid rgba(0, 255, 136, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

/* Card Hover: GLOW + LIFT Effect */
.card:hover {
  transform: translateY(-12px);
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(0, 255, 136, 0.3),
    inset 0 0 20px rgba(0, 255, 136, 0.05);
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-content {
  padding: 1.75rem;
}

.card-category {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: capitalize;
}

.category-bullish {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.category-bearish {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.category-neutral {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.3);
}

.card-title {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 0.875rem;
  color: #ffffff;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.card:hover .card-title {
  color: #00FF88;
}

.card-description {
  font-size: 1rem;
  color: #a0a0a0;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Shows 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: #6b7280;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-date,
.card-views {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* ==================
   EDIT MODE (Admin Only)
   ================== */
.edit-indicator {
  position: fixed;
  top: 100px;
  right: 20px;
  background: rgba(0, 255, 136, 0.15);
  border: 2px solid #00FF88;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  color: #00FF88;
  font-weight: 600;
  z-index: 999;
  display: none;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
  animation: pulse 2s infinite;
}

.edit-indicator.active {
  display: flex;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
  }
  50% {
    box-shadow: 0 8px 35px rgba(0, 255, 136, 0.5);
  }
}

.editable-content {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.editable-content::after {
  content: '✏️';
  position: absolute;
  top: -10px;
  right: -10px;
  background: rgba(0, 255, 136, 0.9);
  color: #0A0E27;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.4);
}

.editable-content:hover::after {
  display: flex;
}

.editable-content:hover {
  outline: 2px dashed rgba(0, 255, 136, 0.5);
  outline-offset: 4px;
  background: rgba(0, 255, 136, 0.05);
}

/* ==================
   ADVERTISEMENT SPACES - OPTIMIZED
   ================== */
.ad-space {
  background: rgba(19, 24, 41, 0.6);
  border: 2px dashed rgba(0, 255, 136, 0.2);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  color: #6b7280;
  margin: 2rem 0;
  transition: all 0.3s ease;
}

.ad-space:hover {
  border-color: rgba(0, 255, 136, 0.4);
  background: rgba(19, 24, 41, 0.8);
}

.ad-space-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}

/* Ad Space Sizes - Optimized Heights */
.ad-space.ad-hero {
  min-height: 120px;
  padding: 1.5rem;
  margin: 2rem 0 3rem 0;
}

.ad-space.ad-sidebar {
  min-height: 400px;
}

.ad-space.ad-mid-content {
  min-height: 150px;
  padding: 1.5rem;
}

/* ==================
   DAILY DEALS SECTION
   ================== */
.deals-preview {
  background: rgba(0, 255, 136, 0.05);
  padding: 3rem 0;
  margin: 4rem 0;
  border-radius: 20px;
  border: 2px solid rgba(0, 255, 136, 0.15);
}

.deal-card {
  background: rgba(19, 24, 41, 0.8);
  border: 2px solid rgba(0, 255, 136, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

.deal-card:hover {
  transform: translateY(-12px);
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
              0 0 40px rgba(0, 255, 136, 0.3);
}

.deal-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8787 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.deal-cta {
  background: linear-gradient(135deg, #00FF88 0%, #00cc70 100%);
  color: #0A0E27;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 1rem;
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.deal-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.5);
}

/* ==================
   FOOTER
   ================== */
.site-footer {
  background: rgba(19, 24, 41, 0.95);
  padding: 3rem 2rem;
  margin-top: 5rem;
  border-top: 2px solid rgba(0, 255, 136, 0.2);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-section h3 {
  color: #00FF88;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer-section p,
.footer-section a {
  color: #a0a0a0;
  text-decoration: none;
  line-height: 1.8;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #00FF88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #6b7280;
}

/* ==================
   RESPONSIVE DESIGN - ENHANCED FOR MOBILE
   ================== */

/* ==================
   MOBILE ENHANCEMENTS
   Optimized for Touch Devices
   ================== */
@media (max-width: 480px) {
  body {
    font-size: 15px; /* Increased for better readability */
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 255, 136, 0.2);
  }
  
  .header-container {
    padding: 0 1rem;
  }
  
  .logo {
    font-size: 1.35rem;
    letter-spacing: -0.3px;
  }
  
  .hero {
    padding: 2rem 1rem !important;
    min-height: auto !important;
  }
  
  .hero-title {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
  }
  
  .cta-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    display: block;
    /* Touch-friendly tap target */
    min-height: 48px;
  }
  
  .container {
    padding: 1.5rem 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  .card-grid {
    gap: 1.25rem;
    grid-template-columns: 1fr; /* Single column on mobile */
  }
  
  .card {
    padding: 1.25rem;
  }
  
  .card-title {
    font-size: 1.2rem;
    line-height: 1.3;
  }
  
  .card-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  /* Optimize buttons for touch */
  .read-more, .filter-btn, .cta-button {
    min-height: 44px;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
  
  /* Ad spaces optimized for mobile */
  .ad-space {
    padding: 0.875rem;
    min-height: 100px !important;
    margin: 1.5rem 0;
  }
  
  .ad-space.ad-hero {
    min-height: 100px !important;
  }
  
  .ad-space.ad-mid-content {
    min-height: 120px !important;
  }
  
  .ad-space.ad-sidebar {
    min-height: 250px !important;
    margin: 1.5rem 0;
  }
  
  /* Footer optimization */
  footer {
    padding: 2rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Form elements touch-friendly */
  input, textarea, select, button {
    font-size: 16px !important; /* Prevents zoom on iOS */
    min-height: 44px;
  }
}

/* Tablet Optimization */
@media (max-width: 1024px) and (min-width: 769px) {
  .nav-links {
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .container {
    padding: 2rem 1.5rem;
  }
}

/* Mobile Navigation - Enhanced */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    padding: 0.75rem;
    min-width: 44px;
    min-height: 44px;
  }
  
  .nav-links {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: calc(100vh - 75px);
    background: rgba(19, 24, 41, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 2px solid rgba(0, 255, 136, 0.3);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links li {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .nav-links a {
    width: 100%;
    padding: 1rem 1.25rem;
    display: block;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==================
   LOADING STATES
   ================== */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #00FF88;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

/* ==================
   UTILITY CLASSES
   ================== */
.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

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