/* /var/www/art4point/user_service/static/css/user_common.css */

/* =========================
   0. 기본 설정 / 변수
========================= */
:root {
  --color-main: #1a73e8;
  --color-main-dark: #0d47a1;
  --color-accent: #ff6d00;
  --color-text-main: #222;
  --color-text-sub: #666;
  --color-text-light: #999;
  --color-bg: #f5f5f7;
  --color-white: #ffffff;
  --color-border: #e0e0e0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
  font-family: "Pretendard", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
}

/* =========================
   1. 공통 레이아웃 (top / contents / bottom)
========================= */

/* Header */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-main);
  text-decoration: none;
}

.gnb {
  display: flex;
  gap: 32px;
}

.gnb a {
  color: var(--color-text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.gnb a:hover {
  color: var(--color-main);
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* Footer */
.site-footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--color-text-sub);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--color-main);
}

.footer-info {
  color: var(--color-text-light);
  font-size: 14px;
  display: flex;
  gap: 16px;
}

/* Main Content */
.page-contents {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 16px 64px;
  min-height: calc(100vh - 64px - 120px); /* header + footer 높이 제외 */
}

/* =========================
   2. 공통 버튼 / 링크
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  background: #f8f9fa;
  border-color: var(--color-main);
}

.btn.primary {
  background: var(--color-main);
  border-color: var(--color-main);
  color: var(--color-white);
}

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

.btn.small {
  padding: 6px 12px;
  font-size: 13px;
}

.btn.large {
  padding: 12px 24px;
  font-size: 16px;
}

/* 링크 스타일 */
a {
  text-decoration: none;
  color: var(--color-main);
  transition: color 0.2s;
}

a:hover {
  color: var(--color-main-dark);
}

/* =========================
   3. auth / mypage 전용 블록
========================= */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  padding: 40px 32px;
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-align: center;
  color: var(--color-text-main);
}

.auth-subtitle {
  text-align: center;
  color: var(--color-text-sub);
  margin: 0 0 32px 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--color-text-main);
}

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

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

.auth-helper {
  text-align: center;
  margin: 24px 0 0 0;
  color: var(--color-text-sub);
}

.auth-message {
  padding: 12px;
  border-radius: var(--radius-md);
  margin: 16px 0;
  text-align: center;
  font-size: 14px;
}

.auth-message.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

.auth-message.success {
  background: #e8f5e8;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

/* =========================
   4. 후원 본 서비스 페이지 공용
========================= */

.support-hero {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}

.support-hero h1 {
  font-size: 48px;
  margin: 0 0 16px 0;
  font-weight: 700;
}

.support-hero p {
  font-size: 18px;
  margin: 0;
  opacity: 0.9;
}

.support-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.project-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.project-image {
  width: 100%;
  height: 200px;
  background: var(--color-bg);
  object-fit: cover;
}

.project-content {
  padding: 20px;
}

.project-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.project-creator {
  color: var(--color-text-sub);
  font-size: 14px;
  margin: 0 0 12px 0;
}

.project-description {
  color: var(--color-text-sub);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

/* =========================
   5. 유틸리티 클래스
========================= */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.hidden { display: none; }





/* 로딩 및 에러 상태 */
.loading {
  text-align: center;
  padding: 20px;
  color: var(--color-text-sub);
}

.error {
  text-align: center;
  padding: 20px;
  color: #c62828;
  background: #ffebee;
  border-radius: var(--radius-md);
}

.user-greeting {
  color: var(--color-text-main);
  font-weight: 500;
}