/* ============================================================
   byMASKA — style.css
   Design System for fully modular site
   ============================================================ */

:root {
  --brand-deep: #1B4F72;
  --brand-light: #5DADE2;
  --text-dark: #2D2D2D;
  --text-medium: #5A5A5A;
  --text-light: #8A8A8A;
  --bg-warm: #F8F7F4;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: white;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(27,79,114,0.06);
}

.nav-brand {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
}
.nav-brand .by { color: var(--brand-light); }
.nav-brand .maska { color: var(--brand-deep); }

.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a {
  font-size: 0.88rem; font-weight: 500; color: var(--text-medium);
  transition: color 0.2s; cursor: pointer;
}
.nav-links a:hover { color: var(--brand-deep); }

.nav-cta {
  background: var(--brand-deep) !important; color: white !important;
  padding: 0.45rem 1.15rem; border-radius: 8px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--brand-light) !important; }

.nav-right { display: flex; align-items: center; gap: 1rem; }

.lang-switcher {
  display: flex; background: #F0EEEA; border-radius: 10px; padding: 3px; gap: 2px;
}
.lang-btn {
  padding: 0.35rem 0.75rem; border: none; border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: all 0.25s; background: transparent; color: var(--text-light);
}
.lang-btn.active {
  background: white; color: var(--brand-deep);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.lang-btn:hover:not(.active) { color: var(--text-medium); }

.nav-hamburger {
  display: none; background: none; border: none;
  font-size: 1.5rem; cursor: pointer; color: var(--brand-deep); padding: 0.25rem;
}

/* ============ HERO ============ */
.hero {
  min-height: 85vh; display: flex; align-items: center; justify-content: center;
  padding: 120px 2rem 80px; background: var(--bg-warm); text-align: center;
  position: relative;
}
.hero::after {
  content: ''; position: absolute; width: 450px; height: 450px; border-radius: 50%;
  background: rgba(93,173,226,0.06); top: 35%; left: 50%;
  transform: translate(-50%, -50%); filter: blur(90px); pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-light);
  background: rgba(93,173,226,0.1); padding: 0.35rem 1rem; border-radius: 20px; margin-bottom: 1.5rem;
}
.hero-title { font-size: 3.2rem; font-weight: 700; color: var(--brand-deep); margin-bottom: 1.25rem; }
.hero-title em { font-style: normal; color: var(--brand-light); }
.hero-desc {
  font-size: 1.1rem; color: var(--text-medium); line-height: 1.75;
  margin-bottom: 2.25rem; max-width: 540px; margin-left: auto; margin-right: auto;
}
.hero-footer { margin-top: 2rem; font-size: 0.82rem; color: var(--text-light); }

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--brand-deep); color: white;
  padding: 0.9rem 2.25rem; border-radius: 12px;
  font-size: 1rem; font-weight: 600; font-family: 'DM Sans', sans-serif;
  border: none; cursor: pointer; transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(27,79,114,0.18);
}
.btn-primary:hover { background: var(--brand-light); transform: translateY(-2px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.5rem; background: rgba(93,173,226,0.1); color: var(--brand-deep);
  border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(93,173,226,0.2); }

/* ============ GENERIC SECTIONS ============ */
.content-section { padding: 80px 2rem; }
.section-inner { max-width: 1060px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-light); margin-bottom: 0.6rem;
}
.section-title { font-size: 2.2rem; color: var(--brand-deep); margin-bottom: 0.75rem; }
.section-desc { font-size: 1.05rem; color: var(--text-medium); max-width: 480px; margin: 0 auto; }

/* ============ CARDS GRID ============ */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.5rem;
}

.card {
  display: block; background: white; border-radius: 20px; padding: 2rem;
  border: 1px solid rgba(0,0,0,0.05); transition: all 0.3s; cursor: pointer;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.07); }

/* ---- Tool cards ---- */
.tool-card { position: relative; overflow: hidden; }
.tool-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--card-color, var(--brand-light)); opacity: 0; transition: opacity 0.25s;
}
.tool-card:hover::before { opacity: 1; }
.tool-emoji { font-size: 2.2rem; margin-bottom: 1rem; }
.tool-name {
  font-family: 'DM Sans', sans-serif; font-size: 1.1rem; font-weight: 700;
  color: var(--brand-deep); margin-bottom: 0.5rem;
}
.card-desc { font-size: 0.88rem; color: var(--text-medium); line-height: 1.6; }
.tool-tag {
  display: inline-block; margin-top: 1rem; padding: 0.2rem 0.65rem; border-radius: 16px;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(93,173,226,0.1); color: var(--brand-light);
}
.tool-arrow {
  margin-top: 1.25rem; font-size: 0.82rem; font-weight: 600;
  color: var(--brand-deep); opacity: 0; transition: all 0.25s;
}
.tool-card:hover .tool-arrow { opacity: 1; }

/* ---- Story cards ---- */
.story-card { background: white; }
.story-tag {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 12px; margin-bottom: 1rem;
}
.story-tag.funny { background: rgba(241,196,15,0.15); color: #D4A017; }
.story-tag.lesson { background: rgba(93,173,226,0.12); color: var(--brand-light); }
.story-tag.dramatic { background: rgba(231,76,60,0.1); color: #C0392B; }
.card-title { font-size: 1.15rem; color: var(--brand-deep); margin-bottom: 0.6rem; }
.card-meta { font-size: 0.75rem; color: var(--text-light); font-weight: 500; margin-top: 1rem; }

/* ---- Section CTA ---- */
.section-cta { text-align: center; margin-top: 2.5rem; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--brand-deep); color: white;
  padding: 0.8rem 2rem; border-radius: 12px; font-size: 0.92rem;
  font-weight: 600; font-family: 'DM Sans', sans-serif;
  transition: all 0.25s;
}
.btn-cta:hover { background: var(--brand-light); transform: translateY(-1px); }
.section-cta-note { font-size: 0.8rem; color: var(--text-light); margin-top: 0.75rem; }

/* ============ TIP CARD (featured) ============ */
.tip-card {
  background: var(--bg-warm); border-radius: 24px; padding: 2.5rem;
  border-left: 4px solid var(--brand-light); max-width: 760px; margin: 0 auto;
}
.tip-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: white; background: var(--brand-light);
  padding: 0.3rem 0.85rem; border-radius: 16px; margin-bottom: 1.25rem;
}
.tip-title { font-size: 1.6rem; color: var(--brand-deep); margin-bottom: 1rem; }
.tip-teaser { font-size: 1.05rem; color: var(--text-medium); line-height: 1.75; margin-bottom: 1.5rem; }
.tip-readmore {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.9rem; font-weight: 600; color: var(--brand-deep);
  transition: all 0.2s; font-family: 'DM Sans', sans-serif;
}
.tip-readmore:hover { color: var(--brand-light); }

/* ============ ABOUT ============ */
.about-section { padding: 80px 2rem; background: var(--bg-warm); }
.about-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.about-text { font-size: 1.05rem; color: var(--text-medium); line-height: 1.85; margin-bottom: 1.25rem; }
.about-quote {
  font-family: 'Playfair Display', serif; font-size: 1.3rem; font-style: italic;
  color: var(--brand-deep); border-left: 3px solid var(--brand-light);
  padding-left: 1.25rem; text-align: left; margin: 2rem auto; max-width: 520px;
}

/* ============ CONTACT ============ */
.contact-section { padding: 80px 2rem; text-align: center; }
.contact-inner { max-width: 480px; margin: 0 auto; }
.contact-text { font-size: 1rem; color: var(--text-medium); line-height: 1.7; margin-bottom: 2rem; }

/* ============ FOOTER ============ */
.footer {
  background: var(--brand-deep); color: rgba(255,255,255,0.6);
  padding: 2.5rem 2rem; text-align: center;
}
.footer-brand {
  font-family: 'DM Sans', sans-serif; font-size: 1.2rem;
  font-weight: 700; color: rgba(255,255,255,0.8); margin-bottom: 0.5rem;
}
.footer-motto {
  font-family: 'Playfair Display', serif; font-size: 0.95rem;
  font-style: italic; color: rgba(255,255,255,0.3); margin-bottom: 1rem;
}
.footer-links {
  display: flex; justify-content: center; gap: 1.5rem;
  margin-bottom: 1rem; flex-wrap: wrap;
}
.footer-links a { font-size: 0.8rem; color: rgba(255,255,255,0.4); cursor: pointer; }
.footer-links a:hover { color: white; }
.footer-copy { font-size: 0.75rem; opacity: 0.3; }

/* ============ STANDALONE PAGE SHARED STYLES ============ */
/* Used by tools, stories, tips in their own index.html files */

.page-header {
  padding: 100px 2rem 2rem; background: var(--bg-warm); text-align: center;
}
.page-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 500; color: var(--text-light);
  transition: color 0.2s; font-family: 'DM Sans', sans-serif;
}
.page-back:hover { color: var(--brand-deep); }
.page-emoji { font-size: 3rem; margin-bottom: 0.75rem; }
.page-title { font-size: 2.2rem; color: var(--brand-deep); margin-bottom: 0.5rem; }
.page-desc { font-size: 1.05rem; color: var(--text-medium); max-width: 460px; margin: 0 auto; }

.page-body { padding: 2.5rem 2rem; max-width: 600px; margin: 0 auto; }
.workspace {
  background: white; border-radius: 24px; padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.04);
}

/* Article pages (stories, tips) */
.article-page { padding: 100px 2rem 3rem; max-width: 720px; margin: 0 auto; }
.article-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: white;
  background: var(--brand-light); padding: 0.3rem 0.85rem; border-radius: 16px; margin-bottom: 1rem;
}
.article-badge.funny { background: rgba(241,196,15,0.15); color: #D4A017; }
.article-title { font-size: 2rem; color: var(--brand-deep); margin-bottom: 0.5rem; }
.article-subtitle {
  font-size: 1.05rem; color: var(--text-light); font-style: italic;
  margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 2px solid #F0EEEA;
}
.article-body p { font-size: 1.02rem; color: var(--text-medium); line-height: 1.85; margin-bottom: 1.25rem; }
.article-body em { color: var(--text-dark); }
.article-body strong { color: var(--text-dark); }
.article-bottom {
  margin-top: 3rem; padding: 2rem; background: var(--bg-warm); border-radius: 16px;
  font-size: 1rem; color: var(--text-medium); line-height: 1.8;
  font-style: italic; border-left: 3px solid var(--brand-light);
}

/* Story-specific */
.highlight-block {
  background: var(--bg-warm); border-left: 4px solid var(--brand-light);
  padding: 1.5rem 1.75rem; border-radius: 0 16px 16px 0; margin: 2rem 0;
  font-size: 1.02rem; color: var(--text-dark); line-height: 1.8;
}
.scene-break { text-align: center; margin: 2.5rem 0; font-size: 1.2rem; color: var(--text-light); letter-spacing: 0.5em; }
.dialogue { padding-left: 1.25rem; border-left: 3px solid #E8E6E2; margin: 1.5rem 0; font-style: italic; }
.dialogue .speaker {
  font-style: normal; font-weight: 700; color: var(--brand-deep);
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em;
  display: block; margin-bottom: 0.2rem;
}
.dr-phrase { font-style: italic; color: var(--brand-deep); font-weight: 500; }
.story-lesson { margin-top: 3rem; padding: 2rem; background: var(--bg-warm); border-radius: 20px; text-align: center; }
.story-lesson .lesson-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand-light); margin-bottom: 0.75rem;
}
.story-lesson .lesson-text {
  font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--brand-deep);
  font-style: italic; line-height: 1.5; max-width: 500px; margin: 0 auto;
}
.story-author {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid #F0EEEA;
  display: flex; align-items: center; gap: 1rem;
}
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--brand-deep);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.author-name { font-weight: 700; color: var(--text-dark); font-size: 0.95rem; }
.author-detail { font-size: 0.82rem; color: var(--text-light); }

/* Tip levels */
.level-header {
  display: flex; align-items: center; gap: 0.6rem;
  margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid #F0EEEA;
}
.level-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.level-dot.green { background: #27AE60; }
.level-dot.yellow { background: #F1C40F; }
.level-dot.red { background: #E74C3C; }
.level-name { font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--brand-deep); }
.level-sub { font-size: 0.82rem; color: var(--text-light); font-style: italic; }

/* Form inputs (shared by tools) */
.input-group { margin-bottom: 1.5rem; }
.input-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.4rem; }
.input-field {
  width: 100%; padding: 0.85rem 1rem; border: 2px solid #E8E6E2; border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; outline: none; transition: border-color 0.2s;
}
.input-field:focus { border-color: var(--brand-light); }
.input-hint { font-size: 0.75rem; color: var(--text-light); margin-top: 0.3rem; }
.select-field {
  padding: 0.55rem 0.75rem; border: 2px solid #E8E6E2; border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem; outline: none;
}
.result-area { text-align: center; display: none; padding-top: 1rem; }
.result-area.show { display: block; }
.result-area img { width: 220px; height: 220px; border-radius: 12px; border: 2px solid #F0F0F0; margin-bottom: 1rem; }

/* Coming soon */
.coming-soon { text-align: center; padding: 4rem 2rem; }
.coming-soon-emoji { font-size: 3.5rem; margin-bottom: 1rem; }
.coming-soon h3 { font-size: 1.5rem; color: var(--brand-deep); margin-bottom: 0.75rem; }
.coming-soon p { font-size: 1rem; color: var(--text-medium); max-width: 400px; margin: 0 auto; }

/* Page footer (standalone pages) */
.page-footer {
  background: var(--brand-deep); color: rgba(255,255,255,0.6);
  padding: 1.5rem 2rem; text-align: center; margin-top: 3rem;
}
.page-footer-brand { font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.6); }
.page-footer-copy { font-size: 0.75rem; opacity: 0.3; margin-top: 0.25rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px); padding: 1rem 2rem 1.5rem; gap: 0.75rem;
    border-bottom: 1px solid rgba(27,79,114,0.08);
  }
  .nav-hamburger { display: block; }
  .hero { padding: 100px 1.5rem 60px; min-height: auto; }
  .hero-title { font-size: 2.2rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .content-section, .about-section, .contact-section { padding: 60px 1.5rem; }
  .section-title { font-size: 1.75rem; }
  .workspace { padding: 1.75rem; }
  .article-page { padding: 80px 1.5rem 2.5rem; }
  .article-title { font-size: 1.6rem; }
  .story-author { flex-direction: column; text-align: center; }
  .level-header { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-desc { font-size: 1rem; }
  .section-title { font-size: 1.5rem; }
  .tip-card { padding: 1.75rem; }
}
