/* src/main/resources/static/css/styles.css */

/* ========== 변수 및 리셋 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #f43f5e;
  --bg: #fafafa;
  --surface: #ffffff;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========== Header & Navbar ========== */
.header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  gap: 24px;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

/* ========== Search Form ========== */
.search-form {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 400px;
}

.search-input {
  flex: 1;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-button {
  padding: 8px 16px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-button:hover {
  background-color: var(--primary-dark);
}

/* ========== Navbar Right ========== */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-link {
  color: var(--text-primary);
  font-weight: 500;
  margin-right: 8px;
}

.logout-form {
  display: inline;
}

.auth-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ========== Buttons ========== */
.btn-primary {
  padding: 8px 16px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  padding: 8px 16px;
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

/* ========== 반응형 ========== */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .navbar-left {
    gap: 16px;
    font-size: 14px;
  }

  .search-form {
    order: 3;
    width: 100%;
    max-width: none;
    margin-top: 12px;
  }
}

/* styles.css에 추가 */

/* ========== Container ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ========== Hero Section ========== */
.hero {
  text-align: center;
  padding: 60px 0 40px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
}

/* ========== Card ========== */
.card {
  background-color: var(--surface);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.welcome-card {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px;
}

.card-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.card-text {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.cold-start-card {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== Welcome Message ========== */
.welcome-message {
  margin-bottom: 32px;
}

.greeting {
  font-size: 20px;
  color: var(--text-primary);
}

/* ========== Section ========== */
.recommendations-section {
  margin-top: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.link-more {
  color: var(--primary);
  font-weight: 500;
  transition: color 0.2s;
}

.link-more:hover {
  color: var(--primary-dark);
}

/* ========== Song Grid ========== */
.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* styles.css에서 song-card 관련 스타일 수정 */

.song-card {
  background-color: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.song-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.song-card-link {
  display: flex;
  flex-direction: column;
}

.song-card-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: var(--bg);
}

.song-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.song-card-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  opacity: 0.3;
}

.song-info {
  padding: 16px;
}

.song-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-artist {
  font-size: 14px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== 반응형 ========== */
@media (max-width: 768px) {
  .container {
    padding: 24px 16px;
  }

  .hero {
    padding: 40px 0 24px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .card {
    padding: 24px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .song-grid {
    grid-template-columns: 1fr;
  }
}


/* styles.css에 추가 */

/* ========== Page Header ========== */
.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ========== Song List ========== */
.song-list {
  background-color: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.song-list-item {
  border-bottom: 1px solid var(--border);
}

.song-list-item:last-child {
  border-bottom: none;
}

.song-list-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  transition: background-color 0.2s;
}

.song-list-link:hover {
  background-color: var(--bg);
}

.song-list-info {
  flex: 1;
}

.song-list-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.song-list-artist {
  font-size: 14px;
  color: var(--text-secondary);
}

.song-list-genre {
  margin-left: 16px;
}

.genre-badge {
  display: inline-block;
  padding: 6px 12px;
  background-color: var(--bg);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-radius: 16px;
}

/* ========== 반응형 ========== */
@media (max-width: 768px) {
  .song-list-link {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .song-list-genre {
    margin-left: 0;
    margin-top: 12px;
  }
}

/* styles.css에 추가 */

/* ========== Song Detail ========== */
.song-detail {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.song-detail-header {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

.album-cover {
  width: 300px;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.song-detail-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.song-detail-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.song-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.song-meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meta-label {
  font-weight: 500;
  color: var(--text-secondary);
  min-width: 80px;
}

.meta-link {
  color: var(--primary);
  font-weight: 500;
}

.meta-link:hover {
  text-decoration: underline;
}

.spotify-link {
  color: var(--primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.spotify-link:hover {
  text-decoration: underline;
}

/* ========== Rating Summary ========== */
.rating-summary {
  padding: 20px;
  background-color: var(--bg);
  border-radius: 12px;
}

.rating-score {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.score-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}

.score-stars {
  font-size: 24px;
}

.rating-count {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ========== Section Title ========== */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* ========== My Rating Section ========== */
.my-rating-section {
  margin-top: 32px;
}

.rating-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.delete-form {
  display: inline-block;
}

/* ========== Audio Features ========== */
.audio-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audio-feature-item {
  padding: 12px 16px;
  background-color: var(--bg);
  border-radius: 8px;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ========== Forms ========== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-weight: 500;
  color: var(--text-primary);
}

.form-input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  width: 100px;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* ========== Reviews ========== */
.reviews-section {
  margin-top: 32px;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.review-item {
  padding: 20px;
  background-color: var(--bg);
  border-radius: 12px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-name {
  color: var(--text-primary);
  font-weight: 600;
}

.review-date {
  font-size: 14px;
  color: var(--text-secondary);
}

.review-content {
  color: var(--text-primary);
  line-height: 1.6;
  white-space: pre-wrap;
}

.review-actions {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

.review-edit-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ========== Comments ========== */
.comments-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.comments-empty {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-item {
  padding: 12px;
  background-color: var(--surface);
  border-radius: 8px;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.comment-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.comment-date {
  font-size: 12px;
  color: var(--text-secondary);
}

.comment-content {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
  white-space: pre-wrap;
  margin-bottom: 8px;
}

/* ========== Buttons ========== */
.btn-danger {
  padding: 8px 16px;
  background-color: var(--secondary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-danger:hover {
  opacity: 0.9;
}

.btn-danger-small {
  padding: 4px 12px;
  background-color: transparent;
  color: var(--secondary);
  border: 1px solid var(--secondary);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger-small:hover {
  background-color: var(--secondary);
  color: white;
}

/* ========== Utility ========== */
.login-prompt {
  padding: 16px;
  background-color: var(--bg);
  border-radius: 8px;
  text-align: center;
}

.link-primary {
  color: var(--primary);
  font-weight: 500;
}

.link-primary:hover {
  text-decoration: underline;
}

.empty-state {
  padding: 32px;
  text-align: center;
  color: var(--text-secondary);
}

/* ========== 반응형 ========== */
@media (max-width: 768px) {
  .song-detail-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .album-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .song-detail-title {
    font-size: 28px;
  }

  .rating-form {
    flex-direction: column;
    align-items: stretch;
  }

  .form-input {
    width: 100%;
  }

  .review-actions {
    flex-direction: column;
  }
}

/* styles.css에 추가 */

/* ========== Page Header with Action ========== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

/* ========== Columns List ========== */
.columns-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.column-card {
  background-color: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.column-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.column-card-link {
  display: block;
  padding: 24px;
}

.column-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.column-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.column-author {
  color: var(--text-primary);
  font-weight: 500;
}

.column-date {
  color: var(--text-secondary);
}

.column-date::before {
  content: "•";
  margin-right: 12px;
  color: var(--border);
}

/* ========== 반응형 ========== */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .column-card-link {
    padding: 20px;
  }

  .column-card-title {
    font-size: 18px;
  }

  .column-card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .column-date::before {
    display: none;
  }
}

/* styles.css에 추가 */

/* ========== Column Detail ========== */
.column-detail {
  background-color: var(--surface);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.column-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.column-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 16px;
}

.column-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 16px;
}

.column-author {
  color: var(--text-primary);
  font-weight: 500;
}

.column-date {
  color: var(--text-secondary);
}

.column-date::before {
  content: "•";
  margin-right: 12px;
  color: var(--border);
}

.column-delete-form {
  display: inline-block;
}

.column-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-primary);
  white-space: pre-wrap;
}

/* ========== 반응형 ========== */
@media (max-width: 768px) {
  .column-detail {
    padding: 24px;
  }

  .column-title {
    font-size: 28px;
  }

  .column-content {
    font-size: 16px;
  }

  .column-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .column-date::before {
    display: none;
  }
}

/* styles.css에 추가 */

/* ========== Column Form ========== */
.column-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-input-full {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.form-input-full:focus {
  outline: none;
  border-color: var(--primary);
}

.form-actions {
  display: flex;
  gap: 12px;
  padding-top: 8px;
}

/* ========== 반응형 ========== */
@media (max-width: 768px) {
  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn-primary,
  .form-actions .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

/* styles.css에 추가 */

/* ========== Profile Header ========== */
.profile-header {
  background-color: var(--surface);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.profile-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.profile-role {
  display: inline-block;
  padding: 6px 12px;
  background-color: var(--bg);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-radius: 16px;
}

.profile-actions {
  flex-shrink: 0;
}

/* ========== Profile Stats ========== */
.profile-stats {
  display: flex;
  gap: 32px;
  background-color: var(--surface);
  border-radius: 12px;
  padding: 24px 40px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s;
}

.stat-item:hover {
  transform: translateY(-2px);
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-number {
  font-size: 24px;
  color: var(--text-primary);
  font-weight: 700;
}

/* ========== Profile Reviews ========== */
.profile-reviews {
  margin-top: 32px;
}

.review-song {
  color: var(--primary);
  font-weight: 600;
  transition: color 0.2s;
}

.review-song:hover {
  color: var(--primary-dark);
}

/* ========== 반응형 ========== */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    padding: 24px;
  }

  .profile-name {
    font-size: 24px;
  }

  .profile-actions {
    width: 100%;
  }

  .profile-actions .btn-primary,
  .profile-actions .btn-secondary {
    width: 100%;
  }

  .profile-stats {
    padding: 20px;
    justify-content: space-around;
  }
}

/* styles.css에 추가 */

/* ========== Profile Edit Form ========== */
.profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ========== Alert ========== */
.alert-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.alert-error p {
  color: #dc2626;
  font-weight: 500;
  margin: 0;
}

/* styles.css에 추가 */

/* ========== Link Back ========== */
.link-back {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  margin-top: 12px;
  transition: color 0.2s;
}

.link-back:hover {
  color: var(--primary);
}

/* ========== User List ========== */
.user-list {
  background-color: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.user-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.user-list-item:last-child {
  border-bottom: none;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  transition: color 0.2s;
}

.user-name:hover {
  color: var(--primary);
}

.user-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-actions {
  flex-shrink: 0;
}

/* ========== 반응형 ========== */
@media (max-width: 768px) {
  .user-list-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .user-actions {
    width: 100%;
  }

  .user-actions button {
    width: 100%;
  }
}

/* styles.css에 추가 */

/* ========== Recommendations Grid ========== */
.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.recommendation-card {
  background-color: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.recommendation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.recommendation-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  gap: 16px;
}

.recommendation-info {
  flex: 1;
  min-width: 0;
}

.recommendation-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommendation-artist {
  font-size: 14px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommendation-score {
  flex-shrink: 0;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  color: white;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
}

/* ========== 반응형 ========== */
@media (max-width: 768px) {
  .recommendations-grid {
    grid-template-columns: 1fr;
  }
}

/* styles.css에 추가 */

/* ========== Search Box ========== */
.search-box {
  margin-bottom: 32px;
}

.search-form-large {
  display: flex;
  gap: 12px;
}

.search-input-large {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.search-input-large:focus {
  outline: none;
  border-color: var(--primary);
}

.search-query-text {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  padding: 16px;
  background-color: var(--bg);
  border-radius: 8px;
}

/* ========== Search Section ========== */
.search-section {
  margin-bottom: 40px;
}

.search-section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.search-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-secondary);
  background-color: var(--bg);
  border-radius: 8px;
}

/* ========== Search Results ========== */
.search-results {
  background-color: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.search-result-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-link {
  display: block;
  color: var(--text-primary);
  transition: color 0.2s;
}

.search-result-link:hover {
  color: var(--primary);
}

.search-result-link strong {
  font-size: 16px;
  font-weight: 600;
}

.search-result-meta {
  font-size: 14px;
  color: var(--text-secondary);
}

.column-result {
  padding: 20px;
}

.column-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.5;
}

/* ========== 반응형 ========== */
@media (max-width: 768px) {
  .search-form-large {
    flex-direction: column;
  }

  .search-section-title {
    font-size: 20px;
  }
}

/* styles.css에 추가 */

/* ========== Auth Container ========== */
.auth-container {
  background-color: var(--surface);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow);
  margin-top: 40px;
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 32px;
}

/* ========== Auth Form ========== */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.btn-full {
  width: 100%;
  padding: 12px;
  font-size: 16px;
}

.auth-link {
  text-align: center;
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ========== 반응형 ========== */
@media (max-width: 768px) {
  .auth-container {
    padding: 24px;
  }

  .auth-title {
    font-size: 24px;
  }
}

/* styles.css에 추가 */

/* ========== Admin Info ========== */
.admin-info {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ========== Admin Table ========== */
.admin-table-container {
  background-color: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead {
  background-color: var(--bg);
}

.admin-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.admin-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover {
  background-color: var(--bg);
}

.admin-user-link {
  color: var(--primary);
  font-weight: 500;
  transition: color 0.2s;
}

.admin-user-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ========== Admin Form ========== */
.admin-form {
  display: contents;
}

.admin-select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background-color: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s;
}

.admin-select:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-admin {
  padding: 6px 16px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.btn-admin:hover {
  background-color: var(--primary-dark);
}

/* ========== 반응형 ========== */
@media (max-width: 768px) {
  .admin-table-container {
    border-radius: 8px;
  }

  .admin-table th,
  .admin-table td {
    padding: 12px 8px;
    font-size: 14px;
  }

  .admin-select {
    font-size: 13px;
    padding: 4px 8px;
  }

  .btn-admin {
    font-size: 13px;
    padding: 4px 12px;
  }
}

/* styles.css에 추가 */

/* ========== Content Type Badge ========== */
.content-type-badge {
  display: inline-block;
  padding: 4px 10px;
  background-color: var(--bg);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  border-radius: 12px;
  white-space: nowrap;
}

/* ========== Table Cell Styles ========== */
.id-cell {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.author-name {
  font-weight: 500;
  color: var(--text-primary);
}

.content-snippet {
  display: block;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-secondary);
  font-size: 14px;
}

.date-cell {
  color: var(--text-secondary);
  font-size: 14px;
  white-space: nowrap;
}

/* ========== Link Button ========== */
.link-button {
  display: inline-block;
  padding: 6px 12px;
  background-color: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.link-button:hover {
  background-color: var(--primary-dark);
}

/* ========== 반응형 ========== */
@media (max-width: 768px) {
  .content-snippet {
    max-width: 150px;
  }

  .content-type-badge {
    font-size: 12px;
    padding: 3px 8px;
  }

  .link-button {
    font-size: 12px;
    padding: 4px 10px;
  }
}

/* styles.css에 추가 */

/* ========== Error Page ========== */
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  min-height: 60vh;
}

.error-icon {
  font-size: 80px;
  margin-bottom: 24px;
  opacity: 0.5;
}

.error-title {
  font-size: 72px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1;
}

.error-subtitle {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.error-message {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 500px;
}

.error-actions {
  display: flex;
  gap: 16px;
}

/* ========== 반응형 ========== */
@media (max-width: 768px) {
  .error-container {
    padding: 60px 16px;
  }

  .error-icon {
    font-size: 60px;
  }

  .error-title {
    font-size: 56px;
  }

  .error-subtitle {
    font-size: 22px;
  }

  .error-actions {
    flex-direction: column;
    width: 100%;
  }

  .error-actions a {
    width: 100%;
    text-align: center;
  }
}

/* styles.css 전체 Filter Form과 Pagination 부분 */

/* ========== Filter Form ========== */
.filter-form {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 20px;
  background-color: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 150px;
}

.filter-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.filter-select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  background-color: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-submit {
  align-self: flex-end;
}

/* ========== Pagination ========== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding: 20px 0;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background-color: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
  text-decoration: none;
}

.pagination-link:hover:not(.disabled) {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pagination-link.disabled {
  color: var(--text-secondary);
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* 페이지 상태 표시 */
.pagination-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  background-color: var(--bg);
  color: var(--text-secondary);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.pagination-status span {
  color: var(--text-primary);
  font-weight: 600;
}

/* 페이지 이동 폼 */
.pagination-jump-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.pagination-jump-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0;
}

.pagination-input {
  width: 60px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  transition: border-color 0.2s;
}

.pagination-input:focus {
  outline: none;
  border-color: var(--primary);
}

.pagination-jump-form .btn-secondary {
  padding: 6px 12px;
  font-size: 13px;
  margin: 0;
}

/* ========== 반응형 ========== */
@media (max-width: 768px) {
  .filter-form {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .filter-group {
    width: 100%;
    min-width: 0;
  }

  .filter-submit {
    width: 100%;
    margin-top: 8px;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0;
  }

  .pagination-link {
    padding: 8px 14px;
    font-size: 13px;
  }

  .pagination-status {
    padding: 8px 12px;
    font-size: 13px;
    order: -1;
    width: 100%;
    justify-content: center;
  }

  .pagination-jump-form {
    width: 100%;
    justify-content: center;
    padding: 8px;
  }

  .pagination-input {
    width: 50px;
  }
}
