/* ===== ARASAR BBS - Elegant Rose Gold & Cream Theme ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(180deg, #faf0e6 0%, #f5e6d8 50%, #faf0e6 100%);
    color: #4a3728;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 16px; width: 100%; }
.hidden { display: none !important; }

/* ===== Modal ===== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(80, 40, 30, 0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; padding: 16px; backdrop-filter: blur(6px);
}
.modal {
    background: linear-gradient(145deg, #fff, #fdf5ef);
    border-radius: 20px; padding: 32px; max-width: 560px; width: 100%;
    position: relative; animation: modalIn 0.3s ease;
    border: 1px solid rgba(183, 110, 121, 0.2);
    box-shadow: 0 20px 60px rgba(183, 110, 121, 0.15);
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.9) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 28px; color: #c4a07a; cursor: pointer; line-height: 1; }
.modal-close:hover { color: #b76e79; }

.age-gate-modal { text-align: center; max-width: 440px; }
.age-gate-icon { font-size: 56px; margin-bottom: 16px; }
.age-gate-modal h2 { font-size: 24px; margin-bottom: 12px; }
.age-gate-modal p { font-size: 15px; color: #6b5147; margin-bottom: 8px; line-height: 1.6; }
.age-gate-buttons { display: flex; gap: 12px; margin-top: 20px; }
.age-gate-buttons button { flex: 1; padding: 14px; border: none; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.3s; }
.btn-yes { background: linear-gradient(135deg, #b76e79, #d4a0a7); color: #fff; }
.btn-no { background: #f0e6de; color: #8b6f63; }
.age-gate-buttons button:hover { opacity: 0.85; transform: translateY(-1px); }

.terms-modal { max-width: 640px; max-height: 80vh; display: flex; flex-direction: column; }
.terms-modal h2 { font-size: 22px; margin-bottom: 16px; padding-right: 32px; color: #b76e79; font-family: 'Playfair Display', serif; }
.terms-content { overflow-y: auto; flex: 1; font-size: 14px; line-height: 1.8; color: #5a4538; padding-right: 8px; }
.terms-content h3 { font-size: 15px; font-weight: 700; margin-top: 20px; margin-bottom: 8px; color: #b76e79; }
.terms-content h3:first-child { margin-top: 0; }
.terms-content ul { padding-left: 20px; margin-bottom: 8px; }
.terms-content li { margin-bottom: 4px; }
.modal-ok-btn {
    display: block; width: 100%; margin-top: 16px; padding: 12px;
    background: linear-gradient(135deg, #b76e79, #d4a0a7);
    color: #fff; border: none; border-radius: 12px; font-size: 15px;
    font-weight: 700; cursor: pointer; font-family: inherit; flex-shrink: 0;
    letter-spacing: 0.5px;
}
.modal-ok-btn:hover { opacity: 0.9; }

.qr-zoom-modal { max-width: 400px; padding: 16px; text-align: center; background: #fff; }
.qr-zoom-modal img { max-width: 100%; max-height: 70vh; border-radius: 8px; }

/* ===== Safety Banner ===== */
.safety-banner {
    background: linear-gradient(90deg, #fdf0e8, #fce8e0);
    color: #8b5e4b;
    padding: 10px 0; font-size: 13px; text-align: center;
    border-bottom: 1px solid #e8c8b8;
}

/* ===== Header - Rose Gold Elegance ===== */
.header {
    background: linear-gradient(135deg, #b76e79 0%, #d4a0a7 40%, #e8c4b8 70%, #c9957e 100%);
    color: #fff;
    padding: 32px 0 28px;
    text-align: center;
    box-shadow: 0 6px 30px rgba(183, 110, 121, 0.3);
    position: relative;
    overflow: hidden;
}
.header::before {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent, transparent 20px,
        rgba(255,255,255,0.03) 20px, rgba(255,255,255,0.03) 40px
    );
}
.header::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 32px; font-weight: 700; cursor: pointer;
    display: inline-flex; align-items: center; gap: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
    letter-spacing: 2px;
    position: relative;
}
.logo-icon { font-size: 36px; }
.header-sub { font-size: 14px; opacity: 0.9; margin-top: 6px; letter-spacing: 3px; font-weight: 300; }

/* ===== Category Cards - Soft Rounded with Rose Accents ===== */
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.category-card {
    border-radius: 20px; padding: 28px 20px; text-align: center;
    cursor: pointer; transition: all 0.3s ease; color: #fff;
    position: relative; overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.category-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0; transition: opacity 0.3s;
}
.category-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(183, 110, 121, 0.25); }
.category-card:hover::before { opacity: 1; }
.category-card.kakao { background: linear-gradient(135deg, #d4b896, #c9a67a); color: #3c2e1e; }
.category-card.line { background: linear-gradient(135deg, #7ba68a, #5a8f6a); }
.category-card.email { background: linear-gradient(135deg, #a08cbd, #8a74aa); }
.category-card.insta { background: linear-gradient(135deg, #c97b8b, #b76e79, #a85d6a); }
.card-icon { font-size: 48px; margin-bottom: 12px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.category-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 4px; font-family: 'Playfair Display', serif; }
.category-card p { font-size: 13px; opacity: 0.85; }
.post-count {
    display: inline-block; margin-top: 10px; font-size: 12px;
    background: rgba(255,255,255,0.25); padding: 4px 14px;
    border-radius: 20px; font-weight: 500;
    backdrop-filter: blur(4px);
}
.category-card.kakao .post-count { background: rgba(0,0,0,0.08); }

/* ===== How to Use ===== */
.how-to-use { margin-top: 32px; }
.steps { display: flex; gap: 16px; margin-top: 8px; }
.step {
    flex: 1; display: flex; gap: 12px; align-items: flex-start;
    background: linear-gradient(145deg, #fff, #fdf5ef);
    padding: 18px; border-radius: 16px;
    box-shadow: 0 2px 12px rgba(183, 110, 121, 0.08);
    border: 1px solid rgba(183, 110, 121, 0.1);
    transition: transform 0.2s;
}
.step:hover { transform: translateY(-2px); }
.step-num {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, #b76e79, #d4a0a7);
    color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(183, 110, 121, 0.3);
}
.step strong { font-size: 14px; display: block; margin-bottom: 2px; color: #4a3728; }
.step p { font-size: 12px; color: #9b8577; }

/* ===== Section Titles ===== */
.section-title {
    font-size: 20px; font-weight: 700; margin-bottom: 16px;
    padding-bottom: 8px; border-bottom: 3px solid #b76e79;
    display: inline-block; font-family: 'Playfair Display', serif;
    color: #4a3728;
}

.recent-section { margin-top: 32px; margin-bottom: 32px; }

/* ===== Board Screen ===== */
.back-btn {
    background: none; border: 2px solid #d4b8a0; padding: 8px 20px;
    border-radius: 10px; cursor: pointer; font-size: 14px;
    font-weight: 500; color: #8b6f63; margin-top: 20px; transition: all 0.3s;
}
.back-btn:hover { border-color: #b76e79; color: #b76e79; background: rgba(183, 110, 121, 0.05); }

.board-header {
    display: flex; align-items: center; gap: 16px; margin-top: 20px;
    padding: 22px; background: linear-gradient(145deg, #fff, #fdf5ef);
    border-radius: 16px; box-shadow: 0 2px 12px rgba(183, 110, 121, 0.08);
    border: 1px solid rgba(183, 110, 121, 0.1);
}
.board-icon { font-size: 40px; }
.board-header h2 { font-size: 24px; font-weight: 700; font-family: 'Playfair Display', serif; color: #4a3728; }

/* ===== Post Form ===== */
.post-form {
    background: linear-gradient(145deg, #fff, #fdf8f4);
    border-radius: 16px; padding: 28px; margin-top: 16px;
    box-shadow: 0 2px 12px rgba(183, 110, 121, 0.08);
    border: 1px solid rgba(183, 110, 121, 0.1);
}
.post-form h3 { font-size: 18px; margin-bottom: 16px; font-weight: 700; color: #b76e79; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 500; color: #6b5147; }
.required { color: #c76070; }
.form-group input, .form-group select, .form-group textarea {
    padding: 10px 14px; border: 2px solid #e8d5c8; border-radius: 10px;
    font-size: 15px; font-family: inherit; transition: all 0.3s; outline: none; width: 100%;
    background: #fffbf8;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #b76e79; box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.1);
}
.form-group textarea { resize: vertical; }
.char-count { font-size: 12px; color: #b8a093; text-align: right; }

/* QR Upload */
.qr-upload-area { border: 2px dashed #d4b8a0; border-radius: 12px; overflow: hidden; transition: all 0.3s; }
.qr-upload-area.dragover { border-color: #b76e79; background: #fdf0ec; }
.qr-upload-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px; cursor: pointer; color: #b8a093; font-size: 13px; text-align: center; }
.qr-upload-placeholder:hover { color: #b76e79; }
.qr-upload-icon { font-size: 28px; }
.qr-upload-hint { font-size: 11px; color: #cdb8a8; }
.qr-preview-wrapper { position: relative; display: inline-block; padding: 12px; text-align: center; width: 100%; }
.qr-preview-wrapper img { max-width: 160px; max-height: 160px; border-radius: 10px; border: 1px solid #e8d5c8; }
.qr-remove-btn { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; background: #c76070; color: #fff; border: none; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qr-remove-btn:hover { background: #a84d5a; }

.terms-agree { margin-top: 14px; font-size: 13px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: #b76e79; }
.checkbox-label a { color: #b76e79; text-decoration: underline; }

.submit-btn {
    display: block; width: 100%; margin-top: 16px; padding: 15px;
    background: linear-gradient(135deg, #b76e79, #d4a0a7);
    color: #fff; border: none; border-radius: 12px; font-size: 16px;
    font-weight: 700; cursor: pointer; transition: all 0.3s;
    font-family: inherit; letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(183, 110, 121, 0.3);
}
.submit-btn:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(183, 110, 121, 0.4); }
.submit-btn:active { transform: scale(0.98); }

/* ===== Filter ===== */
.filter-bar { display: flex; gap: 12px; margin-top: 16px; }
.filter-bar select {
    padding: 8px 12px; border: 2px solid #e8d5c8; border-radius: 10px;
    font-size: 14px; font-family: inherit; outline: none;
    background: #fffbf8; cursor: pointer; flex: 1;
}
.filter-bar select:focus { border-color: #b76e79; }

/* ===== Posts ===== */
.posts-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.post-card {
    background: linear-gradient(145deg, #fff, #fdf8f4);
    border-radius: 16px; padding: 22px;
    box-shadow: 0 2px 12px rgba(183, 110, 121, 0.06);
    transition: all 0.3s; position: relative;
    border: 1px solid rgba(183, 110, 121, 0.08);
}
.post-card:hover { box-shadow: 0 6px 24px rgba(183, 110, 121, 0.12); transform: translateY(-2px); }
.post-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.post-avatar {
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.post-avatar.male { background: linear-gradient(135deg, #dbeafe, #c8d8f0); }
.post-avatar.female { background: linear-gradient(135deg, #fce7f3, #f5d0e0); }
.post-avatar.other { background: linear-gradient(135deg, #e0e7ff, #d0d8f0); }
.post-info { flex: 1; min-width: 0; }
.post-name { font-weight: 700; font-size: 16px; color: #4a3728; }
.post-meta { font-size: 12px; color: #9b8577; margin-top: 2px; }
.post-badge { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; color: #fff; }
.post-badge.kakao { background: #d4b896; color: #3c2e1e; }
.post-badge.line { background: #7ba68a; }
.post-badge.email { background: #a08cbd; }
.post-badge.insta { background: linear-gradient(135deg, #c97b8b, #b76e79); }
.post-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.tag { font-size: 12px; padding: 3px 12px; border-radius: 20px; background: #f5ebe3; color: #6b5147; font-weight: 500; }
.post-message { margin-top: 12px; font-size: 14px; line-height: 1.8; color: #5a4538; white-space: pre-wrap; word-break: break-word; }
.post-contact {
    margin-top: 12px; padding: 12px 16px;
    background: linear-gradient(135deg, #fdf0ec, #fce8e0);
    border: 1px solid #e8c8b8; border-radius: 10px;
    font-size: 14px; display: flex; align-items: center; gap: 8px;
}
.post-contact strong { color: #b76e79; }
.post-contact .contact-value { font-weight: 500; word-break: break-all; }
.copy-btn {
    margin-left: auto; padding: 5px 14px; border: 1px solid #b76e79;
    background: none; color: #b76e79; border-radius: 8px;
    cursor: pointer; font-size: 12px; font-weight: 500;
    transition: all 0.3s; font-family: inherit; flex-shrink: 0;
}
.copy-btn:hover { background: #b76e79; color: #fff; }
.post-qr { margin-top: 10px; text-align: center; }
.post-qr img { max-width: 120px; max-height: 120px; border-radius: 10px; border: 1px solid #e8d5c8; cursor: pointer; transition: transform 0.2s; }
.post-qr img:hover { transform: scale(1.05); }
.post-qr-label { font-size: 11px; color: #b8a093; margin-top: 4px; }
.post-time { font-size: 11px; color: #c4b0a0; margin-top: 10px; text-align: right; }
.post-delete { position: absolute; top: 12px; right: 12px; background: none; border: none; color: #d4b8a0; cursor: pointer; font-size: 18px; padding: 4px; line-height: 1; transition: color 0.2s; }
.post-delete:hover { color: #c76070; }
.no-posts { text-align: center; padding: 48px 20px; color: #b8a093; font-size: 16px; }

/* ===== Ads ===== */
.ad-section { margin-top: 24px; position: relative; }
.ad-section.ad-inline { margin-top: 16px; }
.ad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ad-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.ad-banner {
    display: flex; flex-direction: column; background: linear-gradient(145deg, #fff, #fdf8f4);
    border-radius: 14px; overflow: hidden; text-decoration: none; color: #4a3728;
    box-shadow: 0 2px 10px rgba(183, 110, 121, 0.08); transition: all 0.3s;
    border: 1px solid rgba(183, 110, 121, 0.1);
}
.ad-banner:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(183, 110, 121, 0.15); }
.ad-thumb { height: 100px; overflow: hidden; }
.ad-thumb-bg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.ad-thumb-icon { font-size: 42px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }
.matching-bg { background: linear-gradient(135deg, #d4a0a7, #b76e79); }
.live-bg { background: linear-gradient(135deg, #a08cbd, #8a74aa); }
.chat-bg { background: linear-gradient(135deg, #7ba68a, #5a8f6a); }
.ad-body { padding: 12px 14px; }
.ad-tag { display: inline-block; font-size: 10px; font-weight: 700; background: #f5ebe3; color: #8b6f63; padding: 2px 8px; border-radius: 4px; margin-bottom: 6px; }
.ad-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.ad-desc { font-size: 12px; color: #9b8577; line-height: 1.5; }
.ad-cta { margin-top: 8px; font-size: 13px; font-weight: 700; color: #b76e79; }
.ad-banner-wide {
    display: flex; align-items: center; background: linear-gradient(145deg, #fff, #fdf8f4);
    border-radius: 14px; overflow: hidden; text-decoration: none; color: #4a3728;
    box-shadow: 0 2px 10px rgba(183, 110, 121, 0.08); transition: all 0.3s;
    border: 1px solid rgba(183, 110, 121, 0.1); gap: 0;
}
.ad-banner-wide:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(183, 110, 121, 0.15); }
.ad-wide-thumb { width: 80px; min-height: 80px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ad-wide-body { flex: 1; padding: 12px 16px; }
.ad-wide-cta {
    padding: 0 16px; font-size: 13px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #b76e79, #d4a0a7);
    align-self: stretch; display: flex; align-items: center; white-space: nowrap;
}

/* ===== Toast ===== */
.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #4a3728, #6b5147);
    color: #faf0e6; padding: 12px 28px; border-radius: 12px;
    font-size: 14px; font-weight: 500; z-index: 1000;
    box-shadow: 0 4px 20px rgba(74, 55, 40, 0.4); animation: toastIn 0.3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* Related Sites */
.related-sites {
    background: linear-gradient(180deg, #f5e6d8, #faf0e6);
    padding: 20px 0; margin-top: 32px; border-top: 1px solid #e8d5c8;
}
.related-sites h3 { font-size: 14px; color: #8b6f63; margin-bottom: 10px; }
.related-links { display: flex; gap: 16px; flex-wrap: wrap; }
.related-links a { font-size: 13px; color: #b76e79; text-decoration: none; }
.related-links a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.footer {
    margin-top: auto; background: linear-gradient(135deg, #3d2c24, #4a3728);
    color: #c4b0a0; text-align: center; padding: 24px 0; font-size: 14px;
}
.footer-links { margin-top: 8px; display: flex; justify-content: center; gap: 12px; font-size: 13px; }
.footer-links a { color: #e8d5c8; text-decoration: underline; cursor: pointer; }
.footer-links a:hover { color: #faf0e6; }
.footer-links span { color: #6b5147; }
.footer-note { font-size: 11px; margin-top: 10px; opacity: 0.7; line-height: 1.6; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .header { padding: 24px 0 20px; }
    .logo { font-size: 24px; }
    .category-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
    .category-card { padding: 20px 12px; }
    .card-icon { font-size: 36px; margin-bottom: 8px; }
    .category-card h2 { font-size: 14px; }
    .category-card p { font-size: 11px; }
    .steps { flex-direction: column; }
    .form-grid { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; gap: 8px; }
    .board-header h2 { font-size: 18px; }
    .post-contact { flex-direction: column; align-items: flex-start; gap: 6px; }
    .copy-btn { margin-left: 0; }
    .modal { padding: 24px 20px; }
    .age-gate-buttons { flex-direction: column; }
    .safety-banner { font-size: 12px; }
    .ad-grid { grid-template-columns: 1fr; }
    .ad-grid-3 { grid-template-columns: 1fr; }
    .ad-banner-wide { flex-direction: column; }
    .ad-wide-thumb { width: 100%; min-height: 60px; }
    .ad-wide-cta { width: 100%; justify-content: center; padding: 10px; }
}
