/*
 * Filename: front-page.css
 * File path: css/front-page.css
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --secondary-color: #ec4899;
  --text-main: #1f2937;
  --text-secondary: #4b5563;
  --bg-light: #f9fafb;
  --border-color: #e5e7eb;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.front-page-main {
  font-family: "Inter", sans-serif;
  color: var(--text-main);
}

/* --- HERO SECTION --- */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("../assets/images/hero-bg.png");
  background-size: cover;
  background-position: center;
  padding: 120px 20px;
  text-align: center;
  margin-bottom: 60px;
  color: #fff;
  position: relative;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.1;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.75rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 48px;
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-hero.primary {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-hero.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-hero.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
  backdrop-filter: blur(4px);
}

.btn-hero.secondary:hover {
  background: #fff;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- SECTIONS --- */
.content-section {
  padding: 0 20px 60px;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  position: relative;
  padding-left: 16px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 24px;
  background: var(--primary-color);
  border-radius: 4px;
}

.section-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}

.section-link:hover {
  text-decoration: underline;
}

/* --- GRIDS --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* --- CARDS --- */
.fp-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.fp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Job Card Specifics */
.job-card .card-header {
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--bg-light);
}

.job-card .card-image {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-light);
}

.job-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-card .card-meta {
  flex: 1;
  min-width: 0;
}

.job-card .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-card .card-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-card .card-body {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.job-card .card-info {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.job-card .card-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-pill {
  background: var(--bg-light);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Event Card Specifics */
.event-card .card-thumb {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.event-card .date-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.event-card .card-body {
  padding: 20px;
}

.event-card .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
}

/* Space Card Specifics */
.space-card .card-thumb,
.expert-card .card-thumb {
  height: 120px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
}

.space-card .card-thumb.circle img,
.expert-card .card-thumb.circle img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}

.space-card .card-body,
.expert-card .card-body {
  padding: 20px;
  text-align: center;
  padding-top: 10px;
}

.space-card .card-title,
.expert-card .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 4px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section-link {
    font-size: 0.9rem;
  }
}
