/* 공지사항 전용 CSS - board-notice.css */

/* ===== 공통 스타일 ===== */
.notice-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* 뒤로가기 버튼 */
.back-button {
    margin-bottom: 16px;
}

/* 공통 버튼 스타일 */
.btn-notice {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
    color: white;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

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

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #3b82f6;
    color: #3b82f6;
}

.btn-outline:hover {
    background-color: #3b82f6;
    color: white;
    transform: translateY(-1px);
}

/* ===== 헤더 스타일 ===== */
.notice-header {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .notice-header {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
    border-color: var(--border-color);
}

.notice-header-content {
    text-align: center;
}

.notice-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.notice-title-icon {
    width: 32px;
    height: 32px;
    color: #3b82f6;
}

.notice-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ===== 목록 페이지 스타일 ===== */
.notice-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 600px;
}

.search-wrapper {
    position: relative;
    flex: 1;
    border: 1px solid #d1d5db !important;
    border-radius: 8px;
    background-color: var(--input-bg);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-wrapper:hover {
    border-color: #6b7280 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.search-wrapper:focus-within {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.search-input {
    width: 100%;
    padding: 10px 12px;
    padding-left: 36px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: transparent;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-result-info {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-theme="dark"] .search-result-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(29, 78, 216, 0.1));
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.notice-list {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.notice-item {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
}

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

.notice-item:hover {
    background-color: var(--hover-bg);
    transform: translateX(2px);
}

.notice-item.pinned {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(245, 158, 11, 0.08));
    border-left: 3px solid #f59e0b;
}

.notice-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.notice-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.notice-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    transition: color 0.2s ease;
}

.notice-item:hover .notice-item-title {
    color: #3b82f6;
}

.notice-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.notice-item-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    align-items: center;
}

.notice-item-meta > span {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notice-item-meta > span:hover {
    background: var(--hover-bg);
}

.notice-item-meta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* 공지사항 번호 */
.notice-item-number {
    color: var(--text-muted);
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.notice-item.pinned .notice-item-number {
    color: #f59e0b;
    font-weight: 600;
}

.notice-item-content {
    flex: 1;
    min-width: 0;
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--text-muted);
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding: 20px 0;
}

.pagination a, .pagination span {
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.pagination a:hover {
    background: var(--hover-bg);
    color: #3b82f6;
}

.pagination .current {
    background: #3b82f6;
    color: white;
    font-weight: 600;
}

/* ===== 상세 페이지 스타일 ===== */
.notice-detail {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.notice-detail-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

[data-theme="dark"] .notice-detail-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(29, 78, 216, 0.1));
}

.notice-detail-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.notice-detail-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.notice-detail-meta > span {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.notice-detail-meta > span:hover {
    background: var(--hover-bg);
}

.notice-detail-meta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.notice-detail-content {
    padding: 24px;
    line-height: 1.7;
    font-size: 1rem;
    color: var(--text-primary);
}

.notice-detail-actions {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* ===== 댓글 스타일 ===== */
.comments-section {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.comments-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.comment-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db !important;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: var(--input-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comment-textarea:hover {
    border-color: #6b7280 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.comment-textarea:focus {
    outline: none;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

/* 로그인 안내 메시지 */
.login-notice {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.1);
}

[data-theme="dark"] .login-notice {
    background: linear-gradient(135deg, rgba(7, 89, 133, 0.2), rgba(3, 105, 161, 0.2));
    border-color: #0284c7;
}

.login-notice-content {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-notice-content svg {
    color: #0ea5e9;
    flex-shrink: 0;
}

.login-link {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.login-link:hover {
    color: #0284c7;
    text-decoration: underline;
}

.comments-list {
    padding: 0;
}

.comment-item {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

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

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

.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.comment-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comment-content {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.comment-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.comment-action {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-action:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.comment-action.reply:hover {
    color: #3b82f6;
}

.comment-action.edit:hover {
    color: #059669;
}

.comment-action.delete:hover {
    color: #ef4444;
}

.reply-form {
    margin-top: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: none;
}

.reply-form.active {
    display: block;
}

.reply-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db !important;
    border-radius: 6px;
    font-size: 0.9rem;
    background-color: var(--input-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 80px;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.reply-textarea:hover {
    border-color: #6b7280 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.reply-textarea:focus {
    outline: none;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.reply-item {
    margin-left: 32px;
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.empty-comments {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-comments-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--text-muted);
}

.empty-comments-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-comments-description {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* 하단 네비게이션 */
.bottom-navigation {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

/* ===== 폼 스타일 ===== */
.notice-form {
    padding: 24px;
}

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

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-label-icon {
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db !important;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: var(--input-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
    resize: vertical;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-input:hover, .form-textarea:hover {
    border-color: #6b7280 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.form-textarea {
    min-height: 160px;
    line-height: 1.5;
}

.char-counter {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid #d1d5db !important;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-checkbox-label:hover {
    background: var(--hover-bg);
    border-color: #6b7280 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.form-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #d1d5db !important;
    background: var(--input-bg);
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-checkbox:checked {
    background: #3b82f6;
    border-color: #3b82f6;
}

.form-checkbox:checked::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    padding-top: 16px;
    margin-top: 20px;
}

/* 댓글 수정 폼 전용 스타일 */
.comment-edit-form {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 20px;
}

.comment-edit-form .form-actions {
    padding-top: 5px;
    margin-top: 5px;
}

/* URL 미리보기 영역 */
.url-preview-container {
    margin-top: 10px !important;
    padding: 12px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    background-color: var(--bg-tertiary) !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

[data-theme="dark"] .url-preview-container {
    background-color: rgba(55, 65, 81, 0.5) !important;
    border-color: var(--border-color) !important;
}

.url-preview-container div:first-child {
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    margin-bottom: 8px !important;
    font-size: 0.85rem !important;
}

.url-preview-content {
    color: var(--text-secondary) !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
}

.url-preview-content a {
    color: #3b82f6 !important;
    text-decoration: underline !important;
}

[data-theme="dark"] .url-preview-content a {
    color: #60a5fa !important;
}

/* ===== 생성 페이지 스타일 ===== */
.notice-header.create {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

[data-theme="dark"] .notice-header.create {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(4, 120, 87, 0.1));
}

.notice-header.create .notice-title-icon {
    color: #059669;
}

.notice-header.create .btn-primary {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.notice-header.create .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

.notice-header.create .form-checkbox:checked {
    background: #059669;
    border-color: #059669;
}

.notice-header.create .form-checkbox-label:hover {
    border-color: #059669;
}

.notice-header.create .form-input:focus, 
.notice-header.create .form-textarea:focus {
    border-color: #059669;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.15);
}

/* ===== 수정 페이지 스타일 ===== */
.notice-header.edit {
    background: linear-gradient(135deg, #fff7ed, #fed7aa);
}

[data-theme="dark"] .notice-header.edit {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.1), rgba(194, 65, 12, 0.1));
}

.notice-header.edit .notice-title-icon {
    color: #ea580c;
}

.notice-header.edit .btn-primary {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}

.notice-header.edit .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

.notice-header.edit .form-checkbox:checked {
    background: #ea580c;
    border-color: #ea580c;
}

.notice-header.edit .form-checkbox-label:hover {
    border-color: #ea580c;
}

.notice-header.edit .form-input:focus, 
.notice-header.edit .form-textarea:focus {
    border-color: #ea580c;
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.15);
}

.original-info {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    color: #92400e;
}

[data-theme="dark"] .original-info {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.original-info-header {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.original-meta {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.original-meta > span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.original-meta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.edit-guide {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    color: #92400e;
}

[data-theme="dark"] .edit-guide {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.guide-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-list li::before {
    content: '•';
    color: #f59e0b;
    font-weight: bold;
    font-size: 1.2em;
}

/* ===== 삭제 페이지 스타일 ===== */
.notice-header.delete {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

[data-theme="dark"] .notice-header.delete {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
}

.notice-header.delete .notice-title-icon {
    color: #ef4444;
}

.warning-section {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    text-align: center;
    color: #7f1d1d;
}

[data-theme="dark"] .warning-section {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.warning-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #ef4444;
}

.warning-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #7f1d1d;
}

[data-theme="dark"] .warning-title {
    color: #fca5a5;
}

.warning-message {
    font-size: 1.125rem;
    color: #7f1d1d;
    line-height: 1.6;
    margin-bottom: 24px;
}

[data-theme="dark"] .warning-message {
    color: #fca5a5;
}

.warning-details {
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
}

.warning-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.warning-details li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #7f1d1d;
    font-weight: 500;
}

[data-theme="dark"] .warning-details li {
    color: #fca5a5;
}

.warning-details li:last-child {
    margin-bottom: 0;
}

.delete-alternative {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    color: #1e40af;
}

[data-theme="dark"] .delete-alternative {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(29, 78, 216, 0.1));
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.alternative-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alternative-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alternative-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alternative-list li::before {
    content: '•';
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.2em;
}

.preview-section {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 32px;
}

.preview-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-content {
    padding: 32px;
}

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

.preview-meta {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.preview-meta > span {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

.preview-meta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.preview-text {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1rem;
}

.delete-form {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ===== 댓글 수정 페이지 스타일 ===== */
.original-notice-info {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    color: #1e40af;
}

[data-theme="dark"] .original-notice-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(29, 78, 216, 0.1));
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.original-notice-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.original-comment-info {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

/* 댓글 수정 페이지 관련 스타일 정리 */
.comment-notice-info {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    color: #1e40af;
}

[data-theme="dark"] .comment-notice-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(29, 78, 216, 0.1));
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.info-header {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-reference {
    margin-top: 12px;
}

.reference-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: inherit;
}

.reference-meta {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.reference-meta > span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.reference-meta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.original-comment {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 24px;
}

.original-header {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.original-content {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 16px;
}

.original-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.original-text {
    color: var(--text-primary);
    line-height: 1.6;
}

.parent-comment-section {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--text-muted);
}

.parent-comment-section h4 {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.parent-comment-content {
    background-color: var(--bg-primary);
    padding: 15px;
    border-radius: 6px;
}

.parent-comment-author {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.parent-comment-text {
    color: var(--text-primary);
    line-height: 1.6;
}

.parent-comment-date {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== 반응형 디자인 ===== */
@media (max-width: 768px) {
    .notice-container {
        padding: 16px;
    }
    
    .notice-title {
        font-size: 1.5rem;
    }
    
    .notice-title-icon {
        width: 24px;
        height: 24px;
    }
    
    .notice-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form {
        max-width: none;
    }
    
    .notice-item {
        gap: 12px;
    }
    
    .notice-item-number {
        width: 36px;
        font-size: 0.85rem;
    }
    
    .notice-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .notice-item-left {
        width: 100%;
    }
    
    .notice-item-meta {
        gap: 8px;
    }
    
    .notice-item-meta > span {
        font-size: 0.8rem;
        padding: 3px 6px;
    }
    
    .notice-detail-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .notice-detail-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-notice {
        justify-content: center;
        width: 100%;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .comment-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .reply-item {
        margin-left: 16px;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .original-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .preview-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .warning-icon {
        width: 48px;
        height: 48px;
    }
    
    .warning-title {
        font-size: 1.25rem;
    }
    
    .warning-message {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .notice-container {
        padding: 12px;
    }
    
    .notice-header {
        padding: 16px;
    }
    
    .notice-title {
        font-size: 1.25rem;
    }
    
    .notice-item {
        padding: 12px;
        gap: 10px;
    }
    
    .notice-item-number {
        width: 32px;
        font-size: 0.8rem;
    }
    
    .notice-detail-header,
    .notice-detail-content {
        padding: 16px;
    }
    
    .comment-form,
    .comment-item {
        padding: 16px;
    }
    
    .reply-item {
        margin-left: 8px;
        padding: 12px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .notice-form {
        padding: 16px;
    }
} 