/**
 * 프론트엔드 스타일
 *
 * @package Hamong_Point_Ads
 */

/* ========================================
   공통 스타일
   ======================================== */
.hamong-notice {
    padding: 15px 20px;
    border-radius: 4px;
    margin: 20px 0;
    font-size: 14px;
}

.hamong-notice-error {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.hamong-notice-success {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.hamong-notice-info {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.hamong-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
}

.hamong-btn-icon {
    display: inline-block;
    font-style: normal;
    line-height: 1;
}

.hamong-btn-primary {
    background: #2271b1;
    color: white;
}

.hamong-btn-primary:hover {
    background: #135e96;
}

.hamong-btn-secondary {
    background: #f0f0f1;
    color: #2c3338;
}

.hamong-btn-secondary:hover {
    background: #dcdcde;
}

.hamong-btn-warning {
    background: #f59e0b;
    color: white;
}

.hamong-btn-warning:hover {
    background: #d97706;
}

.hamong-btn-success {
    background: #10b981;
    color: white;
}

.hamong-btn-success:hover {
    background: #059669;
}

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

.hamong-btn-upload {
    background: #2271b1;
    color: white;
    margin-right: 8px;
}

/* ========================================
   광고 신청 폼
   ======================================== */
.hamong-submit-form-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.hamong-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2271b1;
}

.hamong-form-header h2 {
    margin: 0;
    color: #1d2327;
}

.hamong-user-points {
    font-size: 16px;
    color: #2271b1;
}

.hamong-user-points strong {
    font-size: 20px;
}

.hamong-ad-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hamong-form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.hamong-form-section:last-of-type {
    border-bottom: none;
}

.hamong-form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1d2327;
    font-size: 18px;
}

/* 패키지 선택 */
.hamong-package-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.hamong-package-option {
    cursor: pointer;
}

.hamong-package-option input[type="radio"] {
    display: none;
}

.hamong-package-card {
    padding: 16px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s ease;
    background: white;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.hamong-package-option input[type="radio"]:checked + .hamong-package-card {
    border-color: #2271b1;
    background: linear-gradient(135deg, #f0f6fc 0%, #e8f2fa 100%);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.15);
}

.hamong-package-card:hover {
    border-color: #2271b1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* 포인트 부족 패키지 스타일 */
.hamong-package-disabled {
    cursor: not-allowed;
}

.hamong-package-disabled .hamong-package-card {
    background: #f3f4f6;
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hamong-package-disabled .hamong-package-card:hover {
    border-color: #d1d5db;
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hamong-package-disabled input[type="radio"]:disabled {
    cursor: not-allowed;
}

.hamong-package-disabled .hamong-package-days,
.hamong-package-disabled .hamong-package-price {
    opacity: 0.5;
    color: #6b7280;
}

.hamong-insufficient-notice {
    display: block;
    margin-top: 8px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: -0.2px;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.hamong-package-days {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hamong-package-price {
    font-size: 16px;
    font-weight: 700;
    color: #2271b1;
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* 원가 표시 (취소선) */
.hamong-original-price {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

/* 할인된 실제 가격 */
.hamong-final-price {
    font-size: 18px;
    color: #dc2626;
    font-weight: 800;
}

.hamong-discount-badge {
    display: block;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: -0.2px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
    margin: 0 auto;
    width: fit-content;
}

/* 폼 그룹 */
.hamong-form-group {
    margin-bottom: 20px;
}

.hamong-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1d2327;
}

.hamong-char-count {
    float: right;
    font-weight: normal;
    color: #646970;
    font-size: 13px;
}

.hamong-form-group input[type="text"],
.hamong-form-group input[type="url"],
.hamong-form-group input[type="date"],
.hamong-form-group input[type="time"],
.hamong-form-group select,
.hamong-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    background-color: #fff;
}

.hamong-form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.hamong-form-group input:focus,
.hamong-form-group select:focus,
.hamong-form-group textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.hamong-form-group textarea {
    resize: vertical;
    font-family: inherit;
}

/* 이미지 업로드 */
.hamong-image-upload {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hamong-image-preview {
    width: 120px;
    height: 120px;
    border: 2px dashed #dcdcde;
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
}

.hamong-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hamong-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #646970;
    text-align: center;
}

.hamong-image-placeholder span {
    font-size: 36px;
    margin-bottom: 8px;
}

.hamong-image-placeholder p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}

/* 미리보기 */
.hamong-preview-desc {
    font-size: 13px;
    color: #646970;
    margin: -10px 0 15px 0;
}

.hamong-ad-preview-box {
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 20px;
    max-width: 350px;
}

.hamong-preview-desc {
    font-size: 13px;
    color: #646970;
    margin: 0 0 15px 0;
}

/* 실제 광고 카드 스타일 (차일드 테마와 동일) */
.hamong-ad-card.hamong-ad-preview {
    display: block !important;
    background-color: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    text-decoration: none !important;
    color: inherit !important;
    margin-bottom: 0 !important;
    position: relative !important;
    cursor: default;
}

.hamong-ad-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #2271b1;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 3px;
    line-height: 1;
    z-index: 1;
}

.hamong-ad-card-inner {
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 12px;
}

.hamong-ad-card-image-wrapper {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    position: relative;
}

.hamong-ad-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.hamong-image-placeholder-preview {
    width: 100%;
    height: 100%;
    background: #f0f0f1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #646970;
    font-size: 32px;
    border-radius: 6px;
}

/* 링크가 있을 때 아이콘 표시 */
.hamong-ad-card-image-wrapper.has-link .hamong-ad-card-image::after {
    content: '🔗';
    position: absolute;
    bottom: 3px;
    right: 3px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 3px;
    line-height: 1;
}

.hamong-ad-card-text {
    flex: 1;
    min-width: 0;
}

.hamong-ad-card-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.hamong-ad-card-content {
    font-size: 13px !important;
    color: #666 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* 구버전 미리보기 (호환성 유지) */
.hamong-ad-card-preview {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.hamong-ad-preview-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    border: 1px solid #dcdcde;
}

.hamong-ad-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hamong-image-placeholder-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f1;
    color: #646970;
    font-size: 24px;
}

.hamong-ad-preview-content {
    flex: 1;
}

.hamong-ad-preview-title {
    font-weight: 600;
    font-size: 16px;
    color: #1d2327;
    margin-bottom: 8px;
}

.hamong-ad-preview-text {
    font-size: 14px;
    color: #50575e;
    line-height: 1.5;
    margin-bottom: 8px;
}

.hamong-ad-preview-link {
    font-size: 13px;
    color: #2271b1;
}

.hamong-ad-preview-link a {
    color: #2271b1;
    text-decoration: none;
}

/* 결제 정보 */
.hamong-payment-info {
    background: #f0f6fc;
    border: 1px solid #2271b1;
    border-radius: 8px;
    padding: 20px;
}

.hamong-payment-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.hamong-payment-total {
    border-top: 2px solid #2271b1;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 18px;
    font-weight: 600;
}

.hamong-price {
    color: #2271b1;
}

/* 폼 액션 */
.hamong-form-actions {
    text-align: center;
    margin-top: 30px;
}

.hamong-loading {
    text-align: center;
    padding: 30px;
}

.hamong-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hamong-form-result {
    margin-top: 20px;
}

/* ========================================
   내 광고 관리
   ======================================== */
.hamong-my-ads-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hamong-my-ads-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2271b1;
}

.hamong-my-ads-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamong-my-ads-header h2 {
    margin: 0;
    color: #1d2327;
}

.hamong-my-ads-stats {
    font-size: 16px;
    color: #646970;
}

.hamong-my-ads-header-right {
    display: flex;
    align-items: center;
}

.hamong-no-ads-user {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hamong-no-ads-user p {
    font-size: 16px;
    color: #646970;
    margin-bottom: 20px;
}

.hamong-my-ads-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hamong-my-ad-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

/* 수정 요청 상태 카드 강조 */
.hamong-my-ad-card[data-status="modification_requested"] {
    border: 2px solid #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.hamong-my-ad-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.hamong-my-ad-header {
    background: #f6f7f7;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dcdcde;
}

.hamong-my-ad-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.hamong-modification-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.hamong-my-ad-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 20px;
}

@media (max-width: 768px) {
    .hamong-my-ad-body {
        grid-template-columns: 1fr;
    }
}

.hamong-my-ad-card-preview {
    display: flex;
    gap: 15px;
}

.hamong-my-ad-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f1;
    border: 1px solid #dcdcde;
}

.hamong-my-ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hamong-no-image-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #646970;
}

.hamong-my-ad-content {
    flex: 1;
}

.hamong-my-ad-title {
    font-weight: 600;
    font-size: 16px;
    color: #1d2327;
    margin-bottom: 6px;
}

.hamong-my-ad-text {
    font-size: 14px;
    color: #50575e;
    line-height: 1.5;
    margin-bottom: 8px;
}

.hamong-my-ad-link {
    font-size: 13px;
    color: #2271b1;
}

.hamong-my-ad-link a {
    color: #2271b1;
    text-decoration: none;
}

.hamong-my-ad-info {
    font-size: 14px;
}

.hamong-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f1;
}

.hamong-info-label {
    color: #646970;
}

.hamong-info-value {
    font-weight: 500;
    color: #1d2327;
}

.hamong-pause-info {
    color: #f59e0b;
    font-size: 12px;
}

.hamong-refund {
    color: #ef4444;
}

.hamong-remaining-time {
    background: #f0fdf4;
    border-radius: 4px;
    padding: 8px;
}

.hamong-time-highlight {
    color: #10b981;
    font-weight: 600;
}

.hamong-admin-note {
    margin-top: 15px;
    padding: 12px;
    background: #fcf8e3;
    border-left: 4px solid #f59e0b;
    border-radius: 4px;
}

.hamong-admin-note strong {
    display: block;
    margin-bottom: 6px;
    color: #92400e;
}

.hamong-admin-note p {
    margin: 0;
    font-size: 13px;
    color: #854d0e;
}

/* 관리자 메시지 (반려/수정 요청) */
.hamong-admin-message {
    margin: 15px 20px;
    padding: 15px;
    display: flex;
    gap: 12px;
    border-radius: 6px;
    border-left: 4px solid;
}

.hamong-message-rejected {
    background: #fef2f2;
    border-color: #dc2626;
}

.hamong-message-modify {
    background: #fef3c7;
    border-color: #f59e0b;
    animation: hamong-pulse-highlight 2s ease-in-out 3;
}

@keyframes hamong-pulse-highlight {
    0%, 100% { background: #fef3c7; }
    50% { background: #fde68a; }
}

.hamong-message-icon {
    font-size: 24px;
    line-height: 1;
}

.hamong-message-content {
    flex: 1;
}

.hamong-message-title {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.hamong-message-rejected .hamong-message-title {
    color: #991b1b;
}

.hamong-message-modify .hamong-message-title {
    color: #92400e;
}

.hamong-message-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}

.hamong-message-rejected .hamong-message-text {
    color: #7f1d1d;
}

.hamong-message-modify .hamong-message-text {
    color: #78350f;
}

/* 수정 이력 목록 */
.hamong-modification-list {
    margin-top: 12px;
}

.hamong-modification-item {
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    margin-bottom: 10px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.hamong-modification-item:last-child {
    margin-bottom: 0;
}

.hamong-modification-date {
    font-size: 11px;
    color: #92400e;
    font-weight: 600;
    margin-bottom: 6px;
}

.hamong-modification-reason {
    font-size: 13px;
    color: #78350f;
    line-height: 1.6;
    margin-bottom: 6px;
}

.hamong-modification-resubmit {
    font-size: 11px;
    color: #059669;
    font-weight: 500;
}

.hamong-my-ad-actions {
    padding: 15px 20px;
    background: #f6f7f7;
    border-top: 1px solid #dcdcde;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 수정 요청 상태일 때 액션 영역 강조 */
.hamong-my-ad-card[data-status="modification_requested"] .hamong-my-ad-actions {
    background: #fef3c7;
    border-top: 2px solid #f59e0b;
}

/* 재신청 버튼 강조 */
.hamong-btn-resubmit-ad {
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
}

.hamong-btn-resubmit-ad:hover {
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.4);
    transform: translateY(-1px);
}

/* 모달 */
.hamong-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.hamong-modal.is-open {
    display: block;
}

.hamong-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hamong-modal-content h2 {
    margin: 0;
    padding: 20px;
    border-bottom: 1px solid #dcdcde;
    font-size: 18px;
    color: #1d2327;
}

.hamong-modal-content form {
    padding: 20px;
}

.hamong-modal-close {
    color: #50575e;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
    padding: 0 5px;
}

.hamong-modal-close:hover {
    color: #1d2327;
}

.hamong-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

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

.hamong-page-btn,
.hamong-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: white;
    color: #2271b1;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.hamong-page-btn:hover,
.hamong-page-num:hover {
    background: #f6f7f7;
    border-color: #2271b1;
}

.hamong-page-current {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
    font-weight: 600;
    cursor: default;
}

.hamong-page-dots {
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    color: #646970;
    font-size: 14px;
}

/* ========================================
   모바일 반응형 (768px 이하)
   ======================================== */
@media (max-width: 768px) {
    /* 전체 래퍼 패딩 조정 */
    .hamong-submit-form-wrap {
        padding: 15px;
    }

    /* 헤더 */
    .hamong-form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }

    .hamong-form-header h2 {
        font-size: 20px;
    }

    .hamong-user-info {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hamong-user-points {
        font-size: 15px;
    }

    .hamong-user-points strong {
        font-size: 18px;
    }

    .hamong-user-info .hamong-btn {
        width: 100%;
        margin-left: 0 !important;
    }

    /* 폼 패딩 */
    .hamong-ad-form {
        padding: 20px 15px;
    }

    .hamong-form-section {
        margin-bottom: 25px;
        padding-bottom: 25px;
    }

    .hamong-form-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    /* 패키지 옵션 - 2열로 */
    .hamong-package-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .hamong-package-card {
        padding: 12px 8px;
    }

    .hamong-package-days {
        font-size: 18px;
    }

    .hamong-package-price {
        font-size: 14px;
    }

    .hamong-final-price {
        font-size: 16px;
    }

    .hamong-original-price {
        font-size: 12px;
    }

    .hamong-discount-badge {
        font-size: 9px;
        padding: 3px 6px;
    }

    .hamong-insufficient-notice {
        font-size: 9px;
        padding: 3px 6px;
    }

    /* 이미지 업로드 */
    .hamong-image-upload {
        flex-direction: column;
        align-items: flex-start;
    }

    .hamong-image-preview {
        width: 100px;
        height: 100px;
    }

    /* 미리보기 박스 */
    .hamong-ad-preview-box {
        max-width: 100%;
        padding: 15px;
    }

    .hamong-ad-card-preview-real {
        gap: 10px;
        padding: 12px;
    }

    .hamong-ad-preview-title-real {
        font-size: 13px;
    }

    .hamong-ad-preview-text-real {
        font-size: 12px;
    }

    .hamong-ad-preview-link-real {
        font-size: 11px;
    }

    /* 결제 정보 */
    .hamong-payment-info {
        padding: 15px;
    }

    .hamong-payment-row {
        font-size: 14px;
    }

    .hamong-payment-total {
        font-size: 16px;
    }

    /* 버튼 */
    .hamong-btn-large {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }

    /* 내 광고 관리 */
    .hamong-my-ads-wrap {
        padding: 15px;
    }

    .hamong-my-ads-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .hamong-my-ads-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .hamong-my-ads-header-right {
        width: 100%;
    }

    .hamong-my-ads-header-right .hamong-btn {
        width: 100%;
    }

    .hamong-my-ads-header h2 {
        font-size: 20px;
    }

    .hamong-my-ad-header {
        padding: 10px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .hamong-my-ad-meta {
        flex-wrap: wrap;
    }

    .hamong-my-ad-body {
        padding: 15px;
    }

    .hamong-my-ad-actions {
        padding: 12px 15px;
        flex-wrap: wrap;
    }

    .hamong-my-ad-actions .hamong-btn {
        flex: 1;
        min-width: calc(50% - 5px);
        font-size: 13px;
        padding: 8px 12px;
    }

    /* 관리자 메시지 */
    .hamong-admin-message {
        margin: 12px 15px;
        padding: 12px;
        gap: 10px;
    }

    .hamong-message-icon {
        font-size: 20px;
    }

    .hamong-message-title {
        font-size: 13px;
    }

    .hamong-message-text {
        font-size: 12px;
    }

    /* 모달 */
    .hamong-modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .hamong-modal-content h2 {
        font-size: 16px;
        padding: 15px;
    }

    .hamong-modal-content form {
        padding: 15px;
    }

    .hamong-modal-actions {
        flex-direction: column;
    }

    .hamong-modal-actions .hamong-btn {
        width: 100%;
    }

    /* 페이지네이션 모바일 */
    .hamong-pagination {
        gap: 5px;
        padding: 15px 0;
        flex-wrap: wrap;
    }

    .hamong-page-btn,
    .hamong-page-num {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        padding: 0 8px;
    }

    .hamong-page-dots {
        font-size: 13px;
    }
}

/* ========================================
   소형 모바일 (480px 이하)
   ======================================== */
@media (max-width: 480px) {
    .hamong-submit-form-wrap {
        padding: 10px;
    }

    .hamong-ad-form {
        padding: 15px 10px;
    }

    .hamong-form-section h3 {
        font-size: 15px;
    }

    /* 패키지 1열로 */
    .hamong-package-options {
        grid-template-columns: 1fr;
    }

    .hamong-package-card {
        padding: 14px 10px;
    }

    /* 폼 입력 */
    .hamong-form-group input[type="text"],
    .hamong-form-group input[type="url"],
    .hamong-form-group input[type="date"],
    .hamong-form-group input[type="time"],
    .hamong-form-group textarea {
        font-size: 16px; /* iOS 확대 방지 */
    }

    /* 내 광고 카드 */
    .hamong-my-ad-card-preview {
        gap: 10px;
    }

    .hamong-my-ad-image {
        width: 60px;
        height: 60px;
    }

    .hamong-my-ad-title {
        font-size: 14px;
    }

    .hamong-my-ad-text {
        font-size: 13px;
    }

    .hamong-info-row {
        font-size: 13px;
    }
}

/* ========================================
   재등록 모달
   ======================================== */
.hamong-modal-large {
    max-width: 700px;
}

.hamong-modal-description {
    color: #6b7280;
    font-size: 14px;
    margin: 20px;
    line-height: 1.5;
}

.hamong-reregister-preview {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 15px;
}

.hamong-form-section {
    margin-bottom: 25px;
}

.hamong-form-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #1f2937;
}

.hamong-user-points-info {
    margin-top: 12px;
    font-size: 14px;
    color: #6b7280;
    text-align: right;
}

.hamong-user-points-info strong {
    color: #2563eb;
    font-size: 16px;
}

/* ========================================
   상태 필터 탭
   ======================================== */
.hamong-status-filter {
    margin: 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.hamong-status-filter .subsubsub {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #646970;
}

.hamong-status-filter .subsubsub li {
    display: inline-block;
    margin: 0 8px 0 0;
}

.hamong-status-filter .subsubsub a {
    color: #2271b1;
    text-decoration: none;
    transition: color 0.2s;
}

.hamong-status-filter .subsubsub a:hover {
    color: #135e96;
}

.hamong-status-filter .subsubsub a.current {
    color: #1d2327;
    font-weight: 600;
}

.hamong-status-filter .subsubsub .count {
    color: #646970;
    font-weight: normal;
}

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

.hamong-filter-clear {
    display: inline-block;
}

/* AJAX 로딩 오버레이 */
.hamong-my-ads-list {
    position: relative;
    transition: opacity 0.2s ease;
}

.hamong-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hamong-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: hamong-spin 0.8s linear infinite;
}

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