/* ===== CSS 변수 (라이트 모드) ===== */
:root {
    /* 브랜드 컬러 */
    --primary-color: #3D3DB5;
    --primary-hover: #2E2E8F;
    --primary-light: #5A5AE0;
    --secondary-color: #C0C0C0;
    --accent-color: #FF6B6B;
    
    /* 배경 & 서피스 */
    --bg-color: #F8F9FA;
    --surface-color: #FFFFFF;
    --card-bg: #FFFFFF;
    
    /* 텍스트 */
    --text-primary: #1A1A1A;
    --text-secondary: #6C757D;
    --text-tertiary: #ADB5BD;
    
    /* 보더 & 구분선 */
    --border-color: #E9ECEF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    /* 상태 컬러 */
    --success-color: #28A745;
    --warning-color: #FFC107;
    --error-color: #DC3545;
    --info-color: #17A2B8;
    
    /* 레이아웃 */
    --header-height: 70px;
    --max-width: 1200px;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 다크 모드 ===== */
[data-theme="dark"] {
    --bg-color: #0F0F1E;
    --surface-color: #1A1A2E;
    --card-bg: #252541;
    
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8D1;
    --text-tertiary: #8B8BA7;
    
    --border-color: #2D2D44;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ===== 기본 리셋 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== 컨테이너 ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 네비게이션 ===== */
.navbar {
    position: sticky;
    top: 0;
    background: var(--surface-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav-brand .logo {
    height: 40px;
    width: auto;
    transition: var(--transition);
    display: block;
    object-fit: contain;
    max-width: 200px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.nav-brand .logo:hover {
    transform: scale(1.05);
}

.nav-brand .logo[src=""],
.nav-brand .logo[src="#"] {
    display: none;
}

/* 로고 fallback 텍스트 스타일 */
.nav-brand .logo-fallback {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    display: inline-block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-link.active {
    background: var(--primary-color);
    color: white;
}

.nav-link i {
    font-size: 16px;
}

/* 사용자 메뉴 */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--bg-color);
    border-radius: 20px;
    transition: var(--transition);
}

.user-menu:hover {
    background: var(--primary-light);
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.logout-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    background: transparent;
    border: none;
    cursor: pointer;
}

.logout-btn:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

#loginBtn {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    transition: var(--transition);
}

#loginBtn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    margin-left: 8px;
}

.theme-toggle:hover {
    background: var(--bg-color);
    color: var(--primary-color);
    transform: rotate(15deg);
}

/* 로그인 사용자 안내 */
.login-user-notice {
    padding: 12px 16px;
    background: var(--primary-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.login-user-notice i {
    font-size: 16px;
}

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 20px;
}

/* ===== 히어로 섹션 ===== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 80px 24px;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-date {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    color: white;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
}

.decoration-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.decoration-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -50px;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

/* ===== 메인 콘텐츠 ===== */
.main-content {
    min-height: calc(100vh - var(--header-height));
}

/* ===== 묵상 섹션 ===== */
.devotion-section {
    padding: 60px 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.devotion-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition);
}

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

/* 로딩, 에러, 빈 상태 */
.loading-state,
.error-state,
.empty-state {
    padding: 80px 40px;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p,
.error-state p,
.empty-state p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 12px;
}

.error-state i,
.empty-state i {
    font-size: 48px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.retry-btn {
    padding: 12px 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 12px;
}

.retry-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* 묵상 콘텐츠 */
.devotion-content {
    padding: 40px;
}

.devotion-header {
    margin-bottom: 32px;
}

.devotion-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.devotion-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.devotion-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.devotion-author::before {
    content: "✍️";
}

.devotion-views {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 성경 구절 */
.verse-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.verse-section::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.1);
    font-family: Georgia, serif;
}

.verse-reference {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.verse-text {
    color: white;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

/* 묵상 본문 */
.devotion-body {
    color: var(--text-primary);
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 40px;
}

.devotion-body p {
    margin-bottom: 20px;
}

.devotion-body p:last-child {
    margin-bottom: 0;
}

/* 액션 버튼 */
.devotion-actions {
    display: flex;
    gap: 12px;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
}

.share-buttons-group {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.share-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-title i {
    color: var(--primary-color);
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.share-btn-compact:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.share-btn-compact i {
    font-size: 18px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.like-btn {
    background: var(--bg-color);
    color: var(--text-secondary);
}

.like-btn:hover {
    background: #FFE5E5;
    color: var(--accent-color);
}

.like-btn.liked {
    background: var(--accent-color);
    color: white;
}

.like-btn.liked i {
    animation: heartbeat 0.5s;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
}

/* 공유 섹션 */
.devotion-share-section {
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
}

.share-full-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 24px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    cursor: pointer;
}

.share-full-btn i {
    font-size: 20px;
}

.share-full-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 61, 181, 0.2);
}

.share-full-btn:active {
    transform: translateY(0);
}

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

.share-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.bookmark-btn {
    background: var(--bg-color);
    color: var(--text-secondary);
}

.bookmark-btn:hover {
    background: #FFF4E5;
    color: var(--warning-color);
}

.bookmark-btn.bookmarked {
    background: var(--warning-color);
    color: white;
}

.bookmark-btn.bookmarked i::before {
    content: "\f02e";
}

/* ===== 댓글 섹션 ===== */
.comments-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid var(--border-color);
}

/* 홈 묵상 댓글 스타일 (뉴스와 통일) */
#devotionCommentsSection .comments-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#devotionCommentsSection .comment-count {
    color: var(--primary-color);
    font-size: 16px;
}

#devotionCommentsSection .comment-form {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#devotionCommentsSection .comment-form .avatar-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#devotionCommentsSection .comment-form .form-input {
    width: 100%;
    box-sizing: border-box;
}

#devotionCommentsSection .btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* 일반 댓글 스타일 (Archive, 기타) */
.comments-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-count {
    color: var(--primary-color);
    font-size: 16px;
}

.comment-form {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-form .avatar-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-form .form-input {
    width: 100%;
    box-sizing: border-box;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* 기본 버튼 스타일 */
.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 61, 181, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* 다크모드에서 버튼이 더 밝게 */
[data-theme="dark"] .btn-primary {
    background: var(--primary-light);
    color: white;
    box-shadow: 0 2px 8px rgba(90, 90, 224, 0.3);
}

[data-theme="dark"] .btn-primary:hover {
    background: var(--primary-color);
    box-shadow: 0 4px 16px rgba(90, 90, 224, 0.5);
}

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

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

.comment-item:hover {
    box-shadow: var(--shadow-sm);
}

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

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.comment-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
}

.comment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.comment-delete-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: var(--transition);
    opacity: 0;
}

.comment-item:hover .comment-delete-btn {
    opacity: 1;
}

.comment-delete-btn:hover {
    background: var(--error-color);
    color: white;
}

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

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

.comment-content {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    white-space: pre-wrap;
}

/* 비밀번호 입력 그룹 */
.password-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.password-input-group .form-input {
    width: 100%;
}

.password-input-group .form-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.password-input-group .form-hint i {
    color: var(--warning-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label span {
    flex: 1;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
    box-sizing: border-box;
}

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

.form-textarea {
    resize: vertical;
}

/* ===== 커뮤니티 미리보기 ===== */
.community-preview {
    padding: 60px 0;
    background: var(--surface-color);
}

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

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

.section-link {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.section-link:hover {
    gap: 10px;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.community-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.community-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.community-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.community-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.community-author {
    flex: 1;
}

.community-author-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.community-date {
    font-size: 13px;
    color: var(--text-tertiary);
}

.community-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.community-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.community-card-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.community-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== 모달 ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-color);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-primary);
    transition: var(--transition);
}

.share-option:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-4px);
}

.share-option i {
    font-size: 32px;
}

.share-option span {
    font-size: 14px;
    font-weight: 600;
}

.share-url-preview {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.share-url-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-primary);
    font-size: 14px;
    font-family: monospace;
}

.btn-copy-url {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    transition: var(--transition);
}

.btn-copy-url:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* ===== 아바타 선택 ===== */
.avatar-selector {
    margin-bottom: 16px;
}

.avatar-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 14px;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.avatar-preview:hover {
    transform: scale(1.05);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    object-fit: cover;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.avatar-preview:hover img {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(61, 61, 181, 0.3);
}

.avatar-change-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 3px solid var(--card-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.avatar-modal-content {
    max-width: 600px;
    width: 90%;
}

.avatar-modal-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}

.avatar-option {
    width: 100%;
    aspect-ratio: 1;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 50%;
    border: 3px solid transparent;
    overflow: hidden;
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-option:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.avatar-option.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color-20);
}

/* ===== 푸터 ===== */
.footer {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 24px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 4px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 13px;
}

/* ===== 반응형 디자인 ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--surface-color);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-link {
        padding: 16px;
        border-radius: 8px;
    }
    
    .theme-toggle {
        margin: 8px 0 0 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .devotion-content {
        padding: 24px;
    }
    
    .devotion-title {
        font-size: 24px;
    }
    
    .verse-text {
        font-size: 17px;
    }
    
    .devotion-body {
        font-size: 16px;
    }
    
    .devotion-actions {
        flex-wrap: wrap;
    }
    
    .action-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn-compact {
        width: 100%;
        justify-content: center;
    }
    
    .community-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .share-options {
        grid-template-columns: 1fr;
    }
    
    .avatar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .comment-form {
        padding: 16px;
    }
    
    .avatar-selector {
        align-items: flex-start;
    }
    
    .avatar-preview {
        width: 64px;
        height: 64px;
    }
    
    .avatar-change-icon {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .comment-form .form-input,
    .comment-form .form-textarea {
        font-size: 16px;
    }
    
    .comments-section {
        margin-top: 24px;
        padding-top: 24px;
    }
    
    .devotion-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-section {
        padding: 60px 16px;
    }
    
    .verse-section {
        padding: 24px;
    }
    
    .avatar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 20px auto;
    }
    
    .avatar-modal-content {
        width: 95%;
    }
    
    .avatar-preview {
        width: 56px;
        height: 56px;
    }
    
    .avatar-change-icon {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }
    
    .comment-form {
        padding: 12px;
        gap: 12px;
    }
    
    .comments-title {
        font-size: 16px;
    }
}
