/* From list.skin.php */
/* ══════════════ Webzine Premium Layout ══════════════ */
.wz-wrap { padding: 60px 0 180px; background: #f8f9fc; }

/* 히어로 섹션 타이포 */
.wz-hero-banner {
    text-align: center;
    padding: 0 20px 50px;
}
.wz-hero-banner h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 12px;
}
.wz-hero-banner p {
    color: #64748b;
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* 커버 스토리 */
.wz-cover {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    margin-bottom: 60px;
    background: #1e293b;
    min-height: 420px;
}
.wz-cover-img {
    position: relative;
    overflow: hidden;
}
.wz-cover-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.wz-cover:hover .wz-cover-img img { transform: scale(1.04); }
.wz-cover-no-img {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.15); font-size: 6rem;
}
.wz-cover-body {
    display: flex; flex-direction: column; justify-content: center;
    padding: 50px 50px 50px 48px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #fff;
}
.wz-cover-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,107,0,0.2); color: #ff6b00;
    border: 1px solid rgba(255,107,0,0.3);
    padding: 5px 14px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 800; letter-spacing: 0.5px;
    margin-bottom: 20px; width: fit-content;
    text-transform: uppercase;
}
.wz-cover-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800; line-height: 1.35;
    color: #fff; margin-bottom: 16px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.wz-cover-excerpt {
    font-size: 0.95rem; color: rgba(255,255,255,0.65);
    line-height: 1.7; margin-bottom: 28px;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.wz-cover-meta {
    display: flex; align-items: center; gap: 14px;
    font-size: 0.83rem; color: rgba(255,255,255,0.45);
    margin-bottom: 24px;
}
.wz-cover-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #ff6b00; color: #fff;
    padding: 12px 26px; border-radius: 50px;
    font-weight: 700; font-size: 0.92rem;
    text-decoration: none; transition: all 0.25s;
    width: fit-content;
    box-shadow: 0 6px 20px rgba(255,107,0,0.35);
}
.wz-cover-btn:hover {
    background: #e05e00; transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255,107,0,0.45); color: #fff;
}

/* 카테고리 탭 */
.wz-tab-bar {
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap; margin-bottom: 36px;
}
.wz-tab {
    display: inline-flex; align-items: center;
    padding: 8px 20px; border-radius: 50px;
    font-weight: 700; font-size: 0.88rem;
    text-decoration: none; transition: all 0.2s;
    border: 1.5px solid #e2e8f0;
    background: #fff; color: #64748b;
    white-space: nowrap;
}
.wz-tab:hover { border-color: #ff6b00; color: #ff6b00; background: #fff8f4; }
.wz-tab.active {
    background: #ff6b00; border-color: #ff6b00;
    color: #fff; box-shadow: 0 4px 12px rgba(255,107,0,0.3);
}

/* 섹션 구분선 */
.wz-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 28px; padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}
.wz-section-title {
    font-size: 1.3rem; font-weight: 800; color: #0f172a;
    display: flex; align-items: center; gap: 8px;
}
.wz-section-title::before {
    content: ''; display: block;
    width: 4px; height: 22px;
    background: #ff6b00; border-radius: 4px;
}

/* 카드 그리드 */
.wz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 50px;
}
.wz-card {
    background: #fff; border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.055);
    overflow: hidden; display: flex; flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}
.wz-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}
.wz-card-thumb {
    width: 100%; aspect-ratio: 1/1;
    overflow: hidden; position: relative;
    background: #f1f5f9; display: block;
}
.wz-card-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.35s ease;
}
.wz-card:hover .wz-card-thumb img { transform: scale(1.06); }
.wz-card-thumb-empty {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #cbd5e1; font-size: 2.5rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}
.wz-card-badges {
    position: absolute; top: 12px; right: 12px;
    display: flex; flex-direction: column; gap: 4px; align-items: flex-end;
}
.wz-badge {
    padding: 3px 9px; border-radius: 16px;
    font-size: 0.72rem; font-weight: 800; color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.wz-badge-new { background: #ef4444; }
.wz-badge-hot { background: #f59e0b; }
.wz-badge-cover { background: #ff6b00; }

.wz-card-body { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.wz-card-cat {
    font-size: 0.76rem; font-weight: 800; color: #ff6b00;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
}
.wz-card-title {
    font-size: 1.1rem; font-weight: 700; color: #0f172a; line-height: 1.45;
    margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wz-card-title a { color: inherit; text-decoration: none; transition: color 0.2s; }
.wz-card-title a:hover { color: #ff6b00; }
.wz-card-excerpt {
    font-size: 0.88rem; color: #64748b; line-height: 1.65;
    flex-grow: 1; margin-bottom: 16px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.wz-card-meta {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 14px; border-top: 1px solid #f1f5f9;
    font-size: 0.8rem; color: #94a3b8;
}
.wz-card-meta-stats { display: flex; gap: 10px; }

/* 빈 목록 */
.wz-empty {
    text-align: center; padding: 100px 0;
    background: #fff; border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* 페이지네이션 */
.wz-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 10px; }
.wz-pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.wz-pagination.mobile-only { display: none; }
.wz-pagination a {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px;
    background: #fff; border: 1px solid #e2e8f0;
    color: #475569; font-weight: 600; font-size: 0.88rem;
    text-decoration: none; transition: all 0.2s;
}
.wz-pagination a:hover { border-color: #ff6b00; color: #ff6b00; }
.wz-pagination a.active {
    background: #ff6b00; border-color: #ff6b00;
    color: #fff; box-shadow: 0 4px 12px rgba(255,107,0,0.3);
}
.wz-write-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: linear-gradient(135deg, #ff6b00, #e05e00);
    color: #fff; padding: 10px 22px; border-radius: 50px;
    font-weight: 700; font-size: 0.9rem; text-decoration: none;
    box-shadow: 0 4px 12px rgba(255,107,0,0.3);
    transition: all 0.2s;
}
.wz-write-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,107,0,0.4); color:#fff; }

/* 검색 */
.wz-search { display: flex; justify-content: center; }
.wz-search form {
    display: flex; background: #fff; border-radius: 50px;
    padding: 5px; box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}
.wz-search select {
    border: none; background: transparent;
    padding: 9px 14px 9px 18px; color: #475569;
    font-weight: 500; outline: none; cursor: pointer; font-size: .88rem;
}
.wz-search input[type=text] {
    border: none; background: transparent;
    padding: 9px 14px; width: 220px;
    outline: none; border-left: 1px solid #e2e8f0; font-size: .9rem; color: #334155;
}
.wz-search button {
    background: #1e293b; color: #fff; border: none;
    border-radius: 50px; padding: 9px 22px;
    font-weight: 700; cursor: pointer; transition: background .2s; font-size: .88rem;
}
.wz-search button:hover { background: #0f172a; }

@media (max-width: 1024px) {
    .wz-cover { grid-template-columns: 1fr; min-height: auto; }
    .wz-cover-img { height: 280px; }
    .wz-cover-body { padding: 32px 28px; }
    .wz-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 640px) {
    .wz-grid { grid-template-columns: 1fr; gap: 16px; }
    .wz-cover-body { padding: 24px 20px; }
    .wz-tab-bar { gap: 6px; }
    .wz-tab { padding: 6px 14px; font-size: .82rem; }
    .wz-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    .wz-pagination.mobile-only {
        display: flex;
        gap: 5px;
        order: 1;
        justify-content: center;
    }
    .wz-pagination.mobile-only a {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        font-size: 0.85rem;
    }
    .wz-search {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    .wz-search form {
        width: 100%;
        justify-content: space-between;
        box-sizing: border-box;
    }
    .wz-search select {
        padding: 9px 5px 9px 10px;
        font-size: 0.85rem;
    }
    .wz-search input[type=text] {
        flex-grow: 1;
        width: auto;
        min-width: 0;
        font-size: 0.88rem;
    }
    .wz-search button {
        padding: 9px 15px;
        font-size: 0.88rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .wz-bottom div:last-child {
        order: 3;
        text-align: center !important;
        width: 100%;
    }
    .wz-write-btn {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    .wz-pagination.pc-only {
        display: none;
    }
}

/* From view.skin.php */
/* 🎨 Webzine Article View Styles */
.article-wrapper {
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.02);
    overflow: hidden;
}

.article-hero {
    width: 100%;
    height: 450px;
    background-color: #f1f5f9;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.article-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
}

.article-header {
    position: relative;
    z-index: 10;
    padding: 40px 50px;
    width: 100%;
    color: #fff;
}

/* 히어로 이미지가 없을 때의 헤더 스타일 */
.article-header-no-hero {
    padding: 50px 50px 30px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    color: #0f172a;
}

.article-category {
    font-size: 0.9rem;
    font-weight: 700;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}
.article-header-no-hero .article-category {
    color: #3b82f6;
}

.article-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 25px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.article-header-no-hero .article-title {
    color: #0f172a;
    text-shadow: none;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}
.article-header-no-hero .article-meta {
    color: #64748b;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.article-meta i {
    color: rgba(255,255,255,0.7);
}
.article-header-no-hero .article-meta i {
    color: #cbd5e1;
}

.article-body {
    padding: 60px 50px;
    max-width: 100%;
    margin: 0 auto;
}







/* YouTube Embed Box */
.youtube-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    margin: 40px 0;
}
.youtube-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* External Link Banner */
.external-link-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 25px 30px;
    border-radius: 16px;
    margin: 40px 0;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.3s ease;
}
.external-link-banner:hover {
    background: #fff;
    border-color: #cbd5e1;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.05);
}
.external-link-info strong {
    display: block;
    font-size: 1.15rem;
    color: #0f172a;
    margin-bottom: 6px;
}
.external-link-info span {
    color: #64748b;
    font-size: 0.95rem;
}

/* Attachments */
.attachments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #f1f5f9;
}
.attachments-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    padding: 15px 25px;
    border-radius: 12px;
    text-decoration: none;
    color: #475569;
    transition: all 0.2s ease;
}
.attachment-item:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

/* Action Buttons */
.view-actions {
    background: #f8fafc;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
}
.btn-modern {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-list {
    background: #fff;
    color: #475569;
    border: 1px solid #cbd5e1;
}
.btn-list:hover {
    background: #f1f5f9;
    color: #1e293b;
}
.btn-primary-action {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    box-shadow: 0 4px 10px rgba(59,130,246,0.3);
}
.btn-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59,130,246,0.4);
}
.btn-danger-action {
    background: #fff;
    color: #ef4444;
    border: 1px solid #fecaca;
}
.btn-danger-action:hover {
    background: #fef2f2;
}

@media (max-width: 768px) {
    .section-padding { padding: 50px 0; }
    .container { padding: 0; width: 100%; max-width: 100%; }
    .article-wrapper { border-radius: 0; box-shadow: none; }
    .article-hero { height: 350px; }
    .article-header { padding: 30px 20px; }
    .article-header-no-hero { padding: 30px 20px 20px; }
    .article-title { font-size: 2rem; margin-bottom: 15px; }
    .article-body { padding: 30px 20px; }
    .view-actions { padding: 20px; flex-direction: column; gap: 15px; }
    .view-actions .action-group { width: 100%; display: flex; justify-content: space-between; }
    .prev-next-area { padding: 15px !important; }
}

/* From write.skin.php */
/* 🎨 Premium Write Form Styles */
.write-wrapper {
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.02);
    padding: 40px;
}
.write-group {
    margin-bottom: 28px;
}
.write-label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    font-size: 1.05rem;
}
.write-input {
    width: 100%;
    padding: 16px 20px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: #334155;
    transition: all 0.3s ease;
}
.write-input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}
.write-input::placeholder {
    color: #94a3b8;
}

/* Callout Boxes (YouTube & Link) */
.feature-box {
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 28px;
    transition: transform 0.2s ease;
}
.feature-box:hover {
    transform: translateY(-2px);
}
.feature-box-link {
    background: linear-gradient(to right, #f1f5f9, #f8fafc);
    border-left: 5px solid #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}
.feature-box-youtube {
    background: linear-gradient(to right, #fef2f2, #fff5f5);
    border-left: 5px solid #ef4444;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}
.feature-title {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.feature-box-link .feature-title { color: #1e40af; }
.feature-box-youtube .feature-title { color: #991b1b; }

/* Custom Checkboxes */
.custom-checkbox-wrap {
    display: flex;
    gap: 24px;
    margin-top: 14px;
}
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #475569;
    user-select: none;
}
.custom-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    cursor: pointer;
}

/* File Upload Area */
.file-upload-area {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}
.file-upload-area:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}
.file-upload-area input[type="file"] {
    display: block;
    margin: 0 auto;
    font-size: 1rem;
    color: #64748b;
}

/* Buttons */
.btn-submit {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 16px 48px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.5);
}
.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -10px rgba(59, 130, 246, 0.6);
}
.btn-cancel {
    background: #f1f5f9;
    color: #475569;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-cancel:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Responsive */
@media (max-width: 768px) {
    .write-wrapper { padding: 20px; }
    .custom-checkbox-wrap { flex-direction: column; gap: 12px; }
}

@media (max-width: 768px) {
    .section-padding { padding-bottom: 100px !important; }
}
