/* ============================================
   EVENTS MOBILE OPTIMIZATION
   Simple Events, Referendums, Multi-Polls
   ============================================ */

@media (max-width: 768px) {

/* Events Page Layout */
.events-container {
  padding: 16px 0 !important;
}

/* Hero Section */
.events-hero {
  padding: 24px 16px !important;
  background: linear-gradient(135deg, #19861C 0%, #5cb85c 100%) !important;
  color: white !important;
  margin-bottom: 16px !important;
}

.events-hero h1 {
  font-size: 26px !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
}

.events-hero p {
  font-size: 15px !important;
  opacity: 0.9 !important;
  margin-bottom: 0 !important;
}

/* Event Type Tabs */
.event-type-tabs {
  display: flex !important;
  gap: 8px !important;
  padding: 0 16px !important;
  margin-bottom: 16px !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
}

.event-type-tabs::-webkit-scrollbar {
  display: none !important;
}

.event-type-tab {
  padding: 12px 20px !important;
  border-radius: 20px !important;
  background: white !important;
  border: 2px solid #e9ecef !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #495057 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  min-height: 44px !important;
}

.event-type-tab:active {
  transform: scale(0.95) !important;
}

.event-type-tab.active {
  background: #19861C !important;
  border-color: #19861C !important;
  color: white !important;
}

/* Events Grid */
.events-grid {
  padding: 0 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  margin-bottom: 80px !important;
}

/* Event Card */
.event-card {
  background: white !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  border: 1px solid #e9ecef !important;
}

/* Event Card Header */
.event-card-header {
  padding: 16px !important;
  border-bottom: 1px solid #f1f3f5 !important;
}

.event-type-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 12px !important;
  background: rgba(25, 134, 28, 0.1) !important;
  color: #19861C !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  margin-bottom: 12px !important;
}

.event-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #212529 !important;
  margin-bottom: 8px !important;
  line-height: 1.4 !important;
}

.event-description {
  font-size: 14px !important;
  color: #6c757d !important;
  line-height: 1.5 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Event Card Meta */
.event-meta {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  background: #f8f9fa !important;
  border-bottom: 1px solid #e9ecef !important;
  font-size: 13px !important;
  color: #6c757d !important;
}

.event-creator {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.creator-avatar {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background: #dee2e6 !important;
}

.event-location {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.event-time {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-left: auto !important;
}

/* Voting Section */
.event-voting {
  padding: 16px !important;
}

.voting-options {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
}

/* Simple Event - 3 Options */
.vote-option {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 10px !important;
  border: 2px solid #e9ecef !important;
  background: white !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  min-height: 56px !important;
}

.vote-option:active {
  transform: scale(0.98) !important;
}

.vote-option.selected {
  border-color: #19861C !important;
  background: rgba(25, 134, 28, 0.05) !important;
}

.vote-option-inner {
  position: relative !important;
  z-index: 2 !important;
  padding: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.vote-option-label {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #212529 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.vote-option-check {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  border: 2px solid #dee2e6 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  color: transparent !important;
}

.vote-option.selected .vote-option-check {
  border-color: #19861C !important;
  background: #19861C !important;
  color: white !important;
}

.vote-option-stats {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 14px !important;
  color: #6c757d !important;
}

.vote-percentage {
  font-weight: 600 !important;
  color: #212529 !important;
}

.vote-count {
  font-size: 13px !important;
}

/* Progress Bar */
.vote-progress {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  height: 100% !important;
  background: linear-gradient(90deg, rgba(25, 134, 28, 0.1) 0%, rgba(25, 134, 28, 0.05) 100%) !important;
  transition: width 0.3s ease !important;
  z-index: 1 !important;
}

/* Referendum/MultiPoll - Multiple Options */
.referendum-options,
.multipoll-options {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.referendum-option,
.multipoll-option {
  /* Same styles as vote-option */
}

/* MultiPoll - Checkbox Style */
.multipoll-option .vote-option-check {
  border-radius: 6px !important;
}

.multipoll-hint {
  font-size: 13px !important;
  color: #6c757d !important;
  text-align: center !important;
  margin-bottom: 12px !important;
  padding: 8px 12px !important;
  background: #f8f9fa !important;
  border-radius: 8px !important;
}

/* Vote Button */
.vote-submit-btn {
  width: 100% !important;
  padding: 16px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #19861C 0%, #5cb85c 100%) !important;
  color: white !important;
  border: none !important;
  min-height: 54px !important;
  box-shadow: 0 4px 12px rgba(25, 134, 28, 0.3) !important;
  transition: all 0.2s ease !important;
}

.vote-submit-btn:disabled {
  background: #e9ecef !important;
  color: #adb5bd !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

.vote-submit-btn:active:not(:disabled) {
  transform: scale(0.98) !important;
}

/* Results View */
.results-summary {
  padding: 16px !important;
  background: #f8f9fa !important;
  border-radius: 10px !important;
  margin-bottom: 16px !important;
}

.total-votes {
  font-size: 14px !important;
  color: #6c757d !important;
  text-align: center !important;
  font-weight: 600 !important;
}

/* Event Status */
.event-status {
  display: inline-block !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
}

.event-status.active {
  background: rgba(40, 167, 69, 0.1) !important;
  color: #28a745 !important;
}

.event-status.ended {
  background: rgba(108, 117, 125, 0.1) !important;
  color: #6c757d !important;
}

.event-status.cancelled {
  background: rgba(220, 53, 69, 0.1) !important;
  color: #dc3545 !important;
}

/* Event Images Gallery */
.event-images-gallery {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
  margin-bottom: 16px !important;
}

.event-image {
  width: 100% !important;
  height: 150px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  cursor: pointer !important;
}

.event-image.single {
  grid-column: 1 / -1 !important;
  height: 200px !important;
}

/* Create Event FAB */
.create-event-fab {
  position: fixed !important;
  bottom: calc(var(--mobile-bottom-nav-height) + 16px) !important;
  right: 16px !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #19861C 0%, #5cb85c 100%) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(25, 134, 28, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  z-index: 1000 !important;
}

/* Event Detail View */
.event-detail-container {
  padding-bottom: 80px !important;
}

.event-detail-header {
  padding: 20px 16px !important;
}

.event-detail-body {
  padding: 0 16px !important;
}

.event-detail-voting {
  position: sticky !important;
  bottom: 0 !important;
  background: white !important;
  padding: 16px !important;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1) !important;
  border-top: 1px solid #e9ecef !important;
}


} /* End of @media (max-width: 768px) */