/* ========================================
   NOEMA ACADEMY - MAIN STYLES
   Based on the design screenshot
   Clean, minimal, dark academia aesthetic
   ======================================== */

/* CSS Variables */
:root {
  --cream: #f7f5f2;
  --cream-dark: #eae6e0;
  --black: #000000;
  --charcoal: #1a1a1a;
  --gray: #6b6b6b;
  --gray-light: #9b9b9b;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-strong: rgba(0, 0, 0, 0.2);
  --border: rgba(0, 0, 0, 0.1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  background: var(--cream);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  line-height: 1.2;
}

/* Header & Navigation */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(247, 245, 242, 0.95);
}

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

.logo-link {
  text-decoration: none;
}

.logo {
  width: 64px;
  height: 64px;
  background: var(--black);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 48px;
  list-style: none;
}

.nav-links a {
  color: var(--black);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.6;
}

/* Hero Section */
.hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 48px;
  text-align: center;
}

.hero-title {
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--black);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--gray);
  margin-bottom: 48px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  border: none;
}

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

.btn-primary:hover {
  background: var(--charcoal);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}

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

/* Sections */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 48px;
}

.section-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-content-reverse {
  grid-template-columns: 1fr 1fr;
}

.section-text h2 {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--black);
}

.section-text p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 32px;
}

.section-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow-strong);
}

.section-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Current Work Section */
.section-current-work {
  background: var(--white);
  border-radius: 0;
  max-width: 100%;
}

.work-list {
  list-style: none;
  margin-bottom: 32px;
}

.work-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.work-item:last-child {
  border-bottom: none;
}

.work-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
}

.work-meta {
  font-size: 16px;
  color: var(--gray);
}

.work-type {
  color: var(--black);
  font-weight: 500;
}

/* Three Column Section */
.section-three-col {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 48px;
}

.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
}

.col-item h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--black);
}

.col-item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
}

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 48px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo svg {
  width: 40px;
  height: 40px;
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-social {
  display: flex;
  gap: 24px;
}

.footer-social a {
  color: var(--white);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-social a:hover {
  opacity: 1;
}

.footer-social svg {
  width: 24px;
  height: 24px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .site-nav {
    padding: 20px 32px;
  }

  .nav-links {
    gap: 32px;
  }

  .section-content,
  .section-content-reverse {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .three-col-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero {
    padding: 80px 32px;
  }

  .section {
    padding: 60px 32px;
  }
}

@media (max-width: 640px) {
  .site-nav {
    padding: 16px 24px;
  }

  .logo {
    width: 56px;
    height: 56px;
  }

  .nav-links {
    gap: 24px;
    font-size: 14px;
  }

  .hero {
    padding: 60px 24px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .section {
    padding: 48px 24px;
  }

  .section-text h2 {
    font-size: 32px;
  }

  .section-text p {
    font-size: 16px;
  }

  .footer-content {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* Page-Specific Styles */

/* Courses Page */
.page-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px 40px;
  text-align: center;
}

.page-title {
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 300;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.page-subtitle {
  font-size: 20px;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.course-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-strong);
}

.course-image {
  width: 100%;
  height: 240px;
  background: var(--cream-dark);
  object-fit: cover;
}

.course-content {
  padding: 32px;
}

.course-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.status-available {
  background: rgba(0, 0, 0, 0.08);
  color: var(--black);
}

.status-coming {
  background: rgba(107, 107, 107, 0.1);
  color: var(--gray);
}

.course-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--black);
}

.course-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  margin-bottom: 24px;
}

.course-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 24px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-item svg {
  width: 16px;
  height: 16px;
}

/* Philosophy Page */
.philosophy-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 48px;
}

.manifesto-section {
  margin-bottom: 64px;
}

.manifesto-section h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--black);
}

.manifesto-section p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.manifesto-section blockquote {
  border-left: 4px solid var(--black);
  padding-left: 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--gray);
  font-size: 18px;
}

.founder-section {
  background: var(--white);
  padding: 80px 0;
  margin-top: 80px;
}

.founder-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}

.founder-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 32px var(--shadow-strong);
}

.founder-bio h3 {
  font-size: 28px;
  margin-bottom: 16px;
  font-weight: 600;
}

.founder-bio p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 20px;
}

/* Library Page */
.library-controls {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px 40px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 14px 48px 14px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  background: var(--white);
  transition: border-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--black);
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 20px;
  border: 1px solid var(--black);
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--black);
  color: var(--white);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.resource-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-strong);
}

.resource-image {
  width: 100%;
  height: 200px;
  background: var(--cream-dark);
  object-fit: cover;
}

.resource-content {
  padding: 24px;
}

.resource-type {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.08);
  color: var(--black);
}

.resource-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--black);
}

.resource-author {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 12px;
  font-style: italic;
}

.resource-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--black);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.resource-link:hover {
  opacity: 0.6;
}

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

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

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

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

/* Print Styles */
@media print {
  .site-header,
  .site-footer {
    display: none;
  }
}
