/* Internship Experience Portal — Bharathiya Innovators Foundation
   Shares the visual language of the main BIF site (index.php). */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; }
.logo { display: flex; align-items: center; text-decoration: none; gap: 0.5rem; }
.logo img { height: 50px; width: auto; }
.logo-text { font-size: 1.5rem; font-weight: 800; color: #4c63d2; }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { text-decoration: none; color: #333; font-weight: 500; transition: color 0.3s ease; }
.nav-links a:hover { color: #4c63d2; }

/* Hero */
.hero {
  padding: 70px 0 90px;
  text-align: center;
  color: white;
  background: linear-gradient(135deg, rgba(76, 99, 210, 0.9), rgba(118, 75, 162, 0.9));
}
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.hero p { font-size: 1.25rem; opacity: 0.95; max-width: 760px; margin: 0 auto; }

/* Section */
.section { padding: 70px 0; background: rgba(255, 255, 255, 0.97); border-radius: 20px 20px 0 0; margin-top: -30px; min-height: 50vh; }
.section-title { text-align: center; font-size: 2.2rem; font-weight: 700; margin-bottom: 2.5rem; color: #333; position: relative; }
.section-title::after {
  content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 4px; background: linear-gradient(45deg, #4c63d2, #764ba2); border-radius: 2px;
}

/* Cards grid */
.exp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.75rem; }

.exp-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}
.exp-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,0.15); border-color: #4c63d2; }
.exp-card a.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }

.exp-thumb {
  height: 150px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #4c63d2, #764ba2);
  color: #fff; position: relative;
}
.exp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.exp-thumb .pdf-icon { font-size: 3rem; opacity: 0.95; }
.exp-thumb .pdf-pill {
  position: absolute; bottom: 10px; right: 12px;
  background: rgba(0,0,0,0.35); color: #fff; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.05em; padding: 0.25rem 0.6rem; border-radius: 12px;
}

.exp-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.exp-body h3 { font-size: 1.2rem; font-weight: 700; color: #222; margin-bottom: 0.5rem; }
.exp-meta { font-size: 0.85rem; color: #4c63d2; font-weight: 600; margin-bottom: 0.6rem; }
.exp-meta span { color: #888; font-weight: 500; }
.exp-summary { color: #666; font-size: 0.95rem; line-height: 1.5; flex: 1; }
.exp-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.exp-tags .tag { background: #f3f5ff; color: #4c63d2; padding: 0.25rem 0.7rem; border-radius: 14px; font-size: 0.78rem; font-weight: 600; }

.empty-state { text-align: center; color: #777; padding: 3rem 1rem; }
.empty-state code { background: #f3f3f3; padding: 0.15rem 0.4rem; border-radius: 5px; }

/* Footer */
.footer { background: #1a1a1a; color: #fff; text-align: center; padding: 2rem 0; }
.footer a { color: #9db0ff; }

/* Viewer page */
.viewer-bar {
  background: rgba(255,255,255,0.97);
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.viewer-bar .vtitle { font-weight: 700; color: #222; font-size: 1.1rem; }
.viewer-bar .vmeta { font-size: 0.85rem; color: #4c63d2; font-weight: 600; }
.viewer-actions { display: flex; gap: 0.75rem; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 0.6rem 1.3rem; border-radius: 50px; transition: all 0.25s ease;
}
.btn-primary { background: linear-gradient(45deg, #4c63d2, #764ba2); color: #fff; box-shadow: 0 6px 18px rgba(76,99,210,0.3); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: #eef0ff; color: #4c63d2; }
.btn-ghost:hover { background: #e0e4ff; }
.pdf-frame { width: 100%; height: calc(100vh - 80px); border: none; background: #525659; }

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .nav-links { display: none; }
  .exp-grid { grid-template-columns: 1fr; }
  .pdf-frame { height: calc(100vh - 130px); }
}
