@charset "utf-8";
/* Card-Magazine Board Skin | Accent: #00b894 | Secondary: #2c3e50 */

/* Layout */
.bo_magazine { max-width: 1100px; margin: 0 auto 40px; padding: 0 16px; font-family: 'Malgun Gothic', dotum, sans-serif; }

/* Header */
.mg-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 2px solid #2c3e50; margin-bottom: 24px; }
.mg-title { font-size: 1.4em; font-weight: 700; margin: 0 0 2px; color: #2c3e50; }
.mg-count { font-size: 0.85em; color: #95a5a6; }
.mg-count strong { color: #00b894; font-weight: 700; }
.mg-header-right { display: flex; align-items: center; gap: 6px; position: relative; }
.mg-btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #ddd; border-radius: 8px; background: #fff; color: #7f8c8d; font-size: 14px; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.mg-btn-icon:hover { background: #f7f7f7; color: #2c3e50; border-color: #bdc3c7; }
.mg-btn-write { display: inline-flex; align-items: center; gap: 5px; padding: 8px 18px; background: #00b894; color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background 0.2s; }
.mg-btn-write:hover { background: #c0392b; color: #fff; text-decoration: none; }

/* Featured Hero */
.mg-featured { position: relative; margin-bottom: 24px; border-radius: 8px; overflow: hidden; }
.mg-featured-link { display: block; text-decoration: none; color: inherit; }
.mg-featured-link:hover { text-decoration: none; color: inherit; }
.mg-featured-bg { position: relative; min-height: 320px; background-size: cover; background-position: center; background-repeat: no-repeat; background-color: #34495e; }
.mg-featured-noimg { background: linear-gradient(135deg, #2c3e50 0%, #00b894 100%); }
.mg-featured-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.05) 100%); display: flex; align-items: flex-end; }
.mg-featured-content { padding: 32px; width: 100%; }
.mg-featured-title { font-size: 1.5em; font-weight: 700; color: #fff; margin: 10px 0 8px; line-height: 1.35; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.mg-featured-desc { font-size: 0.92em; color: rgba(255,255,255,0.85); margin: 0 0 14px; line-height: 1.55; max-width: 600px; }
.mg-featured:hover .mg-featured-bg { filter: brightness(1.05); }

/* Badges */
.mg-badge-notice { display: inline-block; padding: 3px 10px; background: #2c3e50; color: #fff; font-size: 10px; font-weight: 700; border-radius: 3px; letter-spacing: 1px; text-transform: uppercase; margin-right: 6px; }
.mg-badge-cate { display: inline-block; padding: 3px 10px; background: rgba(255,255,255,0.2); color: #fff; font-size: 11px; font-weight: 600; border-radius: 3px; margin-right: 6px; }
.mg-badge-new { display: inline-block; padding: 3px 8px; background: #00b894; color: #fff; font-size: 10px; font-weight: 700; border-radius: 3px; letter-spacing: 0.5px; }
.mg-card-thumb .mg-badge-notice { position: absolute; top: 10px; left: 10px; }
.mg-card-thumb .mg-badge-new { position: absolute; top: 10px; right: 10px; }

/* Grid */
.mg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mg-empty { text-align: center; padding: 80px 20px; color: #95a5a6; font-size: 1em; background: #fafafa; border-radius: 8px; }

/* Card */
.mg-card { position: relative; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.08); transition: transform 0.25s, box-shadow 0.25s; }
.mg-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.mg-card-notice { box-shadow: 0 2px 10px rgba(44,62,80,0.12); }
.mg-card-link { display: block; text-decoration: none; color: inherit; }
.mg-card-link:hover { text-decoration: none; color: inherit; }

/* Card Thumbnail */
.mg-card-thumb { position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; background: #ecf0f1; }
.mg-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.mg-card:hover .mg-card-thumb img { transform: scale(1.06); }
.mg-card-noimg { background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%); }
.mg-card-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: rgba(255,255,255,0.5); font-size: 2.2em; }

/* Card Body */
.mg-card-body { padding: 16px; }
.mg-card-cate { display: inline-block; padding: 2px 8px; background: #fdecea; color: #00b894; font-size: 0.75em; font-weight: 600; border-radius: 3px; margin-bottom: 6px; }
.mg-card-title { font-size: 0.98em; font-weight: 600; color: #2c3e50; margin: 0 0 6px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.mg-comment-cnt { display: inline-block; padding: 0 5px; background: #fdecea; color: #00b894; font-size: 0.75em; border-radius: 3px; margin-left: 3px; font-weight: 700; vertical-align: middle; }
.mg-card-preview { font-size: 0.83em; color: #7f8c8d; line-height: 1.5; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }

/* Meta Info */
.mg-card-meta, .mg-featured-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.78em; color: #95a5a6; }
.mg-card-meta { padding-top: 10px; border-top: 1px solid #ecf0f1; }
.mg-meta-writer { font-weight: 600; color: #555; }
.mg-featured-meta .mg-meta-writer { color: rgba(255,255,255,0.9); }
.mg-meta-hit i, .mg-meta-comment i, .mg-meta-good i { margin-right: 2px; }
.mg-meta-good { color: #00b894; }

/* Checkbox */
.mg-chk { position: absolute; top: 10px; left: 10px; z-index: 5; }
.mg-chk .selec_chk { position: absolute; opacity: 0; width: 0; height: 0; }
.mg-chk input[type="checkbox"] + label span { display: block; width: 20px; height: 20px; background: rgba(255,255,255,0.9); border: 2px solid #bdc3c7; border-radius: 4px; cursor: pointer; }
.mg-chk input[type="checkbox"]:checked + label span { background: #00b894; border-color: #00b894; }

/* Category */
.bo_magazine #bo_cate { margin: 0 0 20px; }
.bo_magazine #bo_cate h2 { position: absolute; font-size: 0; overflow: hidden; }
.bo_magazine #bo_cate ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.bo_magazine #bo_cate a { display: block; padding: 5px 16px; border: 1px solid #ddd; border-radius: 20px; color: #7f8c8d; font-size: 0.88em; text-decoration: none; transition: all 0.2s; }
.bo_magazine #bo_cate a:hover, .bo_magazine #bo_cate #bo_cate_on { background: #00b894; color: #fff; border-color: #00b894; }

/* Pagination */
.mg-pagination { margin: 30px 0; text-align: center; }
.mg-pagination .pg_wrap { display: inline-flex; align-items: center; gap: 4px; }
.mg-pagination .pg_page, .mg-pagination .pg_current, .mg-pagination .pg_start, .mg-pagination .pg_end, .mg-pagination .pg_prev, .mg-pagination .pg_next { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid #ddd; border-radius: 17px; font-size: 13px; color: #555; background: #fff; text-decoration: none; transition: all 0.15s; }
.mg-pagination .pg_page:hover, .mg-pagination .pg_start:hover, .mg-pagination .pg_end:hover, .mg-pagination .pg_prev:hover, .mg-pagination .pg_next:hover { background: #fdecea; border-color: #00b894; color: #00b894; text-decoration: none; }
.mg-pagination .pg_current { background: #00b894; color: #fff; border-color: #00b894; font-weight: 700; }

/* Footer & More Options */
.mg-footer { text-align: right; padding: 14px 0; }
.mg-more-menu { display: none; position: absolute; top: 42px; right: 0; background: #fff; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,0.1); z-index: 999; min-width: 120px; list-style: none; margin: 0; padding: 4px 0; }
.mg-more-menu li button { display: block; width: 100%; padding: 9px 16px; border: 0; background: none; color: #555; font-size: 13px; text-align: left; cursor: pointer; }
.mg-more-menu li button:hover { background: #fdecea; color: #00b894; }
.mg-more-menu li i { margin-right: 6px; }

/* Search Modal */
.bo_magazine .bo_sch_wrap { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; }
.bo_magazine .bo_sch { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.2); padding: 0; width: 380px; max-width: 90%; overflow: hidden; }
.bo_magazine .bo_sch h3 { padding: 14px 20px; margin: 0; border-bottom: 1px solid #ecf0f1; font-size: 1.05em; color: #2c3e50; }
.bo_magazine .bo_sch form { padding: 18px 20px; }
.bo_magazine .bo_sch select { width: 100%; height: 40px; border: 1px solid #ddd; border-radius: 8px; padding: 0 10px; font-size: 13px; margin-bottom: 10px; color: #555; }
.mg-sch-bar { display: flex; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.mg-sch-input { flex: 1; height: 40px; border: 0; padding: 0 12px; font-size: 13px; outline: none; }
.mg-sch-btn { width: 40px; height: 40px; border: 0; background: #00b894; color: #fff; font-size: 15px; cursor: pointer; transition: background 0.2s; }
.mg-sch-btn:hover { background: #c0392b; }
.bo_magazine .bo_sch_cls { position: absolute; top: 6px; right: 6px; border: 0; background: none; font-size: 18px; color: #95a5a6; cursor: pointer; padding: 8px; }
.bo_magazine .bo_sch_bg { background: rgba(0,0,0,0.45); width: 100%; height: 100%; }

/* Utility */
.sound_only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Responsive */
@media (max-width: 768px) {
    .mg-grid { grid-template-columns: 1fr; gap: 16px; }
    .mg-featured-bg { min-height: 240px; }
    .mg-featured-content { padding: 20px; }
    .mg-featured-title { font-size: 1.2em; }
    .mg-featured-desc { display: none; }
    .mg-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .mg-header-right { width: 100%; justify-content: flex-end; }
    .mg-pagination .pg_wrap { flex-wrap: wrap; justify-content: center; }
    .mg-pagination .pg_page, .mg-pagination .pg_current, .mg-pagination .pg_start, .mg-pagination .pg_end, .mg-pagination .pg_prev, .mg-pagination .pg_next { min-width: 30px; height: 30px; font-size: 12px; }
}
