/* =========================================================
   arubyeol — 공통 스타일
   컨셉: 꿀이 번지는 햇살 (Honey Sunlight)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root{
  --cream:      #FFFDF6;
  --white:      #FFFFFF;
  --yellow-pale:#FFF3D0;
  --yellow:     #FFD873;
  --yellow-deep:#F7B733;
  --honey:      #E8940C;
  --ink:        #3A2E1D;
  --ink-soft:   #8A7758;
  --line:       rgba(58,46,29,0.10);
  --shadow:     0 20px 50px rgba(232,148,12,0.14);
  --radius-lg:  28px;
  --radius-md:  18px;
  --radius-sm:  12px;
  --maxw:       880px;
  --font-display:'Gowun Batang', serif;
  --font-body:  'Noto Sans KR', sans-serif;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  min-height:100vh;
  font-family:var(--font-body);
  color:var(--ink);
  background:
    radial-gradient(1200px 600px at 15% -10%, var(--yellow-pale) 0%, transparent 60%),
    radial-gradient(1000px 700px at 110% 10%, var(--yellow) 0%, transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--white) 55%, var(--yellow-pale) 100%);
  background-attachment:fixed;
  transition:background 0.4s ease;
}

/* 관리자에서 배경 이미지를 지정했을 때 body에 이 클래스가 붙습니다 */
body.has-bg-image{
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-attachment:fixed;
}
body.has-bg-image::before{
  content:"";
  position:fixed; inset:0;
  background:linear-gradient(180deg, rgba(255,253,246,0.55), rgba(255,216,115,0.35));
  pointer-events:none;
  z-index:0;
}

a{ color:inherit; text-decoration:none; }
h1,h2,h3{ font-family:var(--font-display); margin:0; font-weight:700; }
p{ margin:0; line-height:1.75; }

.wrap{
  position:relative;
  z-index:1;
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 24px 80px;
}

/* ---------- 헤더 / 내비게이션 ---------- */
.site-header{
  position:relative; z-index:2;
  max-width:var(--maxw);
  margin:0 auto;
  padding:28px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
}
.site-logo{
  display:inline-flex;
  align-items:baseline;
  gap:8px;
  font-family:var(--font-display);
  font-size:19px;
  font-weight:700;
  color:var(--ink);
  letter-spacing:0.01em;
  transition:opacity .2s ease;
}
.site-logo:hover{ opacity:0.75; }
.site-logo .en{
  font-family:var(--font-body);
  font-size:11px;
  font-weight:500;
  letter-spacing:0.18em;
  color:var(--honey);
  text-transform:uppercase;
}
.site-title{
  font-size:clamp(30px,6vw,46px);
  color:var(--ink);
}
.site-nav{
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:4px;
  padding:6px;
  border-radius:999px;
  background:rgba(255,255,255,0.55);
  border:1px solid var(--line);
  box-shadow:0 10px 26px rgba(232,148,12,0.12);
  backdrop-filter:blur(8px);
}
.site-nav a{
  padding:9px 18px;
  border-radius:999px;
  font-size:14px;
  font-weight:500;
  color:var(--ink-soft);
  border:1px solid transparent;
  background:transparent;
  transition:all .25s ease;
}
.site-nav a:hover{
  color:var(--honey);
  background:rgba(255,255,255,0.8);
}
.site-nav a.active{
  color:var(--white);
  background:linear-gradient(135deg, var(--yellow-deep), var(--honey));
  border-color:transparent;
  box-shadow:0 8px 20px rgba(232,148,12,0.32);
}

/* ---------- 히어로 (메인 전용 시그니처 요소) ---------- */
.hero{
  position:relative;
  text-align:center;
  padding:64px 24px 40px;
}
.hero .drop{
  width:120px; height:120px;
  margin:0 auto 26px;
  border-radius:50% 50% 50% 4%;
  background:radial-gradient(circle at 32% 28%, #FFF6DC, var(--yellow) 45%, var(--honey) 100%);
  box-shadow:0 24px 40px rgba(232,148,12,0.35), inset 0 -6px 14px rgba(255,255,255,0.4);
  transform:rotate(-8deg);
  animation:float 5s ease-in-out infinite;
}
.hero .hero-image{
  width:130px; height:130px;
  margin:0 auto 26px;
  border-radius:50%;
  object-fit:contain;
  background:var(--white);
  display:block;
  box-shadow:0 24px 40px rgba(232,148,12,0.35);
  border:5px solid var(--white);
  animation:float 5s ease-in-out infinite;
}
@keyframes float{
  0%,100%{ transform:rotate(-8deg) translateY(0); }
  50%{ transform:rotate(-4deg) translateY(-10px); }
}
.hero h1{ font-size:clamp(34px,7vw,58px); }
.hero .subtitle{
  margin-top:14px;
  font-size:17px;
  color:var(--ink-soft);
}
.hero .message{
  margin:28px auto 0;
  max-width:560px;
  font-size:15.5px;
  color:var(--ink);
  white-space:pre-line;
}

/* ---------- 메인 페이지 메뉴 카드 ---------- */
.menu-grid{
  margin-top:52px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
@media (max-width:720px){ .menu-grid{ grid-template-columns:repeat(2,1fr);} }

.menu-card{
  padding:26px 18px;
  text-align:center;
  border-radius:var(--radius-md);
  background:rgba(255,255,255,0.65);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  transition:transform .25s ease, box-shadow .25s ease;
}
.menu-card:hover{ transform:translateY(-6px); box-shadow:0 26px 46px rgba(232,148,12,0.22); }
.menu-card .num{
  display:block;
  font-family:'Gowun Batang', serif;
  font-size:13px;
  color:var(--yellow-deep);
  letter-spacing:0.2em;
  margin-bottom:10px;
}
.menu-card .label{ font-size:16px; font-weight:700; }

/* ---------- 공통 페이지 섹션 ---------- */
.page-head{
  text-align:center;
  padding:56px 24px 30px;
}
.page-head .eyebrow{
  font-size:13px; letter-spacing:0.3em; color:var(--honey);
  text-transform:uppercase; margin-bottom:10px; display:block;
}
.page-head h1{ font-size:clamp(28px,5vw,40px); }

.card{
  background:rgba(255,255,255,0.7);
  backdrop-filter:blur(6px);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
  padding:34px;
  margin-bottom:20px;
}

/* 프로필 (이미지 / 정보+링크 2단 구성) */
.profile-split{
  display:flex;
  align-items:stretch;
  gap:28px;
}
.profile-image-col{
  flex:0 0 220px;
}
.profile-image-col .profile-photo{
  width:100%;
  height:100%;
  min-height:280px;
  border-radius:var(--radius-md);
  object-fit:contain;
  background:linear-gradient(145deg, var(--yellow-pale), var(--yellow));
  display:block;
  border:none;
  box-shadow:var(--shadow);
}
.profile-image-col .profile-photo.placeholder{
  min-height:280px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(145deg, var(--yellow-pale), var(--yellow));
  color:var(--white);
  font-size:13px;
  font-weight:700;
  letter-spacing:0.1em;
}
.profile-content-col{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.profile-name{ text-align:left; font-size:26px; margin-bottom:8px; }
.profile-intro{ text-align:left; color:var(--ink-soft); white-space:pre-line; margin-bottom:20px; }
.profile-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
}
.profile-links a{
  display:inline-block;
  padding:10px 20px;
  border-radius:999px;
  border:1px solid var(--yellow-deep);
  color:var(--honey);
  font-size:13.5px;
  font-weight:700;
  background:var(--white);
  transition:all .2s ease;
}
.profile-links a:hover{
  background:linear-gradient(135deg, var(--yellow-deep), var(--honey));
  color:var(--white);
  border-color:transparent;
}
@media (max-width:560px){
  .profile-split{ flex-direction:column; }
  .profile-image-col{ flex:none; }
  .profile-image-col .profile-photo{ min-height:220px; }
}
.detail-list{ display:grid; gap:12px; }
.detail-row{
  display:grid; grid-template-columns:100px 1fr; gap:14px;
  padding:12px 0; border-bottom:1px dashed var(--line);
  font-size:14.5px;
}
.detail-row .k{ color:var(--honey); font-weight:700; }

/* 공지사항 / 일정 리스트 */
.notice-item, .schedule-item{
  padding:20px 0;
  border-bottom:1px solid var(--line);
}
.notice-item:last-child, .schedule-item:last-child{ border-bottom:none; }
.notice-item .meta, .schedule-item .time{
  font-size:12.5px; color:var(--honey); font-weight:700; letter-spacing:0.05em;
  margin-bottom:6px; display:block;
}
.notice-item h3, .schedule-item h3{ font-size:17px; margin-bottom:8px; }
.notice-item p, .schedule-item p{ color:var(--ink-soft); font-size:14.5px; white-space:pre-line; }

/* ---------- 달력 (일정 페이지) ---------- */
.cal-header{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:20px;
}
.cal-header .cal-title{
  font-family:var(--font-display); font-size:20px; font-weight:700;
}
.cal-nav{ display:flex; gap:8px; }
.cal-nav button{
  width:34px; height:34px; border-radius:50%; border:1px solid var(--line);
  background:var(--white); color:var(--honey); font-size:15px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.cal-nav button:hover{ background:var(--yellow-pale); }
.cal-grid{
  display:grid; grid-template-columns:repeat(7,1fr); gap:6px;
}
.cal-dow{
  text-align:center; font-size:12px; font-weight:700; color:var(--ink-soft);
  padding-bottom:8px;
}
.cal-day{
  aspect-ratio:1;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.5);
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  padding-top:8px; font-size:13px; color:var(--ink);
  position:relative;
}
.cal-day.empty{ background:none; border:none; }
.cal-day.today{ border-color:var(--yellow-deep); border-width:2px; font-weight:700; }
.cal-day.has-event{
  background:linear-gradient(150deg, var(--yellow), var(--yellow-deep));
  color:var(--white); font-weight:700; border-color:transparent;
  box-shadow:0 8px 16px rgba(232,148,12,0.25);
}
.cal-day .dot{
  width:5px; height:5px; border-radius:50%; background:var(--white);
  margin-top:4px;
}
.cal-day.has-event.today{ border:2px solid var(--ink); }
@media (max-width:520px){
  .cal-day{ font-size:11.5px; border-radius:8px; }
  .cal-dow{ font-size:10.5px; }
}
.cal-list-title{
  margin-top:34px; margin-bottom:6px; font-size:13px; font-weight:700;
  color:var(--honey); letter-spacing:0.04em;
}

/* 드레스코드 */
.dress-colors{ display:flex; gap:12px; justify-content:center; margin:22px 0 6px; flex-wrap:wrap; }
.dress-swatch{
  width:52px; height:52px; border-radius:50%;
  border:4px solid var(--white); box-shadow:var(--shadow);
}
.dress-card-wrap{
  display:flex;
  justify-content:center;
  margin-top:26px;
}
.dress-card{
  width:min(320px, 80vw);
  aspect-ratio:3/4;
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow);
  position:relative;
  cursor:zoom-in;
  border:1px solid var(--line);
  background:linear-gradient(150deg, var(--yellow-pale), var(--yellow));
}
.dress-card img{
  width:100%; height:100%;
  object-fit:contain;
  display:block;
  transition:transform .3s ease;
}
.dress-card:hover img{ transform:scale(1.04); }
.dress-card.placeholder{
  display:flex; align-items:center; justify-content:center;
  color:var(--white); font-size:13px; font-weight:700; letter-spacing:0.1em;
  cursor:default;
}
.dress-card .hint-badge{
  position:absolute; right:12px; bottom:12px;
  background:rgba(58,46,29,0.55);
  color:#fff; font-size:11.5px; padding:6px 12px; border-radius:999px;
  backdrop-filter:blur(4px);
}

/* ---------- 이미지 확대 라이트박스 ---------- */
.lightbox{
  position:fixed; inset:0; z-index:100;
  background:rgba(20,15,6,0.86);
  display:none;
  align-items:center; justify-content:center;
  flex-direction:column;
}
.lightbox.open{ display:flex; }
.lightbox-stage{
  flex:1; width:100%;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.lightbox-stage img{
  max-width:88vw; max-height:72vh;
  transform:scale(1);
  transition:transform .2s ease;
  cursor:grab;
  user-select:none;
  border-radius:8px;
}
.lightbox-controls{
  display:flex; align-items:center; gap:10px;
  padding:16px; margin-bottom:env(safe-area-inset-bottom, 16px);
}
.lightbox-controls button{
  width:42px; height:42px; border-radius:50%; border:none;
  background:rgba(255,255,255,0.14); color:#fff; font-size:18px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.lightbox-controls button:hover{ background:rgba(255,255,255,0.26); }
.lightbox-close{
  position:absolute; top:20px; right:20px;
  width:40px; height:40px; border-radius:50%; border:none;
  background:rgba(255,255,255,0.14); color:#fff; font-size:20px; cursor:pointer;
}
.lightbox-close:hover{ background:rgba(255,255,255,0.26); }

/* 빈 상태 */
.empty{
  text-align:center; color:var(--ink-soft); font-size:14px;
  padding:30px 0;
}

/* 푸터 */
.site-footer{
  text-align:center; padding:40px 24px 10px;
  font-size:12.5px; color:var(--ink-soft); letter-spacing:0.04em;
}
.site-footer a{ color:var(--honey); }

/* ---------- 업보 (게시판) ---------- */
.board-list{
  display:flex;
  flex-direction:column;
  gap:20px;
}
.board-item{
  border-radius:var(--radius-lg);
  border:1px solid var(--line);
  background:rgba(255,255,255,0.72);
  box-shadow:var(--shadow);
  padding:32px;
  min-height:150px;
}
.board-item .meta{
  font-size:12.5px; color:var(--honey); font-weight:700; letter-spacing:0.05em;
  margin-bottom:10px; display:block;
}
.board-item h3{ font-size:18px; margin-bottom:12px; }
.board-item p{ color:var(--ink-soft); font-size:14.5px; white-space:pre-line; line-height:1.8; }
.board-item img{
  width:100%; height:auto; display:block;
  border-radius:var(--radius-md); margin-top:16px;
}
.admin-body{ background:linear-gradient(180deg, var(--cream), var(--yellow-pale)); }
.admin-shell{ max-width:760px; margin:0 auto; padding:50px 20px 100px; }
.admin-login{
  max-width:380px; margin:120px auto; padding:36px 30px;
  background:var(--white); border-radius:var(--radius-lg); box-shadow:var(--shadow);
  text-align:center;
}
.admin-login h1{ font-size:22px; margin-bottom:6px; }
.admin-login p{ color:var(--ink-soft); font-size:13.5px; margin-bottom:20px; }
.field{ margin-bottom:16px; text-align:left; }
.field label{ display:block; font-size:13px; font-weight:700; color:var(--ink-soft); margin-bottom:6px; }
.field input[type=text],
.field input[type=password],
.field textarea,
.field select{
  width:100%; padding:11px 13px; border-radius:var(--radius-sm);
  border:1px solid var(--line); font-family:inherit; font-size:14px;
  background:var(--cream); color:var(--ink);
}
.field textarea{ resize:vertical; min-height:80px; }
.btn{
  display:inline-block; padding:12px 22px; border:none; border-radius:999px;
  background:linear-gradient(135deg, var(--yellow-deep), var(--honey));
  color:var(--white); font-weight:700; font-size:14px; cursor:pointer;
  box-shadow:0 10px 22px rgba(232,148,12,0.3);
  transition:transform .2s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn.secondary{
  background:var(--white); color:var(--honey); border:1px solid var(--yellow-deep);
  box-shadow:none;
}
.btn.danger{ background:#fff; color:#c0392b; border:1px solid #e0a598; box-shadow:none; }
.btn.block{ width:100%; }

.admin-tabs{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:24px; }
.admin-tabs button{
  padding:9px 16px; border-radius:999px; border:1px solid var(--line);
  background:var(--white); color:var(--ink-soft); font-weight:600; font-size:13.5px;
  cursor:pointer;
}
.admin-tabs button.active{
  background:linear-gradient(135deg, var(--yellow-deep), var(--honey));
  color:var(--white); border-color:transparent;
}
.admin-panel{ display:none; }
.admin-panel.active{ display:block; }
.admin-panel .card{ text-align:left; }
.admin-panel h2{ font-size:19px; margin-bottom:18px; }

.repeat-item{
  border:1px solid var(--line); border-radius:var(--radius-sm);
  padding:16px; margin-bottom:14px; position:relative; background:var(--cream);
}
.repeat-item .remove-btn{
  position:absolute; top:10px; right:10px; background:none; border:none;
  color:#c0392b; font-size:13px; cursor:pointer; font-weight:700;
}
.thumb-preview{
  width:100%; max-height:220px; object-fit:contain; border-radius:var(--radius-sm);
  margin-top:8px; display:none; border:1px solid var(--line); background:var(--cream);
}
.thumb-preview.show{ display:block; }
.bg-toggle{ display:flex; gap:8px; margin-bottom:14px; }
.bg-toggle button{
  flex:1; padding:9px; border-radius:var(--radius-sm); border:1px solid var(--line);
  background:var(--white); cursor:pointer; font-size:13px; font-weight:600; color:var(--ink-soft);
}
.bg-toggle button.active{
  background:linear-gradient(135deg, var(--yellow-deep), var(--honey)); color:#fff; border-color:transparent;
}
.save-bar{
  position:sticky; bottom:16px; display:flex; justify-content:flex-end; gap:10px;
  margin-top:22px;
}
.toast{
  position:fixed; left:50%; bottom:26px; transform:translate(-50%,20px);
  background:var(--ink); color:#fff; padding:12px 20px; border-radius:999px;
  font-size:13.5px; opacity:0; pointer-events:none; transition:all .3s ease; z-index:50;
}
.toast.show{ opacity:1; transform:translate(-50%,0); }
.admin-topbar{
  display:flex; justify-content:space-between; align-items:center; margin-bottom:24px;
}
.admin-topbar h1{ font-size:20px; }
.hint{ font-size:12px; color:var(--ink-soft); margin-top:6px; }
