/* style.css - 2025 Mobile App Design */
:root {
  /* Swiss design color scheme - Lighter palette */
  --primary-color: #E3000F; /* Brighter Swiss red */
  --secondary-color: #0F67B0; /* Swiss blue */
  --text-color: #333333; /* Darker text for better contrast */
  --text-secondary: #6A6A6A; /* Lighter secondary text */
  --background-color: #F9F9F9; /* Lighter background */
  --card-background: #FFFFFF; /* White for cards */
  --error-color: #E3000F; /* Swiss red as error */
  --success-color: #4A8522; /* Green */
  --border-color: #E8E8E8; /* Lighter gray border */
  --highlight-color: #F0F0F0; /* Lighter gray highlight */
  --shadow-color: rgba(0, 0, 0, 0.05);
  --gradient-start: #E3000F; /* Swiss red */
  --gradient-end: #C00000; /* Darker Swiss red */
  --message-self: #E8F4FC; /* Light blue for user's messages */
  --message-other: #F5F5F5; /* Light gray for others' messages */
  --chat-bg: #FFFFFF; /* Chat background */
  --input-bg: #F5F5F5; /* Input background */
}

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

html {
  font-size: 18px;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

header h1 {
  color: var(--text-color);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.swiss-cross {
  font-weight: bold;
  font-size: 2rem;
  margin-right: 8px;
  position: relative;
  top: 0px;
  color: var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 1.6rem;
  margin: 1.5rem 0 1rem;
}

h3 {
  font-size: 1.4rem;
  margin: 1.2rem 0 0.8rem;
}

p {
  margin-bottom: 1rem;
}

/* Form Elements - Modernized for mobile */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.large-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1.1rem;
  border: none;
  border-radius: 12px;
  background-color: var(--input-bg);
  transition: all 0.3s;
  box-shadow: 0 2px 6px var(--shadow-color);
}

.large-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-color), 0 4px 8px var(--shadow-color);
  transform: translateY(-1px);
}

/* Button styles - Swiss precision */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  text-decoration: none;
  margin: 0.5rem 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 4px var(--shadow-color);
  background: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  display: none;
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px var(--shadow-color);
}

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

.btn-primary:hover {
  background-color: #B71C22;
}

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

.btn-secondary:hover {
  background-color: #0A5998;
}

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

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(76, 175, 80, 0.3);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 4px 10px var(--shadow-color) !important;
}

.btn i {
  margin-right: 8px;
}

/* Navigation styles - Swiss grid system */
.navigation {
  margin: 0 0 20px;
  position: relative;
  background-color: var(--card-background);
  border-radius: 4px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 2px 4px var(--shadow-color);
}

.navigation ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: space-around;
  background: var(--card-background);
}

.navigation li {
  flex: 1;
  text-align: center;
  border-right: 1px solid var(--border-color);
}

.navigation li:last-child {
  border-right: none;
}

.navigation a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 12px 0;
  transition: all 0.2s;
  flex-direction: row;
}

.navigation a::after {
  display: none;
}

.navigation a:hover,
.navigation a.active {
  color: var(--primary-color);
  background-color: var(--highlight-color);
}

.navigation a i {
  font-size: 1.2rem;
  margin-right: 8px;
  margin-bottom: 0;
}

/* Chat Interface - Swiss-inspired design */
.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px;
  background-color: var(--chat-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 16px;
  max-height: 600px;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary-color) transparent;
  scroll-behavior: smooth;
  gap: 16px;
  position: relative;
  padding-bottom: 40px; /* Extra space for typing indicators */
  box-shadow: 0 2px 4px var(--shadow-color);
}

.chat-container::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.chat-container::-webkit-scrollbar-track {
  background: transparent;
}

.chat-container::-webkit-scrollbar-thumb {
  background-color: rgba(15, 103, 176, 0.3);
  border-radius: 3px;
}

.chat-message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 8px;
  position: relative;
  border: 1px solid var(--border-color);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
}

.chat-message.visible {
  opacity: 1;
  transform: translateY(0);
}

.chat-message-self {
  background-color: var(--message-self);
  align-self: flex-end;
  margin-left: auto;
  border-color: rgba(15, 103, 176, 0.3);
}

.chat-message-other {
  background-color: var(--message-other);
  align-self: flex-start;
  margin-right: auto;
}

.chat-sender {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--secondary-color);
}

.chat-content {
  font-size: 1rem;
  line-height: 1.5;
  word-break: break-word;
}

.chat-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
  text-align: right;
}

.chat-input-container {
  display: flex;
  align-items: center;
  padding: 12px;
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 16px;
  position: relative;
  box-shadow: 0 2px 4px var(--shadow-color);
}

.chat-input {
  flex: 1;
  border: 1px solid var(--border-color);
  background-color: var(--input-bg);
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 1rem;
  transition: all 0.2s;
  margin-right: 10px;
}

.chat-input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(15, 103, 176, 0.1);
}

.chat-send-btn {
  width: 45px;
  height: 45px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px var(--shadow-color);
}

.chat-send-btn:hover {
  background-color: #0A5998;
}

.chat-send-btn i {
  font-size: 1.2rem;
  margin-right: 0;
}

/* Event details section - Modern card layout */
.event-details {
  background-color: var(--card-background);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px var(--shadow-color);
}

.event-details p {
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
}

.event-details i {
  color: var(--primary-color);
  margin-right: 8px;
  width: 20px;
  text-align: center;
}

.event-details strong {
  margin-right: 5px;
  font-weight: 600;
  color: var(--text-color);
}

.event-description {
  margin-top: 15px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

/* Participants section */
.event-participants-container {
  background-color: var(--card-background);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px var(--shadow-color);
}

.event-participants-container h3 {
  color: var(--text-color);
  font-size: 1.2rem;
  margin-top: 0;
  display: flex;
  align-items: center;
}

.event-participants-container h3 i {
  color: var(--primary-color);
  margin-right: 10px;
}

.participants-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.participants-list li {
  padding: 8px 16px;
  background-color: var(--highlight-color);
  border-radius: 30px;
  font-size: 0.9rem;
  color: var(--text-color);
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 5px var(--shadow-color);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.participants-list li i {
  margin-right: 5px;
  color: var(--primary-color);
}

/* Status messages */
.loading-message, .error-message, .info-message {
  padding: 16px;
  border-radius: 4px;
  margin: 20px auto;
  max-width: 80%;
  text-align: center;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

.loading-message {
  background-color: var(--highlight-color);
  color: var(--text-color);
}

.loading-message i {
  margin-right: 8px;
  animation: spin 1s infinite linear;
}

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

.error-message {
  background-color: rgba(216, 35, 42, 0.1);
  color: var(--error-color);
  border-color: rgba(216, 35, 42, 0.3);
}

.info-message {
  background-color: rgba(15, 103, 176, 0.1);
  color: var(--secondary-color);
  border-color: rgba(15, 103, 176, 0.3);
}

/* Footer styling */
footer {
  margin-top: auto;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
}

footer a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  text-decoration: underline;
}

/* Simple link style */
.large-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.large-link:hover {
  text-decoration: underline;
}

/* Touch enhancements */
.btn:active, .chat-send-btn:active, .emoji-button:active, .voice-button:active {
  transform: translateY(1px);
}

/* Media Queries for Responsive Design */
@media (max-width: 992px) {
  .event-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  
  .container {
    padding: 15px;
  }
  
  .filter-form {
    flex-direction: column;
  }
  
  .filter-form select, 
  .filter-form button {
    margin: 5px 0;
    width: 100%;
  }
  
  .navigation ul {
    gap: 0;
  }
  
  .navigation a {
    padding: 10px 5px;
    font-size: 0.8rem;
  }
  
  .navigation a i {
    font-size: 1.2rem;
  }
  
  .event-details p {
    font-size: 0.9rem;
  }
  
  .chat-container {
    padding: 15px;
    max-height: 500px;
  }
  
  .chat-message {
    max-width: 85%;
    padding: 10px 14px;
  }
  
  .chat-sender {
    font-size: 0.85rem;
  }
  
  .chat-content {
    font-size: 0.95rem;
  }
  
  .chat-time {
    font-size: 0.7rem;
  }
  
  .chat-input {
    padding: 12px 16px;
  }
  
  .chat-send-btn {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 10px;
  }
  
  h1 {
    font-size: 1.6rem;
  }
  
  h2 {
    font-size: 1.3rem;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  
  .event-details,
  .event-participants-container {
    padding: 15px;
    border-radius: 16px;
  }
  
  .chat-container {
    padding: 12px;
    border-radius: 16px;
    max-height: 400px;
  }
  
  .chat-input-container {
    padding: 10px;
    border-radius: 16px;
  }
  
  .chat-input {
    padding: 10px 15px;
    font-size: 0.95rem;
  }
  
  .chat-send-btn {
    width: 40px;
    height: 40px;
  }
  
  .participants-list li {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  
  .chat-message {
    max-width: 90%;
    padding: 10px 12px;
  }
}

/* Touch enhancements for mobile devices */
@media (hover: none) {
  .btn:hover {
    transform: none !important;
    box-shadow: 0 4px 10px var(--shadow-color) !important;
  }
  
  .btn:active {
    transform: scale(0.97) !important;
  }
  
  .navigation a:hover::after {
    width: 0;
  }
  
  .navigation a:active::after {
    width: 50%;
  }
  
  .chat-send-btn:hover {
    transform: none;
  }
  
  .chat-send-btn:active {
    transform: scale(0.95);
  }
}

/* Haptic feedback simulation */
.btn, .chat-send-btn, .navigation a {
  -webkit-tap-highlight-color: transparent;
}

.btn:active, .chat-send-btn:active, .navigation a:active {
  transition: transform 0.05s;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #FF3B42; /* Brighter Swiss red for dark mode */
    --secondary-color: #2E9CFF; /* Brighter Swiss blue */
    --text-color: #F0F0F0; /* Lighter text for dark mode */
    --text-secondary: #C0C0C0; /* Lighter secondary text */
    --background-color: #242424; /* Less dark background */
    --card-background: #2E2E2E; /* Less dark cards */
    --border-color: #454545; /* Lighter dark borders */
    --highlight-color: #3A3A3A; /* Lighter highlight */
    --shadow-color: rgba(0, 0, 0, 0.2);
    --input-bg: #3A3A3A; /* Lighter input background */
    --message-self: #1D4256; /* Less dark blue for user's messages */
    --message-other: #3A3A3A; /* Less dark gray for others' messages */
    --chat-bg: #2E2E2E; /* Less dark chat background */
    --gradient-start: #FF3B42; /* Brighter Swiss red */
    --gradient-end: #E3000F; /* Swiss red */
  }
  
  .btn-secondary {
    background-color: var(--secondary-color);
    color: #FFFFFF;
  }
  
  .btn-secondary:hover {
    background-color: #46A6FF;
  }
  
  .loading-message {
    background-color: rgba(255, 59, 66, 0.1);
  }
  
  .error-message {
    background-color: rgba(255, 59, 66, 0.2);
  }
  
  .info-message {
    background-color: rgba(26, 144, 255, 0.2);
  }
  
  .chat-container::-webkit-scrollbar-thumb {
    background-color: rgba(26, 144, 255, 0.5);
  }
  
  /* Improve contrast for dark mode buttons */
  .btn-primary {
    background-color: var(--primary-color);
  }
  
  .btn-primary:hover {
    background-color: #FF5259;
  }
  
  .event-card:hover {
    background-color: rgba(255, 59, 66, 0.1);
    border-color: var(--primary-color);
  }
  
  header h1 {
    color: #FFFFFF;
  }
  
  /* Darker borders and shadows for better contrast */
  .event-card, 
  .navigation, 
  .filter-section,
  .chat-container,
  .chat-input-container,
  .notification {
    border-color: #333333;
  }
  
  /* Improve text contrast */
  h1, h2, h3, h4, h5, h6 {
    color: #FFFFFF;
  }
  
  .chat-input:focus {
    border-color: var(--secondary-color);
  }
}

/* Motion reduction mode for accessibility */
@media (prefers-reduced-motion) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Emoji Picker - Swiss simplified */
.emoji-button, .voice-button {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--input-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 10px;
}

.emoji-button:hover, .voice-button:hover {
  background-color: var(--highlight-color);
  color: var(--secondary-color);
}

.emoji-panel {
  position: absolute;
  bottom: 60px;
  left: 10px;
  background-color: var(--card-background);
  border-radius: 4px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
  z-index: 10;
  max-width: 280px;
  box-shadow: 0 2px 8px var(--shadow-color);
}

.emoji-item {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.emoji-item:hover {
  background-color: var(--highlight-color);
}

/* Typing Indicator */
.typing-indicator {
  padding: 10px 15px;
  background-color: var(--highlight-color);
  border-radius: 4px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 70%;
}

.typing-indicator .dots {
  margin-left: 5px;
  display: flex;
}

.typing-indicator .dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--text-secondary);
  margin: 0 2px;
  display: inline-block;
  animation: typingDots 1.4s infinite ease-in-out;
}

.typing-indicator .dots span:nth-child(1) {
  animation-delay: 0s;
}

.typing-indicator .dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator .dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDots {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

/* Voice input */
.voice-button.recording {
  background-color: rgba(216, 35, 42, 0.1);
  color: var(--primary-color);
  border-color: rgba(216, 35, 42, 0.3);
}

/* Message action buttons */
.chat-message-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 5px;
  opacity: 0;
  transition: opacity 0.2s;
}

.chat-message:hover .chat-message-actions {
  opacity: 1;
}

.chat-action-btn {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--highlight-color);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.8rem;
}

.chat-action-btn:hover {
  background-color: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}

/* Like animation - Swiss minimalist */
.like-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary-color);
  font-size: 2.5rem;
  opacity: 0;
  animation: likeAnimation 0.8s forwards;
  pointer-events: none;
}

@keyframes likeAnimation {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  30% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}

.chat-message.liked {
  position: relative;
}

.chat-message.liked::after {
  content: '❤️';
  position: absolute;
  bottom: 5px;
  right: 5px;
  font-size: 0.8rem;
}

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

/* Add additional enhancements to existing elements */
.chat-input:focus + .chat-send-btn {
  transform: rotate(-10deg);
}

.chat-send-btn:active {
  transform: scale(0.9);
}

/* Event card optimizations for better performance */
.event-card {
  will-change: transform;
  contain: content;
}

/* Notification system - Swiss precision */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 16px;
  border-radius: 4px;
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow-color);
  max-width: 350px;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
  contain: content;
}

.notification.visible {
  transform: translateY(0);
  opacity: 1;
}

.notification-content {
  display: flex;
  align-items: center;
}

.notification-content i {
  margin-right: 12px;
  font-size: 1.5rem;
}

.notification-success .notification-content i {
  color: var(--success-color);
}

.notification-error .notification-content i {
  color: var(--error-color);
}

.notification-info .notification-content i {
  color: var(--secondary-color);
}

.notification-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, background-color 0.2s;
}

.notification-close:hover {
  opacity: 1;
  background-color: var(--highlight-color);
}

/* Performance optimizations */
@media (prefers-reduced-motion: no-preference) {
  .event-card {
    transition: transform 0.2s, box-shadow 0.2s;
    will-change: transform, box-shadow;
  }
}

/* Loading skeleton animation */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-loader {
  background: linear-gradient(90deg, 
    var(--highlight-color) 25%, 
    var(--input-bg) 50%, 
    var(--highlight-color) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  height: 1em;
  width: 100%;
}

/* Add view transition API support for modern browsers */
@supports (view-transition-name: none) {
  .event-card {
    view-transition-name: event-card;
  }
}

/* Event list styles */
.event-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.event-card {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 20px;
  transition: all 0.2s;
  will-change: transform;
  contain: content;
  box-shadow: 0 2px 4px var(--shadow-color);
}

.event-card:hover {
  border-color: var(--primary-color);
  background-color: rgba(216, 35, 42, 0.03);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-color);
}

.event-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.event-details p {
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
}

.event-details i {
  color: var(--primary-color);
  margin-right: 8px;
  width: 20px;
  text-align: center;
}

.event-details strong {
  margin-right: 5px;
  font-weight: 600;
  color: var(--text-color);
}

.event-description {
  margin-top: 15px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.event-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* Filter section */
.filter-section {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px var(--shadow-color);
}

.filter-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.filter-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Welcome Banner */
.welcome-banner {
  background-color: var(--card-background);
  border-radius: 4px;
  padding: 40px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 2px 4px var(--shadow-color);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary-color);
}

.welcome-content {
  max-width: 800px;
  margin: 0 auto;
}

.welcome-content h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.8rem;
  letter-spacing: -0.5px;
}

.welcome-content p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.user-welcome {
  padding: 15px;
  background-color: var(--highlight-color);
  border-radius: 4px;
  display: inline-block;
}

.user-welcome p {
  margin-bottom: 15px;
}

/* Feature Cards */
.features-grid {
  margin-bottom: 40px;
}

.features-grid h2 {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.features-grid h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.feature-card {
  background-color: var(--card-background);
  border-radius: 4px;
  border: 1px solid var(--border-color);
  padding: 30px;
  transition: all 0.3s ease;
  position: relative;
  text-align: center;
  box-shadow: 0 2px 4px var(--shadow-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--shadow-color);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--highlight-color);
  border-radius: 4px;
  color: var(--primary-color);
}

.feature-icon i {
  font-size: 32px;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Testimonials */
.testimonials {
  margin-bottom: 40px;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

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

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
}

.testimonial-card {
  background-color: var(--card-background);
  border-radius: 4px;
  border: 1px solid var(--border-color);
  padding: 25px;
  position: relative;
  box-shadow: 0 2px 4px var(--shadow-color);
}

.testimonial-card::before {
  content: '\201C';
  font-size: 60px;
  position: absolute;
  top: 20px;
  left: 20px;
  color: var(--highlight-color);
  font-family: Georgia, serif;
  z-index: 0;
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-content p {
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 15px;
}

.testimonial-author {
  text-align: right;
  color: var(--text-secondary);
  font-weight: 600;
}

.testimonial-author span {
  display: inline-block;
  border-top: 2px solid var(--secondary-color);
  padding-top: 5px;
}

/* Responsive adjustments for cards */
@media (max-width: 768px) {
  .welcome-banner {
    padding: 25px;
  }
  
  .feature-cards {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .feature-card {
    padding: 20px;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
  }
  
  .feature-icon i {
    font-size: 28px;
  }
  
  .testimonial-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .welcome-banner {
    padding: 20px;
  }
  
  .feature-cards {
    grid-template-columns: 1fr;
  }
  
  .feature-card {
    padding: 15px;
  }
  
  .testimonial-card {
    padding: 20px;
  }
  
  .testimonial-card::before {
    font-size: 50px;
  }
}
