/* ============================================
   MENU DISPLAY WEBSITE - MAIN STYLESHEET
   ============================================ */

:root {
  --primary-color: #2c3e50;
  --secondary-color: #e74c3c;
  --accent-color: #f39c12;
  --light-bg: #ecf0f1;
  --white: #ffffff;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --border-color: #bdc3c7;
  --success: #27ae60;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', 'Garamond', serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
}

/* ============== HEADER & NAVIGATION ============== */

header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
  color: var(--white);
  padding: 1.5rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 2px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

nav a:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-2px);
}

nav a.active {
  background-color: var(--secondary-color);
  font-weight: bold;
}

/* ============== MAIN CONTAINER ============== */

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.container {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

/* ============== HERO SECTION ============== */

.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
  color: var(--white);
  padding: 4rem 2rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

/* ============== BUTTONS ============== */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--secondary-color);
  color: var(--white);
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-family: inherit;
}

.btn:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

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

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

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

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* ============== FORMS ============== */

.search-box {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

input[type="text"],
input[type="date"],
select,
textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

input[type="text"] {
  flex: 1;
  min-width: 200px;
}

textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
}

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

/* ============== CARDS & GRID ============== */

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

.card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  transform: translateY(-4px);
}

.card-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
  color: var(--white);
  padding: 1.5rem;
  border-bottom: 3px solid var(--secondary-color);
}

.card-header h2 {
  font-size: 1.3rem;
  margin: 0;
}

.card-header p {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  opacity: 0.9;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  color: var(--secondary-color);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.card-body p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ============== LISTS ============== */

.course-list {
  list-style: none;
  padding: 0;
}

.course-item {
  padding: 1rem;
  border-left: 4px solid var(--secondary-color);
  background-color: #f9f9f9;
  margin-bottom: 0.5rem;
  border-radius: 0 4px 4px 0;
}

.course-item strong {
  color: var(--secondary-color);
  display: block;
  margin-bottom: 0.3rem;
}

.course-item em {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ============== TABS ============== */

.tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tab-button {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.tab-button:hover {
  color: var(--secondary-color);
}

.tab-button.active {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
  font-weight: bold;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ============== FILTERS ============== */

.filter-section {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.filter-section h3 {
  margin-top: 0;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.filter-group {
  margin-bottom: 1rem;
}

.filter-group label {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  font-weight: normal;
}

.filter-group input[type="checkbox"] {
  margin-right: 0.3rem;
}

/* ============== FOOTER ============== */

footer {
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  border-top: 3px solid var(--secondary-color);
}

footer p {
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--accent-color);
  text-decoration: none;
}

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

/* ============== MODAL ============== */

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1rem;
}

.modal-header h2 {
  margin: 0;
}

.close-modal {
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-light);
  border: none;
  background: none;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--secondary-color);
}

/* ============== ALERTS ============== */

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

.alert-success {
  background-color: #d4edda;
  border-color: var(--success);
  color: #155724;
}

.alert-error {
  background-color: #f8d7da;
  border-color: var(--secondary-color);
  color: #721c24;
}

.alert-info {
  background-color: #d1ecf1;
  border-color: #0c5460;
  color: #0c5460;
}

/* ============== RESPONSIVE DESIGN ============== */

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    gap: 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

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

  .search-box {
    flex-direction: column;
  }

  input[type="text"] {
    width: 100%;
  }

  .tabs {
    flex-direction: column;
  }

  .tab-button {
    width: 100%;
    text-align: left;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .tab-button.active {
    border-left-color: var(--secondary-color);
    border-bottom: none;
  }

  .modal-content {
    width: 95%;
  }
}

/* ============== UTILITY CLASSES ============== */

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

.hidden {
  display: none;
}

.no-results {
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
}

.loading {
  text-align: center;
  padding: 2rem;
}

.loading::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}
