/* ==========================================================================
   MUSINSA STYLE MINIMALIST GUESTBOOK DESIGN SYSTEM
   Target: D:\Testmen_honkosuni\test\styles.css
   ========================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  --bg-main: #FFFFFF;
  --bg-sub: #F8F9FA;
  --bg-card: #FFFFFF;
  --text-main: #111111;
  --text-sub: #555555;
  --text-muted: #888888;
  --border-light: #E5E5E5;
  --border-dark: #111111;
  --accent-admin: #111111;
  --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --container-max: 880px;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.7;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.app-header {
  border-bottom: 1px solid var(--border-light);
  background: #FFF;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.brand-logo {
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo span {
  background: var(--text-main);
  color: #FFF;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: 700;
}

.admin-status-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border: 1px solid var(--border-dark);
  background: #FFF;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.admin-status-badge:hover {
  background: var(--text-main);
  color: #FFF;
}

.admin-status-badge.active {
  background: #111;
  color: #00FF66;
  border-color: #111;
}

/* Hero Title Section */
.hero-banner {
  padding: 48px 0 32px 0;
  border-bottom: 1px solid var(--border-light);
}

.banner-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  border: 1px solid var(--text-main);
  padding: 3px 8px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.banner-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.banner-desc {
  font-size: 1.05rem;
  color: var(--text-sub);
}

/* Guestbook Form Card */
.write-card {
  background: var(--bg-sub);
  border: 1px solid var(--border-light);
  padding: 28px;
  margin: 40px 0;
}

.form-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  border: 1px solid var(--border-light);
  outline: none;
  background: #FFF;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--text-main);
}

.form-textarea {
  width: 100%;
  height: 110px;
  padding: 12px 16px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  border: 1px solid var(--border-light);
  outline: none;
  background: #FFF;
  resize: vertical;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.form-textarea:focus {
  border-color: var(--text-main);
}

.submit-btn {
  width: 100%;
  padding: 14px;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 800;
  background: var(--text-main);
  color: #FFF;
  border: 1px solid var(--text-main);
  cursor: pointer;
  transition: opacity 0.2s;
}

.submit-btn:hover {
  opacity: 0.88;
}

/* Guestbook List Section */
.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.list-count {
  font-size: 1.1rem;
  font-weight: 800;
}

.entries-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 60px;
}

.entry-card {
  border: 1px solid var(--border-light);
  padding: 24px;
  background: var(--bg-card);
  transition: border-color 0.2s;
  position: relative;
}

.entry-card:hover {
  border-color: var(--border-dark);
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--bg-sub);
  padding-bottom: 10px;
}

.entry-author {
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.entry-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.entry-content {
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: pre-wrap;
  word-break: break-all;
  margin-bottom: 16px;
}

.entry-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.card-btn {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--border-light);
  background: #FFF;
  cursor: pointer;
  transition: border-color 0.2s;
}

.card-btn:hover {
  border-color: var(--border-dark);
}

.card-btn.delete {
  color: #D93838;
}

.admin-edit-badge {
  background: #111;
  color: #FFF;
  font-size: 0.7rem;
  padding: 2px 6px;
  font-weight: 700;
}

/* Modal Popup */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #FFF;
  border: 2px solid var(--text-main);
  padding: 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modal-btn {
  flex: 1;
  padding: 10px;
  font-family: var(--font-family);
  font-weight: 700;
  border: 1px solid var(--text-main);
  background: var(--text-main);
  color: #FFF;
  cursor: pointer;
}

.modal-btn.cancel {
  background: #FFF;
  color: var(--text-main);
}

/* Footer */
.app-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
