:root {
    --color-bg1: rgb(108, 0, 162);
    --color-bg2: rgb(0, 17, 82);
    --color1: 18, 113, 255;
    --color2: 221, 74, 255;
    --color3: 100, 220, 255;
    --color4: 200, 50, 50;
    --color5: 180, 180, 50;
    --color-interactive: 140, 100, 255;
    --circle-size: 80%;
    --blending: hard-light;
}

@keyframes moveInCircle {
    0% { transform: rotate(0deg);}
    50% { transform: rotate(180deg);}
    100% { transform: rotate(360deg);}
}
@keyframes moveVertical {
    0% { transform: translateY(-50%);}
    50% { transform: translateY(50%);}
    100% { transform: translateY(-50%);}
}
@keyframes moveHorizontal {
    0% { transform: translateX(-50%) translateY(-10%);}
    50% { transform: translateX(50%) translateY(10%);}
    100% { transform: translateX(-50%) translateY(-10%);}
}

html, body {
  font-family: 'Dongle', sans-serif;
  margin: 0;
  padding: 0;
}

.gradient-bg {
    width: 100vw;
    height: 100vh;
    position: fixed;
    overflow: hidden;
    background: linear-gradient(40deg, var(--color-bg1), var(--color-bg2));
    top: 0;
    left: 0;
    z-index: 0;
}
.gradient-bg svg {
    position: fixed;
    top:0;
    left:0;
    width: 0;
    height: 0;
}
.gradient-bg .gradients-container {
    filter: url(#goo) blur(40px);
    width: 100%;
    height: 100%;
}
.gradient-bg .g1 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);
    transform-origin: center center;
    animation: moveVertical 30s ease infinite;
    opacity: 1;
}
.gradient-bg .g2 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color2), 0.8) 0, rgba(var(--color2), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);
    transform-origin: calc(50% - 400px);
    animation: moveInCircle 20s reverse infinite;
    opacity: 1;
}
.gradient-bg .g3 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color3), 0.8) 0, rgba(var(--color3), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2 + 200px);
    left: calc(50% - var(--circle-size) / 2 - 500px);
    transform-origin: calc(50% + 400px);
    animation: moveInCircle 40s linear infinite;
    opacity: 1;
}
.gradient-bg .g4 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color4), 0.8) 0, rgba(var(--color4), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);
    transform-origin: calc(50% - 200px);
    animation: moveHorizontal 40s ease infinite;
    opacity: 0.7;
}
.gradient-bg .g5 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color5), 0.8) 0, rgba(var(--color5), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: calc(var(--circle-size) * 2);
    height: calc(var(--circle-size) * 2);
    top: calc(50% - var(--circle-size));
    left: calc(50% - var(--circle-size));
    transform-origin: calc(50% - 800px) calc(50% + 200px);
    animation: moveInCircle 20s ease infinite;
    opacity: 1;
}
.gradient-bg .interactive {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color-interactive), 0.8) 0, rgba(var(--color-interactive), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: 100%;
    height: 100%;
    top: -50%;
    left: -50%;
    opacity: 0.7;
}

.text-container {
  z-index: 100;
  width: 100vw;
  height: 100vh;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  font-size: 96px;
  color: white;
  opacity: 0.8;
  user-select: none;
  text-shadow: 1px 1px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    background: transparent;
    z-index: 1;
}

header {
    text-align: center;
    padding: 50px 0 20px 0;
    position: relative;
    z-index: 2;
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Montserrat:wght@700;900&display=swap');

.brand-title {
    font-family: 'Orbitron', 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    background: linear-gradient(100deg, #00fff0 0%, #3a7afe 40%, #a259f7 80%, #fff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow:
        0 0 16px #00fff0,
        0 0 32px #3a7afe,
        0 2px 24px #a259f7,
        0 1px 0 #fff,
        0 8px 32px rgba(0,0,0,0.10);
    opacity: 0;
    transform: translateY(50px) scale(1.05) skewX(-8deg);
    transition: all 1s cubic-bezier(.77,0,.18,1);
    border-radius: 16px;
    padding: 0.25em 0.7em;
    filter: drop-shadow(0 2px 16px #00fff0aa);
    letter-spacing: 0.22em;
    position: relative;
    overflow: visible;
}
.brand-title::after {
    content: "";
    display: block;
    position: absolute;
    left: 10%;
    top: 70%;
    width: 80%;
    height: 18%;
    background: linear-gradient(90deg, rgba(255,255,255,0.18) 0%, rgba(0,255,255,0.08) 100%);
    filter: blur(8px);
    opacity: 0.7;
    pointer-events: none;
    border-radius: 50%;
    z-index: 1;
}
.brand-title.show {
    opacity: 1;
    transform: translateY(0) scale(1.10) skewX(-8deg);
    animation: floatText 3s ease-in-out infinite;
}

@keyframes floatText {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

nav {
    background-color: rgba(44, 62, 80, 0.9);
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 30px;
    position: relative;
    z-index: 2;
}

nav a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.2s, transform 0.2s;
}

nav a:hover {
    color: #1abc9c;
    transform: scale(1.05);
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    background: #1a1a1a;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(255,255,255,0.1);
    position: relative;
    z-index: 2;
}

.message-box {
    background: #333;
    border: 1px solid #666;
    padding: 20px 40px 20px 20px;
    border-radius: 12px;
    position: relative;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    animation: slideFadeInBox 0.8s forwards ease-out;
}

@keyframes slideFadeInBox {
    0% { opacity: 0; transform: translateY(60px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.message-box .close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    cursor: pointer;
    color: #aaa;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.2s;
}

.message-box .close-btn:hover { color: #fff; }

.fade-out-up {
    animation: fadeOutUp 0.5s forwards ease-in;
}

@keyframes fadeOutUp {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-60px) scale(0.95); }
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="text"], input[type="password"] {
    padding: 12px;
    border: 1px solid #555;
    border-radius: 8px;
    outline: none;
    transition: 0.2s;
    font-size: 15px;
    background-color: #222;
    color: #fff;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #1abc9c;
    box-shadow: 0 0 5px rgba(26, 188, 156, 0.5);
}

button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #1abc9c;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover { background-color: #16a085; }

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #ecf0f1;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpTitle 1s forwards ease-out;
}

@keyframes slideUpTitle {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.recommend-section {
    margin-top: 30px;
    text-align: center;
}

.recommend-section h3 {
    margin-bottom: 20px;
    color: #1abc9c;
    font-size: 1.5rem;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.recommend-card {
    background: #2c3e50;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: #ecf0f1;
    transition: transform 0.2s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.recommend-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0px 6px 18px rgba(0,0,0,0.4);
    background: #34495e;
}

.card-content h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #00fff0;
}

.card-content p {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #bdc3c7;
}
/* ===============================
   🔹 건의사항 관련
=============================== */
.suggestions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-add-suggestion {
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.2s;
    display: flex;
    align-items: center; /* 글씨와 버튼 높이 맞춤 */
    height: 36px; /* 버튼 높이 고정 */
}

.btn-add-suggestion:hover {
    background-color: #555;
}

.suggestions-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.suggestion-card {
    display: block;
    background-color: #111;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    min-height: 180px;
    transition: 0.2s;
}

.suggestion-card:hover {
    background-color: #222;
}

.card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.card-content p {
    margin: 0;
    font-size: 0.95rem;
}

.card-content span {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #aaa;
}

.submit-suggestion-container {
    max-width: 600px;
    margin: 20px auto;
}

.submit-suggestion-container input[type="text"] {
    width: 100%;
    background-color: #111;
    color: #fff;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    height: auto; /* 제목 높이 원래대로 */
}

.submit-suggestion-container textarea {
    width: 100%;
    background-color: #111;
    color: #fff;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    height: 200px; /* 내용 입력칸만 크게 */
    resize: none;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-check input {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
    vertical-align: middle;
}

.form-check label {
    cursor: pointer;
    line-height: 1.2;
}

button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

button:hover {
    background-color: #555;
}

.suggestion-detail-card {
    background-color: #111;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.comments-section {
    margin-bottom: 20px;
}

.comment-card {
    background-color: #111;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.add-comment-section {
    position: relative;
    padding-bottom: 50px; /* 버튼 높이 + 여유 공간 확보 */
}

.add-comment-section textarea {
    width: 100%;
    box-sizing: border-box; /* 패딩/보더 포함해서 너비 계산 */
    background-color: #111;
    color: #fff;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    height: auto; /* 댓글 입력칸 원래 크기 */
    resize: none;
}


.add-comment-section button {
    position: absolute;
    right: 5px;
    bottom: 0px; /* textarea 아래쪽에서 버튼 위치 조정 */
    background-color: #333;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
}

.add-comment-section button:hover {
    background-color: #555;
}

.add-comment-section {
    position: relative;
    padding-bottom: 30px; /* 버튼 위치 조정용 */
}

/* ===============================
   🔹 로그인 / 회원가입 버튼 전용 (글씨 가운데, 크기 조정)
=============================== */

.btn-login,
.btn-signup {
    padding: 12px 24px;             /* 버튼 크기 조금 키움 */
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;                /* 글씨 크기 키움 */
    text-align: center;             /* 글씨 가운데 정렬 */
    vertical-align: middle;         /* 세로 가운데 정렬 */
    display: inline-flex;           /* 글씨 가운데 정렬 보장 */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* 로그인 버튼 색상 */
.btn-login {
    background-color: #1abc9c;
    color: white;
}

/* 로그인 버튼 호버 */
.btn-login:hover {
    background-color: #16a085;
    transform: none;               /* 호버시 커지지 않음 */
}

/* 회원가입 버튼 색상 */
.btn-signup {
    background-color: #3498db;
    color: white;
}

/* 회원가입 버튼 호버 */
.btn-signup:hover {
    background-color: #2980b9;
    transform: none;
}

/* 모든 텍스트 입력 필드와 텍스트영역에 동일한 스타일 적용 */
.submit-suggestion-container input[type="text"], 
.submit-suggestion-container textarea {
    width: 100%;
    background-color: #111;
    color: #fff;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
}

/* textarea 크기만 조정 */
.submit-suggestion-container textarea {
    height: 200px; /* 내용 입력칸만 크게 */
    resize: none;
}

/* 폼 체크박스 스타일 */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-check input {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
    vertical-align: middle;
}

.form-check label {
    cursor: pointer;
    line-height: 1.2;
}

/* 모든 입력 칸과 버튼을 동일한 스타일로 적용 */
.submit-suggestion-container input[type="number"],
.submit-suggestion-container input[type="text"] {
    width: 100%;
    background-color: #111;
    color: #fff;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    height: auto;
    font-size: 14px;
}

/* 버튼 스타일 */
.submit-suggestion-container button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #1abc9c;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%; /* 버튼 넓이 조정 */
}

.submit-suggestion-container button:hover {
    background-color: #16a085;
}

/* form-group에 여백 추가 */
.submit-suggestion-container .form-group {
    margin-bottom: 20px;
}

.submit-suggestion-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #fff;
}
