/**
 * SharesNexus Main Stylesheet
 * Main styling for the public-facing parts of the site
 */

/* ======= Custom Variables ======= */
:root {
  /* Primary Colors */
  --primary: #2563eb;         /* Primary blue */
  --primary-dark: #1d4ed8;    /* Darker blue for hover states */
  --primary-light: #93c5fd;   /* Lighter blue for backgrounds */
  
  /* Secondary Colors */
  --secondary: #10b981;       /* Green for success/profit indicators */
  --secondary-dark: #059669;  /* Darker green */
  --secondary-light: #a7f3d0; /* Lighter green */
  
  /* Accent Colors */
  --accent: #f59e0b;          /* Orange for calls to action */
  --accent-dark: #d97706;     /* Darker orange */
  --accent-light: #fcd34d;    /* Lighter orange/yellow */
  
  /* Neutral Colors */
  --dark: #1f2937;            /* Dark gray for text */
  --medium: #6b7280;          /* Medium gray for secondary text */
  --light: #f3f4f6;           /* Light gray for backgrounds */
  --white: #ffffff;           /* White */
  
  /* Status Colors */
  --success: #10b981;         /* Green for success messages */
  --warning: #f59e0b;         /* Orange for warnings */
  --danger: #ef4444;          /* Red for errors */
  --info: #3b82f6;            /* Blue for information */
  
  /* Typography */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-secondary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ======= Base Styles ======= */
body {
  font-family: var(--font-primary);
  color: var(--dark);
  line-height: 1.6;
  background-color: #f8fafc;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

p {
  margin-bottom: 1rem;
}

/* ======= Bootstrap Overrides ======= */
.btn {
  border-radius: var(--radius-md);
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-success {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.btn-success:hover, .btn-success:focus {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

.btn-warning {
  background-color: var(--accent);
  border-color: var(--accent);
}

.btn-warning:hover, .btn-warning:focus {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary);
  border-color: var(--primary);
}

.card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.form-control {
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

.alert {
  border-radius: var(--radius-md);
  border: none;
}

.alert-primary {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary-dark);
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--secondary-dark);
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--accent-dark);
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.bg-primary {
  background-color: var(--primary) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.navbar {
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
}

.dropdown-menu {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: none;
  padding: 0.5rem;
}

.dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
}

.dropdown-item:hover, .dropdown-item:focus {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

/* ======= Custom Components ======= */



.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.feature-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Share Cards */
.share-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.share-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.share-card .card-header {
  background-color: var(--primary);
  color: var(--white);
  font-weight: 700;
  padding: 1rem;
}

.share-card .card-body {
  padding: 2rem;
}

.share-card .interest-rate {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.share-card .company-logo {
  max-height: 80px;
  margin-bottom: 1.5rem;
}

/* Investment Stats */
.stat-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-card .stat-label {
  color: var(--medium);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Progress Bars */
.progress {
  height: 0.75rem;
  border-radius: var(--radius-full);
  background-color: var(--light);
  margin-bottom: 0.5rem;
}

.progress-bar {
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

/* Testimonials */
.testimonial-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  color: var(--primary-light);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.3;
}

.testimonial-card .testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-card .testimonial-author {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
}

.testimonial-card .testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

.testimonial-card .testimonial-author-name {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.testimonial-card .testimonial-author-title {
  color: var(--medium);
  font-size: 0.875rem;
}

/* ======= Utility Classes ======= */
.shadow-hover {
  transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
  box-shadow: var(--shadow-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-md {
  border-radius: var(--radius-md);
}

.rounded-sm {
  border-radius: var(--radius-sm);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.bg-light-primary {
  background-color: rgba(37, 99, 235, 0.1);
}

.bg-light-success {
  background-color: rgba(16, 185, 129, 0.1);
}

.bg-light-warning {
  background-color: rgba(245, 158, 11, 0.1);
}

.bg-light-danger {
  background-color: rgba(239, 68, 68, 0.1);
}

/* ======= Animations ======= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.5s ease forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* ======= Responsive Adjustments ======= */
@media (max-width: 992px) {
  .hero-section {
    padding: 4rem 0;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
  }
  
  .feature-card i {
    font-size: 2.5rem;
  }
}

/* ======= Print Styles ======= */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background-color: var(--white);
  }
  
  .container {
    width: 100%;
    max-width: 100%;
  }
  
  a {
    text-decoration: underline;
    color: var(--dark);
  }
  
  .card, .shadow-sm, .shadow-md, .shadow-lg, .shadow-xl {
    box-shadow: none !important;
    border: 1px solid #e2e8f0;
  }
}