/* ===== HEAD ===== */
.ev-head {margin-bottom: 24px;text-align: center;}
.ev-head-sub {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #1255a4;
    margin-bottom: 6px;
}
.ev-head-title {
    font-size: 26px;
    font-weight: 900;
    color: #0d1b3e;
    margin: 0 0 6px;
}
.ev-head-desc { font-size: 13px; color: #999; margin: 0; }

/* ===== 검색 ===== */
.ev-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f8ff;
    border: 1.5px solid #dde6f5;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 28px;
}
.ev-search-sel {
    border: 1.5px solid #dde6f5;
    background: #fff;
    border-radius: 7px;
    font-size: 14px;
    padding: 9px 12px;
    color: #555;
    outline: none;
    flex-shrink: 0;
    font-family: 'Paperozi', sans-serif;
}
.ev-search-input {
    flex: 1;
    border: 1.5px solid #dde6f5;
    border-radius: 7px;
    font-size: 14px;
    padding: 9px 14px;
    outline: none;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
    min-width: 0;
    font-family: 'Paperozi', sans-serif;
}
.ev-search-input:focus { border-color: #1255a4; }
.ev-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1255a4;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 22px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}
.ev-search-btn:hover { background: #0e4491; }
.ev-search-btn svg { width: 15px; height: 15px; }

/* ===== 갤러리 그리드 ===== */
.ev-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

/* ===== 카드 ===== */
.ev-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid #eaeef6;
    transition: box-shadow 0.2s, transform 0.2s;
}
.ev-card:hover {
    box-shadow: 0 8px 28px rgba(18,85,164,0.13);
    transform: translateY(-4px);
}

/* 포스터 이미지 — 2:3 비율 */
.ev-card-img {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}
.ev-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}
.ev-card:hover .ev-card-img img { transform: scale(1.05); }

/* hover 오버레이 */
.ev-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18,85,164,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
}
.ev-card:hover .ev-card-overlay { opacity: 1; }
.ev-card-overlay span {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border: 1.5px solid rgba(255,255,255,0.7);
    padding: 8px 20px;
    border-radius: 50px;
}

/* 상태 배지 */
.ev-card-status {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 1;
}
.ev-status-ing { background: #1255a4; color: #fff; }
.ev-status-soon { background: #e05c00; color: #fff; }
.ev-status-end { background: rgba(0,0,0,0.45); color: rgba(255,255,255,0.85); }
.ev-status-end ~ img,
.ev-card:has(.ev-status-end) .ev-card-img img { filter: grayscale(40%); }

/* 카드 하단 */
.ev-card-body { padding: 14px 14px 16px; }
.ev-card-tag {
    display: inline-block;
    background: #e8f0fe;
    color: #1255a4;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 4px;
    margin-bottom: 7px;
}
.ev-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #0d1b3e;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ev-card-period {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #bbb;
}
.ev-card-period svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ===== 페이징 ===== */
.ev-paging {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 16px;
}
.ev-page-btn {
    min-width: 36px;
    height: 36px;
    border: 1.5px solid #dde6f5;
    background: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ev-page-btn:hover { border-color: #1255a4; color: #1255a4; }
.ev-page-btn.active { background: #1255a4; border-color: #1255a4; color: #fff; }
.ev-page-btn:disabled { opacity: 0.3; pointer-events: none; }
.ev-page-arrow svg { width: 14px; height: 14px; }

/* 글쓰기 버튼 */
.ev-btn-wrap { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.ev-btn-write {
    background: #1255a4;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 7px;
    text-decoration: none;
    transition: background 0.2s;
}
.ev-btn-write:hover { background: #0e4491; }

/* ===== 보기 (VIEW) ===== */
.evv-wrap {
    background: #fff;
    border: 1.5px solid #e4eaf5;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}
.evv-top {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
}
.evv-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-right: 1px solid #f0f4fb;
}
.evv-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.evv-poster .ev-card-status { top: 14px; left: 14px; }
.evv-info {
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-bottom: 1px solid #f0f4fb;
}
.evv-title {
    font-size: 20px;
    font-weight: 900;
    color: #0d1b3e;
    line-height: 1.4;
    margin: 0;
}
.evv-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.evv-meta-list li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 13px;
    color: #555;
}
.evv-meta-list svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 2px; color: #1255a4; }
.evv-meta-list strong { color: #0d1b3e; margin-right: 6px; }
.evv-prize {
    background: #f5f8ff;
    border: 1px solid #dde6f5;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
}
.evv-prize strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #1255a4;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}
.evv-prize ul { padding: 0 0 0 14px; margin: 0; }
.evv-prize li { color: #555; line-height: 1.7; }
.evv-btn-list {
    display: inline-block;
    margin-top: auto;
    padding: 10px 22px;
    border: 1.5px solid #dde6f5;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #888;
    text-decoration: none;
    width: fit-content;
    transition: border-color 0.2s, color 0.2s;
}
.evv-btn-list:hover { border-color: #1255a4; color: #1255a4; }

/* 본문 */
.evv-body { padding: 28px; border-bottom: 1px solid #f0f4fb; }
.evv-section-label {
    font-size: 13px;
    font-weight: 800;
    color: #1255a4;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #f0f4fb;
}
.evv-content { font-size: 14px; color: #333; line-height: 1.85; }
.evv-content p { margin-bottom: 14px; }
.evv-content p:last-child { margin-bottom: 0; }

/* 이전/다음 */
.evv-nav { }
.evv-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    border-bottom: 1px solid #f0f4fb;
    font-size: 13px;
}
.evv-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #1255a4;
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.evv-nav-label svg { width: 11px; height: 11px; }
.evv-nav-item a {
    color: #333;
    text-decoration: none;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.15s;
}
.evv-nav-item a:hover { color: #1255a4; }

/* 액션 */
.evv-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #f8fafd;
    gap: 8px;
}
.evv-actions-right { display: flex; gap: 8px; }
.evv-btn-back, .evv-btn-edit, .evv-btn-delete {
    padding: 9px 20px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: none;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
}
.evv-btn-back { background: #fff; color: #666; border: 1.5px solid #dde6f5; }
.evv-btn-back:hover { border-color: #1255a4; color: #1255a4; }
.evv-btn-edit { background: #1255a4; color: #fff; }
.evv-btn-edit:hover { background: #0e4491; }
.evv-btn-delete { background: #fff; color: #e53e3e; border: 1.5px solid #fdc5c5; }
.evv-btn-delete:hover { background: #fff0f0; }

/* ===== 쓰기/수정 폼 ===== */
.evw-form {
    background: #fff;
    border: 1.5px solid #e4eaf5;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}
.evw-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f4fb;
    min-height: 54px;
}
.evw-row-top { align-items: flex-start; }
.evw-label {
    width: 130px;
    min-width: 130px;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #555;
    background: #f8fafd;
    align-self: stretch;
    display: flex;
    align-items: center;
    border-right: 1px solid #f0f4fb;
    flex-shrink: 0;
}
.evw-row-top .evw-label { align-items: flex-start; padding-top: 16px; }
.evw-req { color: #1255a4; margin-left: 2px; }
.evw-input-wrap { flex: 1; padding: 10px 14px; min-width: 0; }
.evw-input, .evw-select, .evw-textarea {
    width: 100%;
    padding: 9px 12px;
    font-size: 14px;
    color: #1a2a4a;
    background: #fff;
    border: 1.5px solid #dde6f5;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}
.evw-input:focus, .evw-select:focus, .evw-textarea:focus { border-color: #1255a4; }
.evw-textarea { resize: vertical; min-height: 240px; line-height: 1.75; }
.evw-textarea-sm { min-height: 90px; }
.evw-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%231255a4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    cursor: pointer;
    width: auto;
    min-width: 120px;
}

/* 날짜 */
.evw-date-wrap { display: flex; align-items: center; gap: 8px; }
.evw-date { width: auto; flex: 1; }
.evw-date-sep { font-size: 14px; color: #aaa; flex-shrink: 0; }

/* 라디오 */
.evw-radio-wrap { display: flex; gap: 20px; align-items: center; }
.evw-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    font-weight: 600;
}
.evw-radio input { display: none; }
.evw-radio-box {
    width: 18px;
    height: 18px;
    border: 1.5px solid #c5d7f5;
    border-radius: 50%;
    background: #f5f8ff;
    flex-shrink: 0;
    transition: border-color 0.2s;
}
.evw-radio input:checked + .evw-radio-box {
    border-color: #1255a4;
    background: #1255a4;
    box-shadow: inset 0 0 0 3px #fff;
}

/* 썸네일 업로드 */
.evw-thumb-area { display: inline-block; }
.evw-thumb-upload { }
.evw-thumb-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 180px;
    height: 270px;
    border: 2px dashed #c5d7f5;
    border-radius: 10px;
    background: #f5f8ff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
    padding: 16px;
    box-sizing: border-box;
}
.evw-thumb-label:hover { border-color: #1255a4; background: #eef3fc; }
.evw-thumb-label svg { width: 40px; height: 40px; }
.evw-thumb-label p { font-size: 13px; font-weight: 700; color: #1255a4; margin: 0; }
.evw-thumb-label span { font-size: 11px; color: #aaa; }
.evw-thumb-preview {
    position: relative;
    width: 180px;
    height: 270px;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid #e4eaf5;
}
.evw-thumb-preview img { width: 100%; height: 100%; object-fit: cover; }
.evw-thumb-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.evw-thumb-remove svg { width: 12px; height: 12px; }

/* 기존 썸네일 */
.evw-exist-thumb {
    display: flex;
    align-items: center;
    gap: 12px;
}
.evw-exist-thumb img {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e4eaf5;
}
.evw-exist-del {
    background: #fff;
    border: 1.5px solid #dde6f5;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.evw-exist-del:hover { border-color: #1255a4; color: #1255a4; }

/* 파일 */
.evw-file-hidden { display: none; }
.evw-attach-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.evw-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border: 1.5px solid #dde6f5;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.evw-file-btn:hover { border-color: #1255a4; color: #1255a4; }
.evw-file-btn svg { width: 13px; height: 13px; }
.evw-file-hint { font-size: 11px; color: #bbb; }
.evw-file-list { width: 100%; display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.evw-file-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #555;
    background: #f5f8ff;
    padding: 5px 10px;
    border-radius: 5px;
}
.evw-file-item svg { width: 11px; height: 11px; flex-shrink: 0; }
.evw-file-item span { margin-left: auto; color: #aaa; font-size: 11px; }
.evw-exist-file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #1255a4;
    font-weight: 600;
    background: #f0f4fb;
    padding: 6px 12px;
    border-radius: 6px;
}
.evw-exist-file svg { width: 12px; height: 12px; }
.evw-file-del-btn {
    background: none;
    border: 1px solid #fdc5c5;
    color: #e53e3e;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 4px;
}
.evw-file-del-btn:hover { background: #fff0f0; }

/* 폼 액션 */
.evw-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 18px;
    background: #f8fafd;
    border-top: 1.5px solid #f0f4fb;
}
.evw-btn-cancel {
    padding: 10px 26px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    color: #888;
    border: 1.5px solid #dde6f5;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.evw-btn-cancel:hover { border-color: #1255a4; color: #1255a4; }
.evw-btn-submit {
    padding: 10px 30px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: #1255a4;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.evw-btn-submit:hover { background: #0e4491; }

/* ===== 반응형 ===== */
@media (max-width: 1200px) {
    .ev-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
    .evv-top { grid-template-columns: 200px 1fr; }
    .evv-title { font-size: 17px; }
}
@media (max-width: 768px) {
    .ev-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .ev-search-wrap { flex-direction: column; align-items: stretch; }
    .ev-search-sel, .ev-search-input, .ev-search-btn { width: 100%; justify-content: center; }
    .evv-top { grid-template-columns: 1fr; }
    .evv-poster { aspect-ratio: 3 / 2; max-height: 280px; }
    .evv-info { padding: 20px; }
    .evv-title { font-size: 16px; }
    .evv-actions { flex-direction: column; }
    .evv-actions-right { justify-content: flex-end; }
    .evw-label { width: 90px; min-width: 90px; font-size: 12px; padding: 12px 10px; }
    .evw-date-wrap { flex-wrap: wrap; }
    .evw-actions { flex-direction: column; }
    .evw-btn-cancel, .evw-btn-submit { text-align: center; width: 100%; }
}
@media (max-width: 480px) {
    .ev-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ev-card-body { padding: 10px 10px 12px; }
    .ev-card-title { font-size: 12px; }
    .ev-head-title { font-size: 22px; }
    .evv-poster { max-height: 220px; }
    .evw-thumb-label, .evw-thumb-preview { width: 140px; height: 210px; }
}
