/* ========================================================================== */
/*  PAPERWITCH CORE STYLESHEET                                                */
/* -------------------------------------------------------------------------- */
/*  File:        paperwitch.css                                               */
/*  Author:      Allen Pieter                                                 */
/*  Project:     PaperWitch — Resume Creation Tool                            */
/*  Description: Core layout, navigation, and landing-page styles.            */
/*               Defines root variables, gradients, navigation bar, hero      */
/*               section, feature blocks, CTA bands, footer, and sparkles.    */
/* -------------------------------------------------------------------------- */
/*  Version:     1.0.0                                                        */
/*  Created:     2025-10-21                                                   */
/*  Compatibility: Chrome 112+, Edge 112+, Safari 16.5+, Firefox 117+         */
/*  License:     © 2025 Allen Pieter. All rights reserved.                    */
/* -------------------------------------------------------------------------- */
/*  Notes:                                                                    */
/*   • Employs global CSS variables for color and typography tokens.          */
/*   • Fully nesting-ready: all selectors structured for native CSS nesting.  */
/*   • Supported in Chromium 112+, Firefox 117+, Safari 17+.                  */
/*   • Uses consistent clamp(), min(), and fluid units for responsiveness.    */
/*   • Overflow-x hidden prevents minor skew-induced horizontal scroll.       */
/*   • Sparkle effect styles defined at end for button hover bursts.          */
/* -------------------------------------------------------------------------- */
/*  Sections:                                                                 */
/*   1. ROOT VARIABLES / GLOBALS                                              */
/*   2. NAVIGATION (Landing)                                                  */
/*   3. HERO + LANDING SECTIONS                                               */
/* ========================================================================== */

/* ==========================================================
   1. ROOT VARIABLES / GLOBALS
   ========================================================== */
:root {
  /* Step 1: The Base Floor Canvas (Wix Style Slate-Charcoal) */
  --bg-main: #0f172a; /*#13151c is old */
  
  /* Step 2: Elevated Component Surface (Lifts elements closer to the eye) */
  --bg-card: #1e293b; /*#1e212b is old */    
  --bg-input: #334155;   /* Slate 700: Perfectly distinct input zones */  
  --bg-card-hover: #262a37; 
  
  /* Step 3: Typography Depth Control */
  --text-primary: #f8fafc; /* Clean off-white #f3f4f6 */
  --text-secondary: #9ca3af;  /* Balanced silver-gray for clean paragraph blocks */
  --text-muted: #6b7280;     /* Muted iron grey for small helper labels */

  /* Utility & Accents */
  --witch-purple: #a855f7;
  --witch-glow: rgba(168, 85, 247, 0.25);
  --border: rgba(255, 255, 255, 0.07);
  
  --font-body: Inter, system-ui, -apple-system, sans-serif;
  --def-style:#333;
  --default:#007bff;
  --edit:rgb(181, 129, 25);
  --edit-hover:rgb(62,149,163);
  --trash:rgb(147, 38, 38);
  --trash-hover:rgb(169, 47, 59);
  --bg-window:rgba(0,0,0,0.8);

  --accent: #8b5cf6;  /* witchy purple */
  --accent-2: #4f46e5;/* deep indigo */
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

*, *::before, *::after {box-sizing: border-box;}
html {overflow-y: auto !important;}
html, body {
  background-color: var(--bg-main); /* Deep, intentional slate base */
  overflow-x: hidden;  
  position: relative;   
  margin: 0;
  padding: 0;
  color: var(--text-secondary); /* Balanced readable copy */
  font-family: var(--font-body);
}
body {
  display: flex;
  flex-direction: column;
}
body > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background: var(--bg-card);
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
}
main { flex: 1;  }
section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  padding: 5rem 1.5rem; /* Generous spacing top and bottom */
}
#login, #signup {
  height: 100%;
}
footer { 
  padding:2.5rem 0 2.5rem 0; 
  a { color:#c7c7ff; } 
}
h1, h2, h3 { 
  font-weight: 600;
  font-family: Unna, Georgia, serif; 
  letter-spacing: .2px; 
}
/* Base font sizes and line heights */
h1 { line-height: 1.1; font-size: clamp(1.8rem, 4vw + 1rem, 3rem); }
h2 { line-height: 1.2; font-size: clamp(1.6rem, 3vw + 1rem, 2.1rem); }
h3 { line-height: 1.3; font-size: clamp(1.3rem, 2vw + 0.5rem, 1.8rem); }
p {
  font-weight: 400;
  line-height: 1.5;
  font-size: clamp(1rem, 1.4vw + 0.25rem, 1.1rem);
}
.hidden {display:none;}

/* ==========================================================
  2. NAVIGATION BAR
========================================================== */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
}
nav a {
  color: azure;
  text-decoration: none;
  padding: 10px 20px;
  margin: 0 10px;
  border-radius: 5px;
  transition: background-color 0.3s;
}
nav a:hover, nav a.current {background-color: var(--text-muted);}
nav a.current { cursor: default; }
nav a[data-section="signup"] { background:#04AA6D; }
nav a[data-section="signin"], a[data-section="logout"] {border: 2px solid #dfdfdf;} /* #44d884 */
#logo img {height: clamp(8rem, 12vw, 10rem); width:auto;}

/* ========================================================
  1. BRANDING, TYPOGRAPHY & HOOK UTILITIES
========================================================= */
.magic-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(79, 70, 229, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.witch-title {
  font-family: 'Unna', serif;
  font-weight: 800;
  color: #fff !important;
  letter-spacing: -0.5px;
}

.text-gradient {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.85rem;
  color: var(--witch-purple);
}

.btn-glow {
  background: var(--witch-purple) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 0 20px var(--witch-glow);
  transition: transform 0.2s, box-shadow 0.2s;

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--witch-purple);
  }
}

.cursor-blink::after {
  content: "|";
  animation: blink 1s infinite;
}

@keyframes blink { 
  0%, 100% { opacity: 1; } 
  50% { opacity: 0; } 
}

/* Typewriter Cursor Injection */
.cursor-blink:focus::after {
  content: '_';
  display: inline-block;
  animation: workbench-blink 1s infinite steps(2, start);
  color: var(--witch-accent, #1a1a1a);
}

@keyframes workbench-blink {
  to { opacity: 0; }
}

/* ========================================================
  2. BENTO GRID (CONTAINED STRUCTURAL BLOCKS)
========================================================= */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 180px;
  gap: 1.5rem;

  .bento-item {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    transition: border 0.3s;

    &:hover {
      border-color: var(--witch-purple);
    }

    &.main-feature {
      grid-column: span 2;
      background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), transparent);
    }
    h3 { color:white;}
  }
}

/* ========================================================
  3. HERO AREA FOUNDRY MODALS (NATIVE NESTING)
========================================================= */
.mockup-container {
  position: relative;
  height: 400px;

  .main-preview {
    width: 300px;
    height: 400px;
    background: #fff;
    border-radius: 12px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;

    #hero-main-name {
      min-height: 24px;
      display: block;
    }

    #hero-main-headline {
      color: var(--witch-purple);
      font-weight: bold;
      font-size: 0.62rem;
      min-height: 14px;
      display: block;
      margin-top: 2px;
      font-family: 'Inter', sans-serif;
    }

    .standard-gap {
      margin: 6px 0;
    }

    .divider-main {
      height: 4px;
      background: #eee;
      
      &.no-margin-bottom {
        margin-bottom: 0;
      }
    }

    /* Target the text in the white hero centerpiece container explicitly */
    .paper-section-title {
      font-size: 0.52rem;
      font-weight: bold;
      letter-spacing: 0.5px;
      color: #555 !important; /* Keep it clean dark grey against white paper */
      
      &.exp-title-space    { margin-bottom: 3px; }
      &.skills-title-space { margin-top: 6px; margin-bottom: 3px; }
      &.edu-title-space    { margin-top: 28px; margin-bottom: 3px; }
    }

    #hero-main-exp {
      min-height: 50px;
      display: block;
    }

    #hero-main-skills {
      min-height: 28px;
      display: flex;
      flex-wrap: wrap;
      gap: 4px 12px;
    }

    #hero-main-edu {
      min-height: 20px;
      display: block;
    }

    .footer-push {
      margin-top: auto;
      padding-top: 4px;
    }
  }

  .floating-sheet {
    position: absolute;
    width: 250px;
    height: 350px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    z-index: 1;
    animation: float 6s infinite ease-in-out;
    padding: 1.15rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;

    &.sheet-1 { top: -20px; right: 20px; animation-delay: 0s; }
    &.sheet-2 { bottom: -20px; left: 20px; animation-delay: 0s; }

    .sheet-glass-headline {
      color: var(--witch-purple);
      font-weight: bold;
      font-size: 0.52rem;
      opacity: 0.8;
      font-family: 'Inter', sans-serif;
      min-height: 12px;
      margin-top: 1px;
    }

    .micro-gap {
      margin: 4px 0;
    }

    .micro-line {
      height: 3px;
      background: rgba(255, 255, 255, 0.1);
    }

    /* Explicitly fix the background sheet headers here */
    .glass-section-title {
      font-size: 0.45rem;
      color: #e2e8f0 !important; /* Bright crisp white-grey for high visibility on glass background */
      font-weight: bold;
      letter-spacing: 0.5px;
      margin-bottom: 2px;
      opacity: 0.9;

      &.top-space-sm { margin-top: 4px; }
      &.top-space-md { margin-top: 8px; }
    }

    .sheet-glass-exp {
      min-height: 52px;
      line-height: 1.3;
    }

    .sheet-glass-skills {
      min-height: 24px;
      display: flex;
      flex-wrap: wrap;
      gap: 2px 8px;
    }

    .sheet-glass-edu {
      min-height: 14px;
    }
  }

  .preview-header { height: 40px; background: #eee; margin-bottom: 20px; width: 60%; }
  .preview-line { 
    height: 10px; background: #f0f0f0; margin-bottom: 10px; border-radius: 5px; 
    &.long  { width: 100%; }
    &.mid   { width: 70%; }
    &.short { width: 40%; }
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-20px) rotate(-2deg); }
}

/* ========================================================
  4. INTERACTIVE WORKBENCH (SHOWCASE SECTION)
========================================================= */
.showcase-area {
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.05) 0%, transparent 70%);

  .workbench {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    perspective: 1000px;
  }
  .editor-side {
    transform: rotateY(15deg);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 20px;
    width: 320px;
    box-shadow: -20px 20px 50px rgba(0,0,0,0.4);

    .glass-input {
      background: rgba(255,255,255,0.03);
      padding: 12px;
      border-radius: 8px;
      margin-bottom: 1rem;
      border-left: 2px solid transparent;

      &.active-input {
        border-left: 2px solid var(--witch-purple);
        background: rgba(168, 85, 247, 0.05);
      }
    }

    .label-ghost {
      font-size: 0.7rem;
      text-transform: uppercase;
      color: var(--witch-purple);
      display: block;
      margin-bottom: 4px;
    }

    .input-line { color: #fff; font-family: monospace; font-size: 0.9rem; }
  }

  .preview-side {
    transform: rotateY(-10deg);

    .resume-paper {
      width: 380px;
      height: 480px;
      background: #fff;
      color: #1a1a1a;
      padding: 3rem;
      border-radius: 4px;
      box-shadow: 20px 20px 60px rgba(168, 85, 247, 0.2);
      position: relative;
      overflow: hidden;

      .paper-content .line {
        height: 8px;
        background: #eee;
        margin-bottom: 12px;
        width: 100%;

        &.short { width: 60%; }
      }

      .paper-section-title {
        font-size: 0.65rem;
        font-weight: bold;
        letter-spacing: 1px;
        margin-bottom: 4px;
        color: #222;
      }

      .paper-exp-text {
        font-size: 0.8rem;
        font-weight: 500;
        margin-bottom: 8px;
        color: #222;
      }
    }

    .contra-style h3 {
      font-family: 'Inter', sans-serif;
      font-weight: 900;
      font-size: 2rem;
      letter-spacing: -1px;
    }
  }
}

/* ========================================================
  5. ANTI-SAAS MANIFESTO MODULE
========================================================= */
.manifesto-section {
  background: transparent;
  padding: 8rem 1.5rem;

  .manifesto-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;

    &:hover {
      transform: translateY(-4px);
      border-color: rgba(167, 139, 250, 0.3);
      box-shadow: 0 10px 30px rgba(167, 139, 250, 0.05);
    }

    .card-icon {
      font-size: 2rem;
      margin-bottom: 1.25rem;
      display: inline-block;
    }

    .title {
      color: #ffffff !important;
      margin-bottom: 1rem;
      font-weight: 600;
    }

    p {
      font-size: 0.95rem;
      line-height: 1.6;
    }
  }

  .privacy-badge {
    display: inline-block;
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.2);
    color: #a78bfa;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;

    strong { color: #ffffff; }
  }
}

/* ========================================================
  6. GLOBAL INTERACTION UTILITIES & RESPONSIVE CONTEXT
========================================================= */
[contenteditable="true"] {
  cursor: text;
  outline: none;
  transition: color 0.2s ease;

  &:hover {
    color: #a78bfa;
  }
}

@media (max-width: 800px) {
  .workbench { 
    flex-direction: column; 
    gap: 2rem; 
  }
  .editor-side, .resume-paper { 
    transform: none; 
    width: 100%; 
    max-width: 350px; 
  }
}

/* ==========================================================
  5. ✨ PAPERWITCH SERVER MESSAGE STYLING
========================================================== */

/* Server message */
#server-msg {
  display:flex;
  position:absolute;
  pointer-events: none; 
  top: 9rem;
  left: 0;
  z-index: 1;
}
.server-field {
  display:flex;
  position:absolute;
  pointer-events: none; 
  color:red;
  font-size: 0.75rem;
  margin-left: 8rem;
  /* margin-top: 0.9rem; */
  z-index: 1;
}

#server-msg > div {
  display:flex;
  justify-content: center;
  width:100vw;
}
/* New message colors */
.error {
  background-color: #2f1f1f;
  color: #f87171; 
  border: 1px solid #dc2626; 
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.success {
  background-color: #222f1f;
  color: #71f871; 
  border: 1px solid #2cdc26; 
  padding: 0.50rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
/* Retro message colors */
.serV-error {
  color:black;
  background: radial-gradient(circle, rgba(252, 70, 107, 1) 0%, rgba(63, 94, 251, 1) 100%);
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.serV-good {
  color:black;
  border-radius: 6px;
  background: radial-gradient(circle, rgba(8, 255, 0, 1) 15%, rgb(52, 52, 52) 50%);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* ─────────────────────────────────────────────── 
    ✨ PAPERWITCH SPARKLE EFFECT                   
    Particle burst for CTA + Sign-up buttons       
   ─────────────────────────────────────────────── */
.spark-particle{position:absolute;left:50%;top:50%;width:4px;height:4px;border-radius:1px;background:#fff;box-shadow:0 0 6px rgba(255,255,255,.9);transform:translate(-50%,-50%) rotate(var(--th));opacity:0;animation:spark-burst .6s ease-out forwards;pointer-events:none;}
.spark-particle:nth-child(3n){background:#9ae6ff;}
.spark-particle:nth-child(3n+1){background:#60a5fa;}
.spark-particle:nth-child(3n+2){background:#fda4af;}

@keyframes spark-burst{
  0%{opacity:0;transform:translate(-50%,-50%) rotate(var(--th)) scale(.6);}
  15%{opacity:1;}
  100%{opacity:0;transform:translate(-50%,-50%) rotate(var(--th)) translateX(var(--dist)) scale(.9);}
}

/* Accessibility: disable motion effects for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .spark-particle { animation: none; opacity: 0; }
}

/* ==========================================================
   6. LOGIN + SIGNUP SECTIONS
   ========================================================== */
.form-window {
  display: flex;
  place-items: center;
  padding: clamp(14px, 2vw, 28px);
  margin: 0 auto;
}

.auth-card {
  display: flex;
  /* height:auto; */
  background: rgba(15,17,24,.8);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(8px);

  .auth-columns {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    /* min-height: 690px; */
    width:100%;

    @media (max-width: 980px) {
      grid-template-columns: 1fr;
      min-height: unset;
      .auth-visual { height: 260px; }
    }
  }
  .auth-title { font-family: Unna, Georgia, serif; font-size: clamp(1.8rem, 2.8vw, 2.4rem); font-weight: 400; line-height: 1.1; }
  .auth-sub { color: var(--text-muted); font-size:15px; }
  #signup_form > h3 {margin-bottom:20px;}
  .pwd-rules li.ok {color: #3fb950;}

  .auth-visual {
    position: relative;
    background: #11131a;
    background-size: cover;
    background-position: center;
    display: grid; place-items: end start;
    padding: 1.25rem;

    &#signupVisual {
      background-image: url('../images/paperwitch_resentful.png');
    }
    &#pwdVisual {
      background-position: center top;
      background-image: url('../images/paperwitch_gated.png');
    }
    &#contactVisual {
      background-image: url('../images/paperwitch_support.png');
    }

    &::after {
      content: "";
      position: absolute; inset: 0;
      background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.35) 60%, rgba(0,0,0,.55));
      pointer-events: none;
    }

    .badge {
      position: relative;
      z-index: 1;
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.12);
      color: #e9e9ff;
      border-radius: 999px;
      padding: .5rem .85rem;
      box-shadow: 0 6px 22px rgba(0,0,0,.35);
      font-weight: 600;
    }

    /* Contact Help Page */
    .magic-message {
        position: absolute;
        top: 18%;
        left: 15%;
        right: 15%;
        bottom: 18%;
        white-space: pre-wrap;
        overflow: hidden;
        overflow-wrap: break-word;
        font-size: 1.05rem;
        line-height: 1.7;
        color: #2d2a26;
        pointer-events: none;
    }

    .magic-character {
        transition:
            color 2s ease,
            text-shadow 2s ease;
    }

    .magic-character.magic-glow {
        color: #75ff91;

        text-shadow:
            0 0 4px #39ff68,
            0 0 9px #39ff68,
            0 0 15px #39ff68;
    }
  }

  .auth-form {
    padding: clamp(20px, 4vw, 48px);
    display: grid;
    align-content: center;
    gap: 1.25rem;
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  }
  .field label.label { color: #dcdcf5; font-weight: 700; }
  .control .input, .control .textarea {
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.12);
    color: #f5f5ff;
    border-radius: 12px; height: 2.9em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  }

  /* Date Fields */
  .select-group { display: flex; gap: 0.35rem; }
  select { background: rgba(0,0,0,.35); border:1px solid rgb(54, 54, 54);}

  /* Password Bulletpoint style */
  .pwd-rules {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #999;
  }
  .pwd-rules li.valid { color: #2ecc71; }
  .pwd-rules li.invalid { color: #e74c3c; }

  .btn-primary.button {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(139,92,246,.35);
    transition: transform .12s ease, filter .2s ease;
  }
  .btn-primary.button:hover { filter: brightness(1.06); }
  .meta-row { font-size:15px; }
  .pw-link { color: #c7c7ff; }

  .divider {
    display: grid; grid-template-columns: 1fr auto 1fr; gap: .75rem; align-items: center; color: var(--text-muted);
  }
  .divider::before, .divider::after { content: ""; height: 1px; background: rgba(255,255,255,.12); }
  .footnote { color: var(--text-muted); font-size: .9rem; }
}

#loginBtn { margin-top:10px; }
#prevBtn { float:right; margin-right:10px;}
#nextBtn { color:azure;}

.step.active { opacity: 1; }
.step.finish {
  background-color: #04AA6D;
  box-shadow: inset 0 0 10px 2px rgba(0, 255, 182, 0.5), 0 0 10px 2px rgba(0, 255, 135, 1);
}
.button-wrapper button { margin:5px;}

/* Default Style */
form {
  margin-top:10px; 
  text-align: left;
  align-items: left; 
}
.toggle-eye > i {
  position:absolute;
  font-size:1.4em;
  cursor:pointer;
  color:var(--text-muted);
}

.elegant-divider {
  width: 80rem;
  max-height: 10rem;
  opacity: 0.70;
  pointer-events: none;
  user-select: none;
  filter: saturate(0);
}

/* ==========================================================
   7. TABLET + MOBILE PHONE PREFIXES
   ========================================================== */

/* Tablet */
/* @media only screen and (min-width:542px) and (max-width:912px) {

} */

/* Mobile Devices */
@media only screen and (max-width: 520px) and (orientation: portrait) {
  header { /* was max-width: 540px */
    flex-direction: column;
    align-items: flex-start;
  }
  #logo { align-self:center; }
  #logo img {height: clamp(9.5rem, 12vw, 10rem); width:auto;}
  nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    justify-content: space-around;
    background: var(--def-style);
    z-index:1;
  }
  nav a {
    padding: 15px 20px;
    margin: 2px;
    background-color: #444;
    color: white;
    border: none;
    font-size: 15px;
    cursor: pointer;
    flex: 1;
    text-align: center;
    border-radius:0;
    min-width:5.9rem;
  }
  nav a:focus {background-color: #367885;}
  a[data-section="login"] {border:none;}
  a[data-section="signup"] {
    background:#444; 
    border-bottom: 2px solid #04AA6D; 
    border-top: 2px solid #04AA6D;
  } 
  footer {margin-bottom:5.5rem; padding: 0 0 0 5px;}
  section {min-height:100vh;} /* Pushes footer where it should be */
  .auth-title {display:none;}
}


/* -----Keeper cute-------- */

/* button { border: 2px solid rgba(15, 15, 15, 0.616) !important; For contrast against Bulma CSS } */

/* input::placeholder {
    color:var(--def-style) !important;
} */

/* .glass {
    box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
    backdrop-filter: blur( 4px );
    -webkit-backdrop-filter: blur( 4px );
    border: 1px solid rgba( 255, 255, 255, 0.18 );
} */

/* Base styling for all server messages */

/* .error-msg { 
  position:absolute;
  display:none;
  color:red;
  font-size:12px;
  margin: -15px 0 10px ;
  cursor:default;
} */

/* .serV {
    position: absolute;
    margin-top: 14.5rem;
    width: 100%;
    border-bottom: 2px solid black;
    color: #fff;
    transform: skewY(2.2deg);
    text-align: center;   
    animation-delay: 0s; 
    animation: fadeInSoft 0.7s ease-out forwards, fadeOutSoft 2s ease-in-out forwards 6s; 
} */

/* Psychological Offloader Section */
.psych-section {
  position: relative;
  background: rgba(15, 15, 25, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pain-card, .relief-card {
  padding: 2rem;
  border-radius: 12px;
  height: 100%;
  position: relative;
}

.pain-card {
  background: rgba(255, 60, 60, 0.03);
  border: 1px solid rgba(255, 60, 60, 0.15);
}

.relief-card {
  background: rgba(154, 109, 255, 0.05);
  border: 1px solid rgba(154, 109, 255, 0.3);
  box-shadow: 0 0 30px rgba(154, 109, 255, 0.05);
}

.card-status-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
}

.tag-danger { background: rgba(255, 60, 60, 0.2); color: #ff6b6b; }
.tag-success { background: rgba(154, 109, 255, 0.2); color: #d6b4ff; }

.pain-list, .relief-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pain-list li, .relief-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.icon-bad { color: #ff6b6b; font-weight: bold; }
.icon-good { color: #b784ff; font-weight: bold; }

.spell-divider {
  font-size: 2rem;
  opacity: 0.5;
  animation: pulse 2s infinite alternate;
}

/* ========================================================
   JOURNAL / BLOG SECTION STYLES
========================================================= */
.journal-section {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.journal-header {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.journal-article {
  line-height: 1.8;
  font-size: 1.1rem;
}

.journal-entry {
  margin-bottom: 2.5rem;
}

.journal-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 0.75rem;
}

.journal-category {
  color: var(--bulma-primary, #9a67ea);
  font-weight: 600;
}

.entry-title {
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.25rem !important;
}

.entry-content p {
  color: #ccc;
  margin-bottom: 1.25rem;
}

/* Quote styling */
.journal-quote {
  border-left: 3px solid var(--bulma-primary, #9a67ea);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #eee;
}

/* Callout Box */
.journal-callout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(154, 103, 234, 0.08);
  border: 1px solid rgba(154, 103, 234, 0.2);
  border-radius: 12px;
}

.callout-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.callout-text {
  font-size: 0.98rem;
  color: #ddd;
}

/* Image Placeholder Box */
.journal-image-box {
  width: 100%;
}

.journal-image-box img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover; /* Prevents distortion if max-height triggers */
  border-radius: 12px; /* <--- This rounds the image corners! */
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}

.image-placeholder {
  width: 100%;
  height: 220px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.placeholder-icon {
  font-size: 2rem;
}

.placeholder-text {
  font-size: 0.85rem;
  color: #777;
}

.journal-divider {
  background-color: rgba(255, 255, 255, 0.08);
  height: 1px;
  margin: 3.5rem 0;
}

/* Responsive adjustments for Mobile */
@media (max-width: 768px) {
  .journal-article {
    font-size: 1rem; /* Slightly tighter text on mobile */
    line-height: 1.7;
  }
  
  .entry-title {
    font-size: 1.4rem !important;
  }
  
  .image-placeholder {
    height: 150px; /* Tighter image slots so it doesn't take up full screen height */
  }

  .journal-divider {
    margin: 2.5rem 0;
  }
}