/* ===== PKL JOURNAL - STYLES ===== */

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors Light Mode */
  --gold: #C9A84C;
  --gold-light: #F0D080;
  --gold-dark: #8B6914;
  --navy: #0A1628;
  --navy-mid: #1A2F4A;
  --navy-light: #2C4A6B;
  --cream: #FAF7F0;
  --cream-dark: #E8E3D8;
  --text: #0A1628;
  --text-muted: #2C4A6B;
  --text-light: #1A2F4A;
  --white: #FFFFFF;
  --red: #E53935;
  --green: #2E7D32;
  
  /* Spacing */
  --radius: 12px;
  --radius-lg: 20px;
  
  /* Shadows */
  --shadow: 0 4px 24px rgba(10, 22, 40, 0.12);
  --shadow-lg: 0 12px 48px rgba(10, 22, 40, 0.18);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Colors */
body.dark-mode {
  --navy: #FAF7F0;
  --navy-mid: #E8E3D8;
  --navy-light: #D5CFC0;
  --cream: #0A1628;
  --cream-dark: #1A2F4A;
  --text: #FAF7F0;
  --text-muted: #B0B8C0;
  --text-light: #8A92A0;
  --white: #2C4A6B;
}

/* Dark Mode Hero - Keep Navy Background with White Text */
body.dark-mode .hero {
  background: linear-gradient(135deg, #0A1628 0%, #1A2F4A 50%, #2C4A6B 100%);
}

body.dark-mode .hero h1 {
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .hero p {
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.dark-mode .stat-label {
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.dark-mode .cta-section {
  background: linear-gradient(135deg, #0A1628 0%, #1A2F4A 100%);
}

body.dark-mode .cta-content h2 {
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .cta-content p {
  color: #E8E3D8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.dark-mode .auth-left {
  background: linear-gradient(160deg, #0A1628 0%, #1A2F4A 100%);
}

body.dark-mode .auth-left h2 {
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .auth-left p {
  color: #E8E3D8;
}

body.dark-mode .auth-bullet {
  color: #E8E3D8;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  transition: var(--transition);
  font-weight: 600;
}

h1, h2, h3, .serif {
  font-family: 'Playfair Display', serif;
}

/* ===== NAVIGATION ===== */
nav {
  background: linear-gradient(135deg, #0A1628 0%, #1A2F4A 100%);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  border-bottom: 3px solid var(--gold);
}

.nav-brand {
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: var(--transition);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-brand span {
  color: #FFFFFF;
  font-weight: 700;
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid var(--gold);
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0A1628;
  transform: rotate(180deg);
}

.btn-icon svg {
  transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  transition: all 0.2s;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 800;
}

.btn-outline:hover {
  background: var(--gold);
  color: #0A1628;
}

.btn-gold {
  background: var(--gold);
  color: #0A1628;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.3);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.4);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy-light);
  font-weight: 800;
}

.btn-navy:hover {
  background: var(--navy-light);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-danger {
  background: #FEE2E2;
  color: var(--red);
  border: 2px solid #FECACA;
  font-weight: 800;
}

.btn-danger:hover {
  background: var(--red);
  color: white;
}

.btn-success {
  background: #DCFCE7;
  color: var(--green);
  border: 2px solid #BBF7D0;
  font-weight: 800;
}

.btn-success:hover {
  background: var(--green);
  color: white;
}

.btn-full {
  width: 100%;
  padding: 12px;
  font-size: 15px;
}

/* ===== PAGES ===== */
.page {
  display: none;
  min-height: calc(100vh - 64px);
}

.page.active {
  display: block;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, #FAF7F0 0%, #E8E3D8 50%, #D5CFC0 100%);
  padding: 100px 2rem 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

/* Animated Background */
.animated-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
  bottom: -250px;
  right: -250px;
  animation-delay: 7s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--gold-dark) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

.floating-shapes {
  position: absolute;
  inset: 0;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: floatShape 15s ease-in-out infinite;
}

.shape-1 {
  width: 60px;
  height: 60px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 50%;
  top: 60%;
  right: 15%;
  animation-delay: 3s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  border: 3px solid var(--gold-light);
  border-radius: 50%;
  bottom: 20%;
  left: 20%;
  animation-delay: 6s;
}

.shape-4 {
  width: 50px;
  height: 50px;
  background: var(--gold-light);
  transform: rotate(45deg);
  top: 40%;
  right: 25%;
  animation-delay: 9s;
}

.shape-5 {
  width: 70px;
  height: 70px;
  border: 2px solid var(--gold-dark);
  transform: rotate(30deg);
  bottom: 30%;
  right: 10%;
  animation-delay: 12s;
}

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(180deg); }
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.2);
  border: 1px solid rgba(201, 168, 76, 0.5);
  color: var(--gold);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero h1 {
  color: var(--navy);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.hero h1 em {
  color: var(--gold);
  font-style: italic;
  position: relative;
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  color: var(--navy);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn-large {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.glow-effect {
  position: relative;
  overflow: hidden;
}

.glow-effect::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.glow-effect:hover::before {
  width: 300px;
  height: 300px;
}

.glow-effect span {
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: flex;
  gap: 60px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.stat-num {
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.stat-label {
  color: var(--navy);
  font-size: 13px;
  margin-top: 8px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--cream);
  transition: var(--transition);
}

.section-label {
  text-align: center;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 800;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 60px;
  line-height: 1.7;
  font-size: 1.05rem;
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 2px solid var(--cream-dark);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(10, 22, 40, 0.05);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(10, 22, 40, 0.15);
  border-color: var(--gold-light);
}

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  position: relative;
  transition: var(--transition);
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.feature-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--navy);
  font-weight: 800;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.7;
  font-weight: 700;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, #FAF7F0 0%, #E8E3D8 100%);
  padding: 80px 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.1) 0%, transparent 70%);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.cta-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
  line-height: 1.7;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

/* ===== ANIMATIONS ===== */
.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out forwards;
  opacity: 0;
}

.animate-scale {
  animation: scaleIn 0.6s ease-out forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== AUTH PAGES ===== */
.auth-wrap {
  min-height: calc(100vh - 64px);
  display: flex;
}

.auth-left {
  flex: 1;
  background: linear-gradient(160deg, #FAF7F0 0%, #E8E3D8 100%);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-left::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.auth-left h2 {
  color: var(--navy);
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.auth-left h2 em {
  color: var(--gold);
}

.auth-left p {
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 380px;
  font-weight: 700;
}

.auth-bullets {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-bullet {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.auth-bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--white);
}

.auth-box {
  width: 100%;
  max-width: 420px;
}

.auth-box h3 {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 4px;
  font-weight: 800;
}

.auth-box .sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
  font-weight: 700;
}

.auth-box .sub a {
  color: #8B6914;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.auth-box .sub a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--navy);
  background: var(--white);
  transition: border 0.2s;
  font-weight: 700;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

.form-group input::placeholder {
  color: #4B5563;
  font-weight: 600;
}

.divider {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin: 16px 0;
  position: relative;
  font-weight: 700;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 2px;
  background: var(--cream-dark);
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.btn-google {
  width: 100%;
  padding: 11px;
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  color: var(--navy);
}

.btn-google:hover {
  background: #F9FAFB;
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.google-icon {
  width: 18px;
  height: 18px;
}

.error-msg {
  background: #FEF2F2;
  border: 2px solid #FECACA;
  color: var(--red);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  font-weight: 700;
}

.success-msg {
  background: #F0FDF4;
  border: 2px solid #BBF7D0;
  color: var(--green);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  font-weight: 700;
}

/* ===== DASHBOARD ===== */
.dashboard {
  padding: 32px 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.dash-header h2 {
  font-size: 1.6rem;
  color: var(--navy);
  font-weight: 800;
}

.dash-header p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 2px;
  font-weight: 700;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.dash-stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  border: 2px solid var(--cream-dark);
}

.dash-stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
  display: block;
}

.dash-stat .lbl {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 2px;
  font-weight: 700;
}

.dash-stat .trend {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 6px;
  font-weight: 700;
}

/* ===== POSTS ===== */
.posts-grid {
  display: grid;
  gap: 20px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--cream-dark);
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
  transition: all 0.25s;
}

.post-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.post-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 13px;
}

.post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.post-tag {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold-light);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.post-date {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.post-author-badge {
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}

.post-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
  font-weight: 800;
}

.post-body p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
  flex: 1;
  font-weight: 700;
}

.post-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.post-actions .btn-sm {
  flex: 1;
  min-width: 60px;
  font-size: 12px;
  padding: 6px 10px;
}

/* ===== WRITE PAGE ===== */
.write-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 2rem;
}

.write-wrap h2 {
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 4px;
  font-weight: 800;
}

.write-wrap p {
  color: var(--text-muted);
  font-weight: 700;
}

.write-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 2px solid var(--cream-dark);
  margin-top: 24px;
}

.write-form .form-group textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--navy);
  background: var(--white);
  min-height: 200px;
  resize: vertical;
  line-height: 1.7;
  transition: border 0.2s;
  font-weight: 700;
}

.write-form .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

.write-form .form-group textarea::placeholder {
  color: #4B5563;
  font-weight: 600;
}

.img-preview {
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
  max-height: 280px;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-preview img {
  width: 100%;
  object-fit: cover;
}

/* ===== USER BAR ===== */
.user-bar {
  background: linear-gradient(90deg, #1A2F4A 0%, #2C4A6B 100%);
  color: #FFFFFF;
  padding: 6px 2rem;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0A1628;
  font-weight: 800;
  font-size: 12px;
  border: 2px solid var(--gold-light);
  box-shadow: 0 2px 6px rgba(201, 168, 76, 0.3);
}

.user-name {
  color: #FFFFFF;
  font-weight: 800;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-role {
  background: rgba(201, 168, 76, 0.2);
  color: var(--gold-light);
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(201, 168, 76, 0.4);
}

/* ===== MODAL ===== */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  display: none;
  backdrop-filter: blur(4px);
}

.modal-bg.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 1000px;
  width: 95%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
  border: 2px solid var(--cream-dark);
}

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

.export-modal {
  max-width: 600px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.3;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  transition: all 0.2s;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 800;
}

.modal-close:hover {
  background: var(--cream);
  color: var(--gold);
}

.modal-img {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  max-height: 400px;
  margin-bottom: 24px;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-img img {
  width: 100%;
  object-fit: cover;
}

.modal-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.modal-content {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-wrap;
  font-weight: 600;
}

/* ===== EXPORT OPTIONS ===== */
.export-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.export-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--cream);
  border: 2px solid var(--cream-dark);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.export-option:hover {
  background: var(--white);
  border-color: var(--gold);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.export-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.export-info {
  flex: 1;
}

.export-info h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.export-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
  font-weight: 700;
}

.export-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
  font-weight: 800;
}

.export-option:hover .export-arrow {
  color: var(--gold);
  transform: translateX(4px);
}

/* ===== FILE INPUT ===== */
.file-drop {
  border: 2px dashed var(--cream-dark);
  border-radius: 10px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #F9FAFB;
}

.file-drop:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.file-drop p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 6px;
  font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .auth-left {
    display: none;
  }
  
  .post-card {
    grid-template-columns: 1fr;
  }
  
  .post-img {
    height: 180px;
  }
  
  .hero {
    padding: 80px 1.5rem 60px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-stats {
    gap: 30px;
  }
  
  .stat-icon {
    font-size: 1.5rem;
  }
  
  .stat-num {
    font-size: 2rem;
  }
  
  .features {
    padding: 60px 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .feature-card {
    padding: 30px 24px;
  }
  
  .cta-section {
    padding: 60px 1.5rem;
  }
  
  .cta-content h2 {
    font-size: 1.8rem;
  }
  
  .dashboard {
    padding: 20px 1rem;
  }
  
  .write-wrap {
    padding: 20px 1rem;
  }
  
  .write-form {
    padding: 20px;
  }
  
  nav {
    padding: 0 1rem;
  }
  
  .nav-brand {
    font-size: 1.1rem;
  }
  
  .btn {
    padding: 7px 16px;
    font-size: 13px;
  }
  
  .btn-large {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .user-bar {
    padding: 6px 1rem;
  }
  
  .export-modal {
    max-width: 95%;
  }
  
  .export-option {
    padding: 16px;
  }
  
  .export-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
  
  .gradient-orb {
    filter: blur(60px);
  }
  
  .orb-1 {
    width: 300px;
    height: 300px;
  }
  
  .orb-2 {
    width: 350px;
    height: 350px;
  }
  
  .orb-3 {
    width: 200px;
    height: 200px;
  }
  
  .shape {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-btns .btn {
    width: 100%;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .nav-actions {
    gap: 6px;
  }
  
  .btn-icon {
    width: 36px;
    height: 36px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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