/* =============================================
   Prof. Lucas Scotta | IFF Macaé — style.css
   ============================================= */

:root {
  --primary: #1a3a5c;
  --accent: #2ecc71;
  --accent2: #3498db;
  --light: #f8f9fa;
  --text: #2c3e50;
  --muted: #6c757d;
  --border: #e0e6ef;
  --card-bg: #ffffff;
  --shadow: 0 4px 24px rgba(26,58,92,0.10);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--light); color: var(--text); line-height: 1.7; }

/* ── NAVEGAÇÃO ─────────────────────────── */
nav { background: var(--primary); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,0.15); }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; height: 60px; }
.nav-brand { color: white; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.nav-links { display: flex; }
.nav-links > a, .nav-dropdown > a {
  color: rgba(255,255,255,0.82); text-decoration: none; font-size: 0.88rem;
  font-weight: 500; padding: 0 1rem; height: 60px; display: flex;
  align-items: center; gap: 5px; transition: all 0.2s;
  border-bottom: 3px solid transparent;
}
.nav-links > a:hover, .nav-dropdown > a:hover,
.nav-links > a.active, .nav-dropdown > a.active {
  color: white; background: rgba(255,255,255,0.07); border-bottom-color: var(--accent);
}
/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 60px; left: 0;
  background: var(--primary); min-width: 220px;
  border-top: 2px solid var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2); z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 18px; height: auto; color: rgba(255,255,255,0.82);
  text-decoration: none; font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.07); transition: background 0.15s;
}
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.1); color: white; }

/* ── HERO (página inicial) ─────────────── */
.hero { background: linear-gradient(135deg, var(--primary) 0%, #0f2744 60%, #1a3a5c 100%); color: white; padding: 28px 2rem 28px; }
.hero-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 40px; }
.hero-photo { width: 155px; height: 155px; border-radius: 50%; object-fit: cover; border: 4px solid var(--accent); box-shadow: 0 8px 32px rgba(0,0,0,0.35); flex-shrink: 0; }
.hero-photo-placeholder { width: 155px; height: 155px; border-radius: 50%; background: rgba(255,255,255,0.12); border: 4px solid var(--accent); display: flex; align-items: center; justify-content: center; font-size: 4rem; color: rgba(255,255,255,0.5); flex-shrink: 0; }
.hero-info h1 { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; margin-bottom: 0.3rem; }
.hero-info .title { font-size: 1.05rem; color: var(--accent); font-weight: 600; margin-bottom: 0.6rem; }
.hero-info .institution { font-size: 0.97rem; color: rgba(255,255,255,0.75); margin-bottom: 0.3rem; }
.hero-contact { margin-top: 1.3rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hero-contact a, .hero-contact span { color: rgba(255,255,255,0.85); font-size: 0.88rem; display: flex; align-items: center; gap: 6px; text-decoration: none; background: rgba(255,255,255,0.08); border-radius: 20px; padding: 5px 14px; transition: all 0.2s; }
.hero-contact a:hover { background: var(--accent); color: white; }
.hero-badges { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge { background: rgba(46,204,113,0.15); color: var(--accent); border: 1px solid rgba(46,204,113,0.3); border-radius: 20px; padding: 3px 14px; font-size: 0.82rem; font-weight: 600; }

/* ── PAGE HEADER (subpáginas) ──────────── */
.page-header { background: linear-gradient(135deg, var(--primary) 0%, #0f2744 100%); color: white; padding: 48px 2rem 42px; }
.page-header-inner { max-width: 1100px; margin: 0 auto; }
.breadcrumb { font-size: 0.83rem; color: rgba(255,255,255,0.6); margin-bottom: 10px; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }
.page-header h1 { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.page-header .subtitle { font-size: 0.97rem; color: rgba(255,255,255,0.72); }

/* ── LAYOUT ────────────────────────────── */
.main-wrap { max-width: 1100px; margin: 0 auto; padding: 50px 2rem; display: grid; grid-template-columns: 1fr 320px; gap: 36px; }
.main-wrap.full { grid-template-columns: 1fr; }

/* ── SEÇÕES ────────────────────────────── */
section { margin-bottom: 40px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 1.45rem; color: var(--primary); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--border); display: flex; align-items: center; gap: 10px; }
.section-title i { color: var(--accent2); font-size: 1.1rem; }

/* ── CARDS ─────────────────────────────── */
.card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; margin-bottom: 18px; border: 1px solid var(--border); transition: transform 0.18s, box-shadow 0.18s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(26,58,92,0.13); }
.about-text { font-size: 0.97rem; color: #3d4f60; line-height: 1.85; }

/* ── TIMELINE ──────────────────────────── */
.timeline-item { display: flex; gap: 18px; margin-bottom: 22px; }
.timeline-dot { width: 42px; height: 42px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1rem; flex-shrink: 0; margin-top: 3px; }
.timeline-content h3 { font-size: 1rem; font-weight: 600; color: var(--primary); margin-bottom: 2px; }
.timeline-content .year { font-size: 0.82rem; color: var(--accent2); font-weight: 600; margin-bottom: 4px; }
.timeline-content p { font-size: 0.9rem; color: var(--muted); }

/* ── ÁREAS ─────────────────────────────── */
.areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.area-card { background: linear-gradient(135deg, #f0f6ff 0%, #e8f4fd 100%); border: 1px solid #c8dff5; border-radius: 10px; padding: 18px 20px; display: flex; align-items: flex-start; gap: 12px; transition: transform 0.18s; }
.area-card:hover { transform: translateY(-2px); }
.area-card i { font-size: 1.5rem; color: var(--accent2); margin-top: 2px; flex-shrink: 0; }
.area-card h4 { font-size: 0.95rem; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.area-card p { font-size: 0.83rem; color: var(--muted); }

/* ── DISCIPLINAS CLICÁVEIS ─────────────── */
a.course-item { display: flex; align-items: center; justify-content: space-between; padding: 13px 10px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); border-radius: 8px; transition: background 0.15s, padding-left 0.2s; }
a.course-item:last-child { border-bottom: none; }
a.course-item:hover { background: #f0f6ff; padding-left: 18px; }
.course-item-left { display: flex; align-items: center; gap: 10px; }
.course-item-left i { color: var(--accent2); font-size: 1rem; width: 20px; }
.course-name { font-size: 0.95rem; font-weight: 500; }
.course-right { display: flex; align-items: center; gap: 10px; }
.course-tag { background: #eaf6ff; color: var(--accent2); border-radius: 20px; padding: 3px 12px; font-size: 0.8rem; font-weight: 600; }
.course-arrow { color: var(--muted); font-size: 0.85rem; }

/* ── TURMAS GRID ───────────────────────── */
.turmas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 10px; }
a.turma-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 20px 14px; text-align: center; text-decoration: none; color: var(--text); transition: all 0.2s; box-shadow: var(--shadow); display: block; }
a.turma-card:hover { border-color: var(--accent2); background: #f0f6ff; transform: translateY(-2px); }
a.turma-card i { font-size: 1.8rem; color: var(--accent2); margin-bottom: 8px; display: block; }
a.turma-card span { font-size: 0.95rem; font-weight: 600; color: var(--primary); display: block; }

/* ── INFO BOX ──────────────────────────── */
.info-box { background: #f0f9ff; border-left: 4px solid var(--accent2); border-radius: 0 10px 10px 0; padding: 16px 20px; margin-bottom: 18px; font-size: 0.93rem; }
.info-box strong { color: var(--primary); }

/* ── PROVAS TABLE ──────────────────────── */
.provas-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.provas-table th { background: var(--primary); color: white; padding: 10px 14px; text-align: left; font-weight: 600; }
.provas-table th:first-child { border-radius: 8px 0 0 0; }
.provas-table th:last-child { border-radius: 0 8px 0 0; }
.provas-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.provas-table tr:last-child td { border-bottom: none; }
.provas-table tr:nth-child(even) td { background: #f8f9fa; }
.provas-table a { color: var(--accent2); text-decoration: none; font-weight: 500; }
.provas-table a:hover { text-decoration: underline; }
.badge-prova { background: #fff3cd; color: #856404; border-radius: 6px; padding: 2px 10px; font-size: 0.8rem; font-weight: 600; }

/* Cores por tipo de avaliação */
.badge-prova.b1  { background: #dbeafe; color: #1e40af; } /* azul claro  — 1º bimestre */
.badge-prova.b2  { background: #dcfce7; color: #166534; } /* verde claro  — 2º bimestre */
.badge-prova.b3  { background: #fef9c3; color: #854d0e; } /* amarelo      — 3º bimestre */
.badge-prova.b4  { background: #ffe4e6; color: #9f1239; } /* rosa         — 4º bimestre */
.badge-prova.rs  { background: #f3e8ff; color: #6b21a8; } /* roxo         — recuperação */
.badge-prova.vs  { background: #f1f5f9; color: #334155; } /* cinza        — verificação */

/* Trabalhos (T1, T2...) dentro de um bimestre */
.provas-table tr.trabalho td { background: #fafbfc; border-bottom: 1px solid var(--border); }
.provas-table tr.trabalho td:first-child { padding-left: 28px; }
.provas-table tr.trabalho td:first-child::before { content: "↳ "; color: var(--muted); font-size: 0.8rem; }

/* ── LINK BUTTONS ──────────────────────── */
.links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
a.link-card { display: flex; align-items: center; gap: 12px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; text-decoration: none; color: var(--text); transition: all 0.2s; box-shadow: 0 2px 8px rgba(26,58,92,0.07); }
a.link-card:hover { border-color: var(--accent2); background: #f0f6ff; transform: translateY(-2px); }
a.link-card i { font-size: 1.4rem; color: var(--accent2); flex-shrink: 0; }
a.link-card .link-info span { display: block; font-size: 0.82rem; color: var(--muted); }
a.link-card .link-info strong { font-size: 0.93rem; color: var(--primary); }

/* ── SIDEBAR ───────────────────────────── */
.sidebar-card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 20px; border: 1px solid var(--border); }
.sidebar-title { font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin-bottom: 15px; }
.contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 13px; font-size: 0.9rem; }
.contact-item i { color: var(--accent2); font-size: 1rem; margin-top: 2px; width: 18px; }
.contact-item a { color: var(--text); text-decoration: none; }
.contact-item a:hover { color: var(--accent2); }
.contact-item span { color: var(--muted); font-size: 0.87rem; }
.btn-link { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--primary); color: white; border-radius: 8px; padding: 11px; font-size: 0.9rem; font-weight: 600; text-decoration: none; margin-top: 6px; transition: background 0.2s; }
.btn-link:hover { background: #0f2744; }
.btn-link.accent { background: var(--accent2); }
.btn-link.accent:hover { background: #2185c7; }
.btn-link.green { background: #27ae60; }
.btn-link.green:hover { background: #1e8449; }

/* ── FACTS ─────────────────────────────── */
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fact-item { background: #f0f6ff; border-radius: 10px; padding: 14px; text-align: center; }
.fact-num { font-size: 1.7rem; font-weight: 700; color: var(--primary); line-height: 1; }
.fact-label { font-size: 0.78rem; color: var(--muted); margin-top: 3px; }

/* ── SKILL BARS ────────────────────────── */
.skill-bar { margin-bottom: 14px; }
.skill-label { display: flex; justify-content: space-between; font-size: 0.88rem; font-weight: 500; margin-bottom: 5px; }
.skill-label span:last-child { color: var(--muted); font-weight: 400; }
.skill-track { height: 7px; background: var(--border); border-radius: 10px; overflow: hidden; }
.skill-fill { height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); border-radius: 10px; }

/* ── FOOTER ────────────────────────────── */
footer { background: var(--primary); color: rgba(255,255,255,0.7); text-align: center; padding: 28px 2rem; font-size: 0.88rem; margin-top: 30px; }
footer a { color: var(--accent); text-decoration: none; }

/* ── RESPONSIVE ────────────────────────── */
@media (max-width: 820px) {
  .main-wrap { grid-template-columns: 1fr; }
  .hero-inner { flex-direction: column; text-align: center; gap: 28px; }
  .hero-contact, .hero-badges { justify-content: center; }
  .areas-grid, .links-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}