/* Econ 730: Causal Panel Data - Course Website Styles
   Modern Minimal Design with Emory Branding
   ========================================== */

/* CSS Variables for Emory Colors */
:root {
  --emory-blue: #012169;
  --emory-gold: #F2A900;
  --emory-light-gold: #F7D47B;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #6c757d;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-accent: #f0f4f8;
  --border-light: #e9ecef;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.2s ease;
}

/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-white);
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--emory-blue);
  margin-top: 0;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--emory-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--emory-gold);
}

/* Navigation */
.navbar {
  background-color: var(--emory-blue);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

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

.nav-brand {
  color: var(--bg-white);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1rem 0;
  letter-spacing: 0.02em;
}

.nav-brand:hover {
  color: var(--emory-gold);
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  padding: 1rem 1.25rem;
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--bg-white);
  background-color: rgba(255, 255, 255, 0.1);
  border-bottom-color: var(--emory-gold);
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--bg-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--emory-blue);
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 2rem;
    border-bottom: none;
  }
}

/* Hero Section */
.hero {
  background: var(--bg-light);
  color: var(--text-primary);
  padding: 3rem 2rem;
  border-bottom: 1px solid var(--border-light);
}

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

.hero h1 {
  color: var(--emory-blue);
  margin-bottom: 1.5rem;
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.2;
}

.hero .course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.hero .meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero .meta-item svg {
  color: var(--emory-gold);
  flex-shrink: 0;
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.5rem;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--emory-gold);
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-icon {
  width: 24px;
  height: 24px;
  color: var(--emory-gold);
}

/* Quick Links */
.quick-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: #001a4d;
  color: var(--bg-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--emory-blue);
  border: 2px solid var(--emory-blue);
}

.btn-outline:hover {
  background-color: var(--emory-blue);
  color: var(--bg-white);
}

/* Schedule Page Styles */
.schedule-header {
  background: var(--bg-accent);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.week-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: var(--transition);
}

.week-card:hover {
  box-shadow: var(--shadow-md);
}

.week-header {
  background: var(--bg-light);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.week-number {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.week-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--emory-blue);
  margin: 0;
  flex: 1;
}

.week-content {
  padding: 1.5rem;
}

.week-section {
  margin-bottom: 1.25rem;
}

.week-section:last-child {
  margin-bottom: 0;
}

.week-section h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.materials-list {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.material-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: var(--bg-light);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--emory-blue);
  transition: var(--transition);
}

.material-link:hover {
  background: var(--emory-gold);
  color: var(--emory-blue);
}

.material-link svg {
  width: 16px;
  height: 16px;
}

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

.readings-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.readings-list li:last-child {
  border-bottom: none;
}

.readings-list .required {
  color: var(--emory-blue);
  font-weight: 500;
}

.readings-list .required::before {
  content: "★ ";
  color: var(--emory-gold);
}

/* Instructor Info */
.instructor-section {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.instructor-info {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

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

.instructor-details p {
  margin-bottom: 0.25rem;
}

/* Footer */
.footer {
  background: var(--bg-light);
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border-light);
  margin-top: 3rem;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--emory-blue);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* Coming Soon Badge */
.coming-soon {
  display: inline-block;
  background: var(--bg-accent);
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-style: italic;
}

/* Table Styles for Schedule */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.schedule-table th,
.schedule-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.schedule-table th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--emory-blue);
}

.schedule-table tr:hover {
  background: var(--bg-accent);
}

/* Print Styles */
@media print {
  .navbar, .nav-toggle {
    display: none;
  }

  .hero {
    background: var(--emory-blue);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .container {
    max-width: 100%;
    padding: 1rem;
  }
}
