/* Global Styles */
:root {
  /* Color palette */
  --primary-color: #5d3fd3;         /* Deep purple */
  --primary-dark: #4527a0;          /* Darker purple */
  --primary-light: #8561f5;         /* Lighter purple */
  
  --secondary-color: #ff5722;       /* Orange */
  --secondary-dark: #e64a19;        /* Darker orange */
  --secondary-light: #ff8a65;       /* Lighter orange */
  
  --accent-color: #00bcd4;          /* Cyan */
  --accent-dark: #0097a7;           /* Darker cyan */
  --accent-light: #4dd0e1;          /* Lighter cyan */
  
  --success-color: #4caf50;         /* Green */
  --warning-color: #ff9800;         /* Amber */
  --danger-color: #f44336;          /* Red */
  --info-color: #2196f3;            /* Blue */
  
  --text-primary: #212121;          /* Almost black */
  --text-secondary: #757575;        /* Dark gray */
  --text-disabled: #9e9e9e;         /* Medium gray */
  --text-light: #f5f5f5;            /* Almost white */
  
  --bg-color: #ffffff;              /* White */
  --bg-light: #f5f5f5;              /* Light gray */
  --bg-dark: #303030;               /* Dark background */
  
  /* Fonts */
  --font-primary: 'Nunito', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  --font-size-base: 16px;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2.5rem;
  
  /* Border radius */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 2rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.1);
  --shadow-xl: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
  
  /* Animation */
  --transition-speed: 0.3s;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Base styles */
body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background-color: var(--bg-light);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  margin-top: 0;
  color: var(--text-primary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

p {
  margin-bottom: var(--spacing-md);
}

/* Bootstrap overrides */
.btn {
  border-radius: var(--border-radius-md);
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  transition: all var(--transition-speed);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

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

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

.btn-success {
  background-color: var(--success-color);
  border-color: var(--success-color);
}

.btn-warning {
  background-color: var(--warning-color);
  border-color: var(--warning-color);
}

.btn-danger {
  background-color: var(--danger-color);
  border-color: var(--danger-color);
}

.btn-info {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

.card {
  border: none;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-speed);
  overflow: hidden;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.card-title {
  font-family: var(--font-secondary);
  font-weight: 600;
  color: var(--text-primary);
}

.form-control, .form-select {
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.25rem rgba(93, 63, 211, 0.25);
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-text {
  color: var(--text-secondary);
}

.alert {
  border-radius: var(--border-radius-md);
  border: none;
  box-shadow: var(--shadow-sm);
}

.alert-primary {
  background-color: rgba(93, 63, 211, 0.1);
  color: var(--primary-dark);
}

.alert-secondary {
  background-color: rgba(255, 87, 34, 0.1);
  color: var(--secondary-dark);
}

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

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

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

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

.badge {
  font-weight: 600;
  padding: 0.5em 0.75em;
  border-radius: var(--border-radius-sm);
}

.badge-primary {
  background-color: var(--primary-color);
}

.badge-secondary {
  background-color: var(--secondary-color);
}

/* Navbar styling */
.navbar {
  background-color: var(--bg-color);
  box-shadow: var(--shadow-md);
  padding: 1rem 2rem;
}

.navbar-brand {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.navbar-brand span {
  color: var(--secondary-color);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-nav .nav-link {
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: color var(--transition-speed);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
}

.navbar-nav .dropdown-menu {
  border: none;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

.navbar-nav .dropdown-item {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
  background-color: rgba(93, 63, 211, 0.1);
  color: var(--primary-color);
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="white" fill-opacity="0.05" d="M0,96L48,106.7C96,117,192,139,288,144C384,149,480,139,576,122.7C672,107,768,85,864,96C960,107,1056,149,1152,154.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero .btn {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
}

/* Event card */
.event-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: all var(--transition-speed);
  height: 100%;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.event-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-speed);
}

.event-card:hover .card-img-top {
  transform: scale(1.05);
}

.event-card .badge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
}

.event-card .card-body {
  padding: var(--spacing-lg);
}

.event-card .card-title {
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.event-card .card-text {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.event-date {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
}

.event-date i {
  margin-right: var(--spacing-xs);
  color: var(--primary-color);
}

.event-location {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
}

.event-location i {
  margin-right: var(--spacing-xs);
  color: var(--secondary-color);
}

.event-price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 4rem 0 2rem;
}

.footer h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-speed);
}

.footer-links a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all var(--transition-speed);
}

.footer-social a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 3rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* Auth forms */
.auth-form {
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.auth-form h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.auth-form .btn {
  width: 100%;
  padding: 0.75rem;
}

.auth-form .form-text {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-tabs {
  display: flex;
  margin-bottom: 2rem;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
  border-bottom: 3px solid transparent;
}

.auth-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.auth-tab:hover:not(.active) {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-light);
}

/* Section headings */
.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  transform: translateX(-50%);
}

.section-heading p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

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

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Utilities */
.rounded-lg {
  border-radius: var(--border-radius-lg) !important;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
  box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  :root {
    --font-size-base: 15px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-base: 14px;
  }
  
  .hero {
    padding: 4rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-heading h2 {
    font-size: 1.75rem;
  }
  
  .section-heading p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .navbar {
    padding: 0.75rem 1rem;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
  }
  
  .section-heading {
    margin-bottom: 2rem;
  }
  
  .section-heading h2 {
    font-size: 1.5rem;
  }
  
  .section-heading p {
    font-size: 0.9rem;
  }
  
  .auth-form {
    padding: 1.5rem;
  }
}
