/* kore-arsivi.css - page-scoped styles (prefix: ka-) */
:root{
  --ka-pink-a: #f8bbd0;
  --ka-pink-b: #e1bee7;
  --ka-petal: #ffb6c1;
  --ka-text: #2b0b2f;
  --ka-accent: #d81b60;
  --ka-accent-deep: #c60c30;
}
html,body{height:100%;margin:0;font-family: 'Gaegu', 'Noto Sans KR', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;}
body.ka-body{
  background: transparent;
  color: var(--ka-text);
  position:relative;
  isolation:isolate;
  overflow-x:hidden;
}

body.ka-body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background: linear-gradient(180deg, #fce4ec 0%, #f3e5f5 100%);
}

/* Left side soft pink glow bleeding in from the edge */
body.ka-body::before{
  content:"";
  position:fixed;
  left:-150px;
  top:0;
  bottom:0;
  width:300px;
  background:radial-gradient(
    circle at 150px 50%,
    rgba(216, 27, 96, 0.08) 0%,
    transparent 60%
  );
  filter:blur(60px);
  pointer-events:none;
  z-index:0;
}

/* Right side soft cherry blossom glow bleeding in from the edge */
body.ka-body::after{
  content:"";
  position:fixed;
  right:-150px;
  top:0;
  bottom:0;
  width:300px;
  background:radial-gradient(
    circle at -150px 50%,
    rgba(252, 228, 236, 0.06) 0%,
    transparent 60%
  );
  filter:blur(60px);
  pointer-events:none;
  z-index:0;
}

/* Traditional Korean geometric patterns on left and right */
.ka-pattern{ position:fixed; top:0; height:100vh; width:100px; pointer-events:none; z-index:1; }
.ka-pattern-left{ left:0; }
.ka-pattern-right{ right:0; }

/* Left and right decorative petals built with CSS only */
.ka-left-decor, .ka-right-decor{ display:none; }

/* center container - glass effect */
.ka-container{ position:relative; z-index:4; min-height:100vh; display:flex; align-items:center; justify-content:center; padding:48px; box-sizing:border-box; }
.ka-glass{ width:100%; max-width:980px; border-radius:16px; padding:40px; box-sizing:border-box;
  background: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow: 0 10px 40px rgba(0,0,0,0.12); color:var(--ka-text);
}

.ka-title{ margin:0 0 10px 0; font-size:2rem; letter-spacing:2px; }
.ka-sub{ margin:0 0 18px 0; color:rgba(43,11,47,0.8); }

.ka-content{ display:grid; gap:14px; }
.ka-card{ padding:18px; border-radius:10px; background: rgba(255,255,255,0.85); border:1px solid rgba(0,0,0,0.04); }
.ka-card h2{ margin:0 0 8px 0; font-size:1.1rem; }

/* Responsive adjustments */
@media (max-width:720px){
  .ka-left-decor, .ka-right-decor{ display:none; }
  .ka-glass{ padding:24px; margin:18px; }
}

/* ----- Additional Beotkkot (cherry blossom) CSS-only flowers ----- */
/* Update background to requested Mugunghwa gradient (soft pink-lilac) */
body.ka-body{ background: linear-gradient(180deg, #fce4ec 0%, #f3e5f5 100%); }

/* Replace earlier simple pseudo-elements with richer layered petals using radial-gradients */
.ka-right-decor{
  background-image:
    radial-gradient(18px 12px at 72% 6%, #ffc1e3 0 60%, transparent 61%),
    radial-gradient(26px 16px at 22% 28%, #ffc1e3 0 60%, transparent 61%),
    radial-gradient(22px 14px at 78% 48%, #ffc1e3 0 60%, transparent 61%),
    radial-gradient(30px 18px at 44% 72%, #ffc1e3 0 60%, transparent 61%),
    radial-gradient(20px 12px at 66% 86%, #ffc1e3 0 60%, transparent 61%);
  background-repeat:no-repeat; filter: drop-shadow(0 0 8px rgba(255,128,171,0.22));
}

.ka-left-decor{
  background-image:
    radial-gradient(24px 14px at 36% 86%, #ffc1e3 0 60%, transparent 61%),
    radial-gradient(18px 12px at 12% 66%, #ffc1e3 0 60%, transparent 61%),
    radial-gradient(30px 18px at 62% 48%, #ffc1e3 0 60%, transparent 61%),
    radial-gradient(20px 12px at 22% 30%, #ffc1e3 0 60%, transparent 61%);
  background-repeat:no-repeat; filter: drop-shadow(0 0 8px rgba(255,128,171,0.22));
}

/* Glow outlines for more neon effect */
.ka-right-decor::before, .ka-left-decor::before{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:2;
  background-image:
    radial-gradient(18px 12px at 72% 6%, rgba(255,128,171,0.16) 0 60%, transparent 61%),
    radial-gradient(26px 16px at 22% 28%, rgba(255,128,171,0.12) 0 60%, transparent 61%),
    radial-gradient(22px 14px at 78% 48%, rgba(255,128,171,0.10) 0 60%, transparent 61%);
  background-repeat:no-repeat; mix-blend-mode:screen;
}

/* Add explicit floating petal pseudo-elements (sizes between 20-40px) */
.ka-right-decor::after{
  content:""; position:absolute; right:12px; top:12px; width:36px; height:22px;
  border-radius:50% 50% 50% 50% / 80% 80% 20% 20%;
  background: linear-gradient(180deg,#ffc1e3,#ffd6e8);
  box-shadow:0 0 8px #ff80ab; z-index:3;
  animation: ka-fall-slow 14s linear infinite;
}

.ka-left-decor .ka-floating-petal {
  position:absolute; left:12px; bottom:40px; width:28px; height:16px;
  border-radius:50% 50% 50% 50% / 80% 80% 20% 20%;
  background: linear-gradient(180deg,#ffc1e3,#ffd6e8);
  box-shadow:0 0 8px #ff80ab; z-index:3;
  animation: ka-fall-slow 18s linear infinite reverse;
}

/* keyframes for gentle fall/float */
@keyframes ka-fall-slow{
  0%{ transform: translateY(0) rotate(0deg); opacity:1 }
  50%{ transform: translateY(16px) rotate(6deg); opacity:0.96 }
 100%{ transform: translateY(34px) rotate(12deg); opacity:0.9 }
}

/* Accessibility: hide heavy visuals on small devices */
@media (max-width:720px){
  .ka-right-decor, .ka-left-decor{ display:none !important; }
}

/* ----- CSS-only soft glow and pollen effect ----- */
/* Hide SVG decorations */
.ka-beotkkot{ display:none !important; }
.ka-left-decor, .ka-right-decor{ display:none !important; }

/* Left side soft pink glow bleeding in from the edge */
body.ka-body::before{
  content:"";
  position:fixed;
  left:-180px;
  top:0;
  bottom:0;
  width:360px;
  background:radial-gradient(
    ellipse 140px 400px at 180px 50%,
    rgba(216, 27, 96, 0.32) 0%,
    rgba(216, 27, 96, 0.1) 30%,
    transparent 70%
  );
  filter:blur(80px);
  pointer-events:none;
  z-index:1;
  mix-blend-mode:screen;
}

/* Right side soft cherry blossom glow bleeding in from the edge */
body.ka-body::after{
  content:"";
  position:fixed;
  right:-150px;
  top:0;
  bottom:0;
  width:300px;
  background:radial-gradient(
    circle at -150px 50%,
    rgba(252, 228, 236, 0.06) 0%,
    transparent 60%
  );
  filter:blur(60px);
  pointer-events:none;
  z-index:0;
}

/* Pollen dots - currently disabled, can be re-enabled with better positioning */
.ka-glass::before{
  display:none;
}

/* ----- Hangul Rain override: keep this page isolated and replace the previous decorations ----- */
body.ka-body{
  background: linear-gradient(180deg, #fce4ec 0%, #f3e5f5 100%);
  isolation:isolate;
}

body.ka-body::before,
body.ka-body::after{
  content:none !important;
  display:none !important;
}

.ka-beotkkot,
.ka-pattern,
.ka-left-decor,
.ka-right-decor{
  display:none !important;
}

.ka-hangul-rain{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:-1;
  pointer-events:none;
  opacity:0.85;
}

.ka-stage{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  isolation:isolate;
}

.ka-container{
  position:relative;
  z-index:1;
}

.ka-glass,
.content-box{
  position:relative;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 20px;
  backdrop-filter: blur(12px) saturate(115%);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
  box-shadow: 0 16px 45px rgba(43,11,47,0.1);
}

.ka-glass{
  width:100%;
  max-width:980px;
  padding:40px;
  box-sizing:border-box;
}

.ka-header{ margin-bottom:18px; }
.ka-title{
  margin:0 0 10px 0;
  font-size:2.4rem;
  letter-spacing:0.6px;
  font-family: 'Gaegu', 'Noto Sans KR', serif;
  font-weight:700;
}

.ka-sub{
  margin:0 0 18px 0;
  color:rgba(43,11,47,0.8);
  font-family: 'Noto Sans KR', system-ui;
}

/* Two-column responsive layout */
.ka-content{ display:block; }
.ka-columns{ display:flex; gap:20px; align-items:flex-start; }
.ka-col-left{ flex: 0 0 65%; }
.ka-col-right{ flex: 0 0 35%; }

.ka-card{ display:block; position:relative; padding:18px; border-radius:12px; background: rgba(255,255,255,0.72); border:1px solid rgba(255,255,255,0.25); margin-bottom:14px; color:inherit; text-decoration:none; transition: transform 220ms ease, box-shadow 220ms ease; }
.ka-card h2{ margin:0 0 8px 0; font-size:1.15rem; font-family: 'Gaegu', 'Noto Sans KR', serif; }
.ka-card p{ margin:0; color:rgba(43,11,47,0.7); font-size:0.95rem; }

/* Hover: neon pink outline + soft scale */
.ka-card:hover{ transform: scale(1.03); box-shadow: 0 6px 30px rgba(216,27,96,0.12), 0 0 0 4px rgba(216,27,96,0.08) inset; }
.ka-card:focus{ outline:none; box-shadow: 0 6px 30px rgba(216,27,96,0.12); }

.ka-card::before,
.ka-card::after{
  content:"";
  position:absolute;
  width:14px;
  height:14px;
  pointer-events:none;
}

.ka-card::before{
  top:0;
  left:0;
  border-top:2px solid rgba(198, 12, 48, 0.45);
  border-left:2px solid rgba(0, 56, 116, 0.28);
  border-radius:4px 0 0 0;
}

.ka-card::after{
  right:0;
  bottom:0;
  border-right:2px solid rgba(198, 12, 48, 0.35);
  border-bottom:2px solid rgba(0, 56, 116, 0.3);
  border-radius:0 0 4px 0;
}

@media (max-width:720px){
  .ka-glass{
    padding:24px;
    margin:18px;
  }

  .ka-hangul-rain{
    opacity:0.68;
  }
}

@media (max-width:720px){
  .ka-columns{ flex-direction:column; }
  .ka-col-left, .ka-col-right{ flex:1 1 100%; }
  .ka-card{ transform:none !important; }
}

/* Footer styling */
.ka-footer{ margin-top:18px; padding:18px 20px; border-radius:12px; background: rgba(255,255,255,0.6); border:1px solid rgba(255,255,255,0.28); }
.ka-footer-inner{ max-width:980px; margin:0 auto; }
.ka-footer h3{ margin:0 0 6px 0; font-size:1.05rem; font-weight:600; }

/* Ensure card links look clean */
a.ka-card{ text-decoration:none; }

/* Make the entire footer a clickable block */
.ka-footer-link{ display:block; color:inherit; text-decoration:none; }
.ka-footer-link .ka-footer-inner{ padding:0; }
.ka-footer-link:hover{ box-shadow: 0 8px 36px rgba(216,27,96,0.08); transform: translateY(-2px); transition: transform 180ms ease, box-shadow 180ms ease; }
