/* ============================================
   TICKETSASA - MAIN STYLESHEET
   ============================================ */

:root {
  --primary-red: #c41e3a;
  --primary-dark: #1a1a1a;
  --light-bg: #f8f9fa;
  --border-color: #e0e0e0;
  --text-dark: #333;
  --text-light: #666;
  --success: #10b981;
  --error: #ef4444;
}

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

html,
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-dark);
  background-color: #fff;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER STYLES */
.main-header {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.header-logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-red);
  text-decoration: none;
}

.header-logo svg {
  width: 32px;
  height: 32px;
}

.header-nav {
  display: flex;
  gap: 2rem;
  flex: 1;
  margin-left: 3rem;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-red);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.user-menu,
.mobile-user-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info,
.mobile-user-name {
  font-size: 0.9rem;
  color: var(--text-light);
}

.btn-sell-event {
  background: var(--primary-red);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-sell-event:hover {
  background: #a01729;
  text-decoration: none;
}

/* HAMBURGER MENU */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 0;
  background: white;
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 300px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  display: flex;
}

.mobile-nav-link {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
  text-decoration: none;
  transition: background 0.2s;
}

.mobile-nav-link:hover {
  background: var(--light-bg);
  color: var(--primary-red);
}

/* HERO SECTION */
.hero-section {
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%),
    url("https://via.placeholder.com/1920x600") center / cover;
  color: white;
  padding: 4rem 2rem;
  position: relative;
}

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

.hero-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid transparent;
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.tab-btn.active {
  background: white;
  color: var(--primary-red);
  border-color: var(--primary-red);
}

.search-container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  margin-bottom: 2rem;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.search-input-group {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0 1rem;
  background: white;
}

.search-input-group i {
  color: var(--text-light);
  margin-right: 0.5rem;
}

.search-input-group input {
  border: none;
  padding: 0.7rem;
  flex: 1;
  font-size: 1rem;
  outline: none;
}

.btn-find-event {
  background: var(--primary-red);
  color: white;
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}

.btn-find-event:hover {
  background: #a01729;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.featured-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.featured-info p {
  margin: 0.5rem 0;
  color: var(--text-light);
}

.btn-view {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-red);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  margin-top: 1rem;
  width: fit-content;
  transition: background 0.3s;
}

.btn-view:hover {
  background: #a01729;
  text-decoration: none;
}

/* EVENTS SECTION */
.events-section,
.vacation-section,
.categories-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--text-dark);
}

.view-all {
  color: var(--primary-red);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.event-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.event-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.event-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--light-bg);
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-body {
  padding: 1rem;
}

.event-body h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.event-location,
.event-price {
  font-size: 0.9rem;
  color: var(--text-light);
}

.event-price {
  color: var(--primary-red);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* VACATION SECTION */
.vacation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: center;
}

.vacation-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.vacation-image img {
  width: 100%;
  border-radius: 8px;
}

.vacation-featured {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.vacation-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.vacation-detail-image img {
  width: 100%;
  border-radius: 8px;
}

.vacation-detail-info p {
  margin: 1rem 0;
  color: var(--text-light);
}

.price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-red);
}

.price span {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* CATEGORIES */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.category-card:hover {
  background: var(--primary-red);
  color: white;
  transform: translateY(-5px);
}

.category-card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  color: var(--primary-red);
}

.category-card:hover i {
  color: white;
}

/* EVENTS BROWSE */
.events-browse {
  padding: 3rem 2rem;
}

.filters {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.filter-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
}

.filter-group input {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
}

.btn-filter {
  background: var(--primary-red);
  color: white;
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s;
}

.btn-filter:hover {
  background: #a01729;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.event-list-item {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  align-items: center;
  transition: all 0.3s;
}

.event-list-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-thumbnail {
  width: 100%;
  height: 150px;
  border-radius: 4px;
  overflow: hidden;
}

.event-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-details-full h3 {
  margin-bottom: 0.5rem;
}

.event-details-full p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0.3rem 0;
}

/* AUTHENTICATION */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  background: var(--light-bg);
  padding: 2rem;
}

.auth-card {
  background: white;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 450px;
}

.auth-card h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--primary-red);
}

.auth-subtitle {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.form-group small {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

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

.btn-primary:hover {
  background: #a01729;
  text-decoration: none;
}

.btn-secondary {
  background: var(--light-bg);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

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

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.auth-links,
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-links p,
.auth-footer p {
  font-size: 0.9rem;
}

.auth-links a,
.auth-footer a {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
}

/* FOOTER */
.main-footer {
  background: var(--primary-dark);
  color: white;
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

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

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--primary-red);
  text-decoration: none;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.footer-brand p {
  color: #ccc;
  font-size: 0.9rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.7rem;
  border: none;
  border-radius: 4px;
}

.btn-subscribe {
  background: var(--primary-red);
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-subscribe:hover {
  background: #a01729;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: #ccc;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--primary-red);
}

/* ALERTS */
.alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  border-left: 4px solid;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border-left-color: #10b981;
}

.alert-error {
  background: #fee2e2;
  color: #7f1d1d;
  border-left-color: #ef4444;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border-left-color: #3b82f6;
}

/* EVENT DETAIL */
.event-detail-section {
  padding: 3rem 2rem;
}

.event-hero {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.event-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.event-main-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.event-by {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.event-meta-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 8px;
}

.meta-block {
  display: flex;
  gap: 1rem;
}

.meta-block i {
  font-size: 1.5rem;
  color: var(--primary-red);
  flex-shrink: 0;
}

.meta-block .label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
}

.meta-block .value {
  display: block;
  font-weight: 600;
}

.event-description {
  margin-top: 2rem;
}

.event-description h3 {
  margin-bottom: 1rem;
}

.ticket-booking {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 8px;
}

.ticket-booking h3 {
  margin-bottom: 1rem;
}

.ticket-booking .price {
  font-size: 2rem;
  margin: 1rem 0;
}

.share-event {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.share-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.share-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-red);
  color: white;
  border-radius: 50%;
  transition: background 0.3s;
}

.share-icons a:hover {
  background: #a01729;
  text-decoration: none;
}

/* LEGAL PAGES */
.legal-content {
  padding: 2rem 0;
  max-width: 900px;
}

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.legal-content ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* PAGE CONTENT */
.page-content {
  min-height: 60vh;
  padding: 3rem 2rem;
}

.page-content .container {
  max-width: 1000px;
}

.page-content h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-form-section,
.contact-info-section {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 8px;
}

.contact-info {
  margin: 2rem 0;
}

.contact-info p {
  margin: 1rem 0;
}

.social-media {
  margin-top: 2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-red);
  color: white;
  border-radius: 50%;
  margin-right: 0.5rem;
  transition: background 0.3s;
}

.social-link:hover {
  background: #a01729;
  text-decoration: none;
}

.holidays-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.holiday-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.holiday-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.holiday-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.holiday-card h3,
.holiday-card p {
  padding: 0 1rem;
}

.holiday-card h3 {
  padding-top: 1rem;
}

.holiday-card .price {
  padding: 0 1rem;
  margin: 0.5rem 0;
}

.holiday-card button {
  width: calc(100% - 2rem);
  margin: 1rem;
}

/* RESPONSIVE */
.desktop-only {
  display: block;
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .desktop-only {
    display: none !important;
  }

  .search-box {
    grid-template-columns: 1fr;
  }

  .search-container {
    grid-template-columns: 1fr;
  }

  .btn-find-event {
    width: 100%;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-image {
    height: 250px;
  }

  .event-detail-grid {
    grid-template-columns: 1fr;
  }

  .event-list-item {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .vacation-grid {
    grid-template-columns: 1fr;
  }

  .vacation-detail-grid {
    grid-template-columns: 1fr;
  }

  .filter-form {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }

  .auth-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 1rem;
  }

  .header-logo {
    font-size: 1.2rem;
  }

  .hero-tabs {
    flex-wrap: wrap;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: 1.5rem;
  }

  .event-detail-section {
    padding: 1rem;
  }

  .event-hero {
    height: 250px;
  }
}
