/*
|==========================================================================
| CORE STYLESHEET (program.css)
|==========================================================================
| Styles for the main content areas, including Keynote Speakers, Conference Themes, and Schedule.
*/


/*
|--------------------------------------------------------------------------
| 1. GLOBAL RESET & BASE STYLES
|--------------------------------------------------------------------------
*/

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

:root {
  /* Brand palette */
  --primary-color: #FFE100;
  --primary-dark: #000000;
  --primary-light: #FFF8B0;
  --text-primary: #D97706;

  --secondary-color: #000000;
  --text-color: #000000;
  --text-light: rgba(0, 0, 0, 0.65);

  --bg-color: #FFFFFF;
  --white: #FFFFFF;

  --border-color: rgba(0, 0, 0, 0.12);

  /* Semantic accents */
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
}

body {
  /* Typography */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  
  /* Colors */
  color: var(--text-color);
  background-color: var(--bg-color);
}

h2 {
  /* Typography */
  font-size: 2rem;
  
  /* Spacing */
  margin-bottom: 1.5rem;
  
  /* Colors */
  color: var(--secondary-color);
}

h3 {
  /* Typography */
  font-size: 1.5rem;
  
  /* Spacing */
  margin-bottom: 1rem;
  
  /* Colors */
  color: var(--secondary-color);
}

/* ===== Utilities (Spacing & Text) ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.text-primary { color: var(--text-primary); }

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

/* ===== Buttons (Base styles) ===== */
.btn {
  /* Box Model */
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  
  /* Typography */
  cursor: pointer;
  font-size: 0.9rem;
  
  /* Effects */
  transition: all 0.3s;
}

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

.btn-primary:hover {
  /* Colors */
  background-color: var(--primary-dark);
  color: var(--white);
}

/* ===== Main / Sections ===== */
main {
  /* Layout */
  max-width: 1200px;
  margin: 0 auto;
  
  /* Spacing */
  padding: 2rem;
  min-height: calc(100vh - 200px);
}

.section { 
  display: none; 
}

.section.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Cards (Keynote Speakers - ENHANCED) ===== */
.card {
  /* Layout */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
  align-items: center;
  text-align: center;
  
  /* Box Model */
  background: var(--bg-color); 
  border-radius: 0.85rem; 
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08); 
  
  /* Effects */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); 
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  /* Effects */
  transform: translateY(-4px); 
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

.card-image {
  /* Sizing & Model (Circular profile image) */
  width: 140px; 
  height: 140px; 
  border-radius: 50%; 
  object-fit: cover; 
  
  /* Spacing */
  margin-bottom: 1.25rem; 
  
  /* Visual Accent */
  border: 4px solid var(--primary-color);
  box-shadow: 0 0 0 2px var(--secondary-color);
}

/* Adjustments for text within the card */
.card h4 {
  /* Typography */
  font-size: 1.3rem;
  font-weight: 700;
  
  /* Spacing */
  margin-bottom: 0.5rem;
}


/* ===== Grid Layouts ===== */
.grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ----------------------------------------------------------- */
/* ===== Conference Themes Grid (FLEXBOX TAGS) ===== */
/* ----------------------------------------------------------- */
.theme-grid {
    /* Layout */
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    
    /* Spacing */
    gap: 0.75rem; 
    margin-top: 1rem;
}

.theme-item {
    /* Layout */
    display: inline-flex; 
    align-items: center;
    
    /* Box Model */
    padding: 0.5rem 1rem; 
    border-radius: 999px; /* Pill/rounded shape */
    border: 1px solid rgba(0, 0, 0, 0.1);
    
    /* Colors */
    background: var(--primary-light); 
    color: var(--secondary-color);
    
    /* Typography */
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    cursor: default;
    
    /* Visuals */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    
    /* Effects */
    transition: background-color 0.2s;
}

.theme-item:hover {
    background-color: var(--primary-color);
}
/* ----------------------------------------------------------- */


/* ===== Schedule (ENHANCED) ===== */
.schedule-day {
  /* Box Model */
  background: var(--white);
  border-radius: 0.85rem; 
  padding: 2rem; 
  border: 1px solid var(--border-color);
  
  /* Spacing */
  margin-bottom: 2rem;
  
  /* Effects */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); 
}

.schedule-day h3 {
  /* Spacing */
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  
  /* Separator */
  border-bottom: 2px solid var(--border-color);
}

.event-item {
  /* Layout */
  display: flex; 
  flex-wrap: wrap; 
  align-items: center; 
  
  /* Box Model */
  padding: 1rem 1.25rem; 
  border-radius: 0.5rem;
  border-left: 6px solid; /* Thicker accent bar */
  
  /* Spacing */
  margin-bottom: 1rem;
  
  /* Effects */
  transition: transform 0.15s ease;
}

/* Adjust time column width */
.event-item strong {
    /* Sizing */
    min-width: 120px; 
    
    /* Typography */
    font-size: 1rem;
    font-weight: 700;
    
    /* Colors */
    color: var(--secondary-color);
}

.event-item span {
    /* Layout */
    flex: 1; /* Description takes up remaining space */
}

.event-item:hover {
    /* Effects */
    transform: translateX(4px); 
}

/* Colors for specific event types */
.event-keynote {
  background-color: var(--primary-light); 
  border-left-color: var(--text-primary); 
}

.event-session {
  background-color: rgba(0, 0, 0, 0.05); 
  border-left-color: var(--secondary-color);
}

.event-break {
  background-color: rgba(0, 0, 0, 0.02);
  border-left-color: var(--text-light); 
  opacity: 0.9;
}

.event-social {
  background-color: var(--primary-color); 
  border-left-color: var(--primary-dark);
  color: var(--secondary-color);
  font-weight: 600;
}

/* ===== Toast Notifications ===== */
.toast {
  /* Positioning & Layering */
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 2000;
  
  /* Box Model & Visuals */
  background: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  display: none;
  
  /* Effects */
  animation: slideIn 0.3s ease-out;
}

.toast.show { display: block; }
.toast.success { border-left: 4px solid var(--success-color); }
.toast.error { border-left: 4px solid var(--danger-color); }

@keyframes slideIn {
  from { transform: translateX(400px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== Responsive (page only) ===== */
@media (max-width: 768px) {
  main { 
    padding: 1rem; 
  }
  
  .grid-3 { 
    grid-template-columns: 1fr; 
  }

  .toast {
    /* Reposition toast on small screens */
    left: 1rem;
    right: 1rem;
    top: 1rem;
  }
  
  /* Stacking time and event description on small screens */
  .event-item {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
  }
  
  .event-item strong {
      min-width: 0; /* Remove fixed width constraint */
  }
}