/* 기본 리셋 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Pretendard", sans-serif;
}

/* 배경 */
body {
  background: radial-gradient(circle at 20% 20%, #1a1a1a, #000);
  color: #fff;
  min-height: 100vh;
}

/* 헤더 */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;

  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header h1 {
  font-size: 28px;
  font-weight: 700;
}

/* 네비 */
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #ccc;
  transition: 0.2s;
}

nav a:hover {
  color: #fff;
}

/* 로그아웃 버튼 (개선된 부분) */
nav button {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);

  color: #fff;
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;

  transition: all 0.25s ease;
}

nav button:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* 메인 영역 */
main {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}

/* 카드 (핵심: 리퀴드 글라스) */
section {
  width: 100%;
  max-width: 800px;
  padding: 40px;

  border-radius: 24px;

  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border: 1px solid rgba(255,255,255,0.1);

  box-shadow:
    0 8px 32px rgba(0,0,0,0.5),
    inset 0 0 20px rgba(255,255,255,0.05);

  transition: 0.3s;
}

section:hover {
  transform: translateY(-5px);
}

/* 배지 */
.badge {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 16px;

  border-radius: 999px;
  font-size: 12px;

  background: rgba(255, 200, 100, 0.15);
  border: 1px solid rgba(255, 200, 100, 0.3);
  color: #ffd580;
}

/* 제목 */
h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

/* 설명 */
p {
  color: #bbb;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* 입력창 */
input {
  width: 100%;
  padding: 12px;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);

  background: rgba(255,255,255,0.05);
  color: #fff;

  outline: none;
  transition: 0.2s;
}

input:focus {
  border: 1px solid #ffd580;
  background: rgba(255,255,255,0.08);
}

/* 버튼 */
button {
  background: linear-gradient(135deg, #ffe0a3, #ffb347);
  color: #000;

  border: none;
  padding: 12px 20px;
  border-radius: 14px;

  cursor: pointer;
  font-weight: 600;

  transition: 0.25s;
}

button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* 카드 리스트 (공지/작품) */
.card {
  padding: 20px;
  margin-bottom: 20px;

  border-radius: 18px;

  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.08);

  transition: 0.25s;
}

.card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.08);
}

.card h3 {
  margin-bottom: 10px;
}

.card small {
  color: #aaa;
}

.card p {
  margin-top: 10px;
}

/* 링크 */
a {
  color: #ffd580;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.notice-actions {
  margin-bottom: 20px;
}

.nav-user {
  color: #fff;
  font-weight: 700;
  margin-left: 10px;
}

textarea {
  width: 100%;
  min-height: 180px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #fff;
  outline: none;
  resize: vertical;
  transition: 0.2s;
}

textarea:focus {
  border: 1px solid #ffd580;
  background: rgba(255,255,255,0.08);
}

.sub-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.sub-tabs a {
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: #ddd;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: 0.2s;
}

.sub-tabs a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.sub-tabs .active-tab {
  background: rgba(255, 200, 100, 0.16);
  border: 1px solid rgba(255, 200, 100, 0.35);
  color: #ffd580;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.gallery-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: 0.25s;
}

.gallery-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.07);
}

.gallery-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
}

.gallery-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.gallery-card p {
  margin-bottom: 0;
  color: #cfcfcf;
  line-height: 1.6;
}

.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-bar button {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
}

.filter-bar button:hover {
  background: rgba(255,255,255,0.1);
}

select {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cancel-btn {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

.cancel-btn:hover {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  outline: none;
}

select:focus {
  border: 1px solid #ffd580;
  background: rgba(255,255,255,0.08);
}

select option {
  color: #111;
  background: #fff;
}

.clickable-card {
  cursor: pointer;
}

.detail-date {
  display: inline-block;
  margin-bottom: 20px;
  color: #aaa;
}

.detail-content {
  white-space: pre-wrap;
  line-height: 1.9;
  color: #ddd;
  font-size: 1.05rem;
}

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 30px;
  z-index: 9999;
}

.image-modal.show {
  display: flex;
}

.modal-image {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cancel-btn {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

.cancel-btn:hover {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

.simple-footer {
  margin-top: 60px;
  padding: 20px 10px;
  text-align: center;
  font-size: 0.9rem;
  color: #888;

  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-top: 1px solid rgba(255, 255, 255, 0.06);
}




@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  header {
    padding: 16px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  header h1 {
    font-size: 2rem;
  }

  nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
  }

  nav a,
  .nav-user {
    font-size: 0.95rem;
  }

  nav button {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  main {
    padding: 22px 12px 40px;
  }

  section {
    width: 100%;
    padding: 20px 16px;
    border-radius: 20px;
  }

  .badge {
    font-size: 0.78rem;
    padding: 6px 10px;
    margin-bottom: 12px;
  }

  h2,
  .hero-title {
    font-size: 1.9rem;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  p,
  .hero-sub,
  section > p {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  input,
  textarea,
  select {
    width: 100%;
    font-size: 16px;
  }

  .form-actions {
    width: 100%;
  }

  .form-actions button {
    width: 100%;
  }

  .notice-actions button {
    width: 100%;
  }

  .sub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .sub-tabs a {
    font-size: 0.9rem;
    padding: 9px 13px;
  }

  .filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .filter-bar button {
    font-size: 0.88rem;
    padding: 8px 12px;
  }

  .list-wrapper {
    padding: 14px;
    border-radius: 16px;
  }

  .card {
    padding: 16px 14px;
    border-radius: 16px;
  }

  .card h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .card p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-card {
    padding: 14px;
    border-radius: 16px;
  }

  .gallery-card img {
    height: 200px;
    border-radius: 12px;
  }

  .gallery-card h3 {
    font-size: 1.1rem;
  }

  .detail-content {
    font-size: 0.98rem;
    line-height: 1.85;
  }

  .simple-footer {
    margin-top: 40px;
    padding: 16px 10px;
    font-size: 0.82rem;
    line-height: 1.6;
  }
}