/* espressofiction.com - Creative Writing & Coffee Shop Vibe */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #7c3a1e;
  --primary-dark: #5c2a12;
  --secondary: #a16207;
  --accent: #0369a1;
  --bg-light: #fefdfb;
  --bg-warm: #faf6f1;
  --bg-card: #ffffff;
  --text-dark: #1c1917;
  --text-light: #78716c;
  --coffee-dark: #3d2314;
  --gradient: linear-gradient(135deg, #7c3a1e 0%, #a16207 100%);
  --gradient-warm: linear-gradient(135deg, #fef3e2 0%, #fce7d6 100%);
  --shadow: 0 4px 20px rgba(124, 58, 30, 0.1);
  --shadow-lg: 0 10px 40px rgba(124, 58, 30, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
}

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

body {
  font-family: 'Crimson Pro', Georgia, serif;
  background: var(--bg-warm);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Crimson Pro', serif; font-weight: 700; }

.navbar {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  padding: 0.8rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-family: 'Crimson Pro', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--coffee-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand .logo-icon { font-size: 1.6rem; }

.navbar-menu {
  display: flex;
  gap: 0.3rem;
  list-style: none;
}

.navbar-menu a {
  color: var(--text-dark);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s;
}

.navbar-menu a:hover, .navbar-menu a.active {
  background: rgba(124, 58, 30, 0.1);
  color: var(--primary);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--primary);
}

@media (max-width: 768px) {
  .navbar { flex-wrap: wrap; padding: 0.8rem 1rem; }
  .navbar-toggle { display: block; }
  .navbar-menu { display: none; width: 100%; flex-direction: column; padding: 0.8rem 0; gap: 0.2rem; }
  .navbar-menu.active { display: flex; }
}

/* Hero */
.hero {
  background: var(--coffee-dark);
  padding: 9rem 2rem 6rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '☕';
  position: absolute;
  font-size: 18rem;
  opacity: 0.08;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  position: relative;
  font-weight: 700;
  font-style: italic;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
  font-family: 'Crimson Pro', serif;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 2.5rem;
  position: relative;
}

.hero-stats .stat { text-align: center; }
.hero-stats .stat-number { font-size: 2.8rem; font-weight: 700; display: block; }
.hero-stats .stat-label { font-size: 0.9rem; opacity: 0.85; }

@media (max-width: 768px) {
  .hero { padding: 7rem 1rem 4rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { flex-wrap: wrap; gap: 2rem; }
}

/* Sections */
.section { padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--bg-card); }

.section-title {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3.5rem;
  font-size: 1.05rem;
}

/* Tool Cards Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.35s;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.35s;
}

.tool-card:hover {
  border-color: rgba(124, 58, 30, 0.2);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

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

.tool-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-warm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.2rem;
  transition: transform 0.35s;
}

.tool-card:hover .tool-icon { transform: scale(1.1); }

.tool-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; font-weight: 600; }
.tool-card p { font-size: 0.88rem; color: var(--text-light); font-family: 'Inter', sans-serif; }

/* Article Cards */
.article-list { display: grid; gap: 2rem; }

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 320px 1fr;
  transition: all 0.35s;
}

.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.article-img {
  height: 100%;
  min-height: 240px;
  background-size: cover;
  background-position: center;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.article-content { padding: 2rem; }

.article-category {
  display: inline-block;
  background: var(--gradient-warm);
  color: var(--primary);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  margin-bottom: 0.8rem;
}

.article-card h2 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.article-card h2 a { color: var(--text-dark); text-decoration: none; }
.article-card h2 a:hover { color: var(--primary); }

.article-excerpt { color: var(--text-light); margin-bottom: 1.2rem; line-height: 1.6; }

.article-meta { display: flex; gap: 1.2rem; font-size: 0.85rem; color: var(--text-light); margin-bottom: 1rem; font-family: 'Inter', sans-serif; }

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.read-more:hover { gap: 0.8rem; }

@media (max-width: 768px) {
  .article-card { grid-template-columns: 1fr; }
  .article-img { height: 200px; font-size: 4rem; }
}

/* Article Page */
.article-page { max-width: 850px; margin: 0 auto; padding: 8rem 1.5rem 4rem; }
.article-header { margin-bottom: 2.5rem; text-align: center; }
.article-header h1 { font-size: 2.8rem; margin-bottom: 1rem; line-height: 1.3; }

.article-body { font-size: 1.15rem; line-height: 2; color: #374151; }
.article-body h2 { font-size: 1.7rem; margin: 2.5rem 0 1rem; color: var(--primary); }
.article-body h3 { font-size: 1.3rem; margin: 2rem 0 0.8rem; color: var(--text-dark); }
.article-body p { margin-bottom: 1.6rem; }
.article-body ul, .article-body ol { margin: 1.5rem 0; padding-left: 2rem; }
.article-body li { margin-bottom: 0.8rem; }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 1.2rem 1.8rem;
  background: rgba(124, 58, 30, 0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2.5rem 0;
  font-style: italic;
  font-size: 1.15rem;
}
.article-body img {
  width: 100%;
  border-radius: var(--radius);
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

/* Tool Page */
.tool-page { max-width: 900px; margin: 0 auto; padding: 8rem 1.5rem 4rem; }
.tool-header { text-align: center; margin-bottom: 3rem; }
.tool-header .tool-icon-large {
  width: 100px;
  height: 100px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 1.5rem;
}
.tool-header h1 { font-size: 2.4rem; margin-bottom: 0.8rem; }
.tool-header p { color: var(--text-light); font-size: 1.05rem; }

.tool-container {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.tool-form { display: grid; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.6rem; }
.form-group label { font-weight: 600; font-size: 0.95rem; font-family: 'Inter', sans-serif; }
.form-group input, .form-group select, .form-group textarea {
  padding: 0.9rem 1.1rem;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary); }

.btn {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 1rem 2.2rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(124, 58, 30, 0.3); }

.result-box {
  background: rgba(124, 58, 30, 0.05);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-top: 1.8rem;
  display: none;
}
.result-box.show { display: block; }
.result-value { font-size: 2.2rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.result-label { color: var(--text-light); font-size: 0.9rem; font-family: 'Inter', sans-serif; }

/* Page Headers */
.page-header {
  background: var(--gradient-warm);
  padding: 8rem 2rem 4rem;
  text-align: center;
}
.page-header h1 { font-size: 2.6rem; margin-bottom: 0.8rem; color: var(--coffee-dark); }
.page-header p { font-size: 1.15rem; color: var(--text-light); }

/* Footer */
.footer {
  background: var(--coffee-dark);
  color: #fff;
  padding: 5rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
}

.footer h4 { font-size: 1.1rem; margin-bottom: 1.5rem; color: #fce7d6; font-weight: 700; }
.footer p { color: #d6cfc4; font-size: 0.95rem; line-height: 1.8; }
.footer a { color: #e5ddd0; text-decoration: none; display: block; padding: 0.35rem 0; transition: color 0.3s; }
.footer a:hover { color: #fce7d6; }

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: #a89b8a;
  font-size: 0.9rem;
}

/* Legal Pages */
.legal-content { max-width: 800px; margin: 0 auto; padding: 4rem 1.5rem; }
.legal-content h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; color: var(--primary); }
.legal-content p { margin-bottom: 1.2rem; color: var(--text-light); line-height: 1.8; }

/* Breadcrumbs */
.breadcrumbs { padding: 1.2rem 2rem; max-width: 1200px; margin: 0 auto; font-size: 0.9rem; color: var(--text-light); font-family: 'Inter', sans-serif; }
.breadcrumbs a { color: var(--primary); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* Related Articles */
.related-articles { margin-top: 4rem; padding-top: 2.5rem; border-top: 2px solid #e5e7eb; }
.related-articles h3 { font-size: 1.4rem; margin-bottom: 1.5rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
.related-grid .card { background: var(--bg-card); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); transition: all 0.3s; }
.related-grid .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.related-grid .card h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.related-grid .card h4 a { color: var(--text-dark); text-decoration: none; }
.related-grid .card h4 a:hover { color: var(--primary); }
.related-grid .card p { font-size: 0.85rem; color: var(--text-light); }

/* Header Gradient */
.header-gradient {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  background: var(--gradient);
  min-height: 300px;
  color: #fff;
}

/* CTA */
.cta-section {
  background: var(--gradient);
  padding: 5rem 2rem;
  text-align: center;
  border-radius: var(--radius);
  margin: 3rem 0;
}
.cta-section h2 { font-size: 2.2rem; margin-bottom: 1rem; color: #fff; }
.cta-section p { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.95; color: #fff; }

.text-center { text-align: center; }
.mt-3 { margin-top: 3rem; }
