/* Portfolio Templates Styles for Public Live Preview */

/* Public Portfolio Viewport Container */
.public-portfolio-container {
  min-height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

/* Floating Top Navigation for Public Portfolio View */
.portfolio-public-header {
  position: sticky;
  top: 0;
  z-index: 800;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.portfolio-brand-badge {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portfolio-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Generic Section Elements in Templates */
.pf-section {
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pf-section-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pf-section-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Template 01: MINIMAL
   Clean white layout, strong typography, lots of whitespace
   ========================================================================== */
.template-minimal {
  background: #FAFAFA;
  color: #18181B;
  font-family: var(--font-sans);
}

.template-minimal .portfolio-public-header {
  background: rgba(250, 250, 250, 0.9);
  border-bottom: 1px solid #E4E4E7;
}

.template-minimal .portfolio-brand-badge {
  color: #18181B;
}

.template-minimal h1, 
.template-minimal h2, 
.template-minimal h3 {
  color: #09090B;
}

.template-minimal p {
  color: #52525B;
}

.template-minimal .pf-hero {
  padding: 40px 20px 30px;
  border-bottom: 1px solid #E4E4E7;
}

.template-minimal .pf-hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 1px solid #E4E4E7;
}

.template-minimal .pf-hero-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.template-minimal .pf-hero-title {
  font-size: 15px;
  color: #71717A;
  font-weight: 500;
  margin-bottom: 14px;
}

.template-minimal .pf-hero-bio {
  font-size: 15px;
  line-height: 1.6;
  color: #3F3F46;
}

.template-minimal .pf-card {
  background: #FFFFFF;
  border: 1px solid #E4E4E7;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.template-minimal .skill-chip {
  background: #F4F4F5;
  border-color: #E4E4E7;
  color: #18181B;
}

/* ==========================================================================
   Template 02: CREATIVE
   Large project images, bold typography, designer-focused layout
   ========================================================================== */
.template-creative {
  background: #0E1015;
  color: #F3F4F6;
  font-family: var(--font-heading);
}

.template-creative .portfolio-public-header {
  background: rgba(14, 16, 21, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.template-creative .pf-hero {
  padding: 44px 20px 32px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
}

.template-creative .pf-hero-avatar {
  width: 90px;
  height: 90px;
  border-radius: 28px;
  margin: 0 auto 18px;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.35);
}

.template-creative .pf-hero-name {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #FFFFFF 30%, #A5B4FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.template-creative .pf-project-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #151821;
}

.template-creative .pf-project-cover {
  aspect-ratio: 16/11;
  width: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Template 03: PROFESSIONAL
   Corporate and recruiter-friendly design, clean structured layout
   ========================================================================== */
.template-professional {
  background: #0F172A;
  color: #E2E8F0;
  font-family: var(--font-sans);
}

.template-professional .portfolio-public-header {
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.template-professional .pf-hero-card {
  background: #1E293B;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.template-professional .pf-hero-avatar {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  border: 2px solid #38BDF8;
}

/* ==========================================================================
   Template 04: DEVELOPER
   Projects, skills, GitHub activity, code snippet aesthetic
   ========================================================================== */
.template-developer {
  background: #0B0E14;
  color: #E6EDF3;
  font-family: var(--font-mono);
}

.template-developer .portfolio-public-header {
  background: rgba(11, 14, 20, 0.9);
  border-bottom: 1px solid #30363D;
}

.template-developer .pf-terminal-hero {
  margin: 20px;
  background: #161B22;
  border: 1px solid #30363D;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.template-developer .terminal-header {
  background: #21262D;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #30363D;
}

.template-developer .term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.template-developer .term-dot-red { background: #FF5F56; }
.template-developer .term-dot-yellow { background: #FFBD2E; }
.template-developer .term-dot-green { background: #27C93F; }

.template-developer .terminal-body {
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}

.template-developer .code-prompt {
  color: #58A6FF;
}

.template-developer .code-string {
  color: #7EE787;
}

.template-developer .code-key {
  color: #FFA657;
}

/* ==========================================================================
   Template 05: DARK / OBSIDIAN
   Premium dark portfolio with elegant high contrast
   ========================================================================== */
.template-dark {
  background: #07090E;
  color: #F1F5F9;
  font-family: var(--font-sans);
}

.template-dark .portfolio-public-header {
  background: rgba(7, 9, 14, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.template-dark .pf-hero {
  padding: 40px 20px;
  position: relative;
}

.template-dark .pf-hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.template-dark .pf-glass-card {
  background: rgba(22, 27, 39, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
