/* 
  Teacher Portfolio Web App - Minimalist Luxury Modern Stylesheet
  Clean, High-Readability, Elegant Typography & Refined Layouts
*/

@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
  --font-main: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Refined Color Palette */
  --accent-gold: #f59e0b;
  --accent-cyan: #38bdf8;
  --accent-green: #10b981;
  --accent-rose: #f43f5e;
  --accent-purple: #8b5cf6;

  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hidden {
  display: none !important;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  background: var(--nav-bg);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

.logo-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap !important;
  word-break: keep-all !important;
}

.logo-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
}

.nav-link {
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--hover-bg);
  border: 1px solid var(--border-color);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  padding: 0.65rem 1.35rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-normal);
}

.btn-primary {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent-gold);
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
  background: #d97706;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  background: var(--bg-card);
}

.btn-outline:hover {
  background: var(--hover-bg);
}

/* Minimalist Profile Hero Card */
.hero-section {
  padding: 2.5rem 0 2rem;
}

.hero-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.25rem;
  border-radius: 24px;
}

.hero-avatar-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  border: 3px solid var(--border-color);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.avatar-badge {
  position: absolute;
  bottom: -10px;
  right: -10px;
  background: var(--accent-gold);
  color: #0f172a;
  padding: 0.35rem 0.85rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.78rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-content h2 {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.hero-position {
  font-size: 1.1rem;
  color: var(--accent-cyan);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.hero-school {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.hero-bio {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Quick Summary Stat Grid */
.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.stat-card {
  padding: 1.35rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-info .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-info .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Section Header */
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

/* Footer MANDATORY REQUIRED DATA */
.site-footer {
  margin-top: auto;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  background: var(--footer-bg);
  text-align: center;
}

.footer-developer-info {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.8;
}

/* Modals & Forms */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-card {
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 24px;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-close {
  font-size: 1.3rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast-item {
  padding: 0.9rem 1.4rem;
  border-radius: 14px;
  color: #fff;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.toast-success { background: #10b981; }
.toast-error { background: #f43f5e; }
.toast-info { background: #0284c7; }

@media (max-width: 768px) {
  .hero-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
