/* From list.skin.php */
/* 🎨 Event List Styles */
.event-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.event-card {
    display: flex;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06); /* 그림자 강화 */
    border: 1px solid #cbd5e1; /* 테두리 진하게 */
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #94a3b8;
}

/* 좌측 날짜 뱃지 */
.event-date-box {
    width: 120px;
    min-width: 120px;
    flex-shrink: 0;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px dashed #cbd5e1; /* 진하게 */
    padding: 20px 10px;
}

.event-month {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color, #f97316);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.event-day {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.event-year {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 5px;
}

/* 중앙 내용 */
.event-body {
    flex-grow: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-tag {
    display: inline-block;
    background: #fff7ed;
    color: #ea580c;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    align-self: flex-start;
    white-space: nowrap;
    border: 1px solid #ffedd5;
}

.event-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.event-card:hover .event-title {
    color: #3b82f6;
}

.event-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 15px;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 우측 썸네일 */
.event-thumb {
    width: 250px;
    min-width: 250px;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-thumb img {
    transform: scale(1.08);
}

.event-thumb-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #cbd5e1;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.event-card:hover .event-thumb-icon {
    transform: translate(-50%, -50%) scale(1.1);
    color: #94a3b8;
}

/* 하단 버튼 및 검색 영역 (기존 스타일 차용) */
.board-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.premium-pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.premium-pagination.mobile-only {
    display: none;
}

.premium-pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.premium-pagination a:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.premium-pagination a.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
    box-shadow: 0 4px 10px rgba(59,130,246,0.3);
}

.btn-primary-gradient {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(59,130,246,0.3);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59,130,246,0.4);
    color: #fff;
}

.premium-search {
    display: flex;
    justify-content: center;
}
.premium-search form {
    display: flex;
    background: #fff;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.02);
}
.premium-search select {
    border: none;
    background: transparent;
    padding: 10px 15px 10px 20px;
    color: #475569;
    font-weight: 500;
    outline: none;
    cursor: pointer;
}
.premium-search input {
    border: none;
    background: transparent;
    padding: 10px 15px;
    width: 250px;
    outline: none;
    border-left: 1px solid #e2e8f0;
    font-size: 1rem;
}
.premium-search button {
    background: #1e293b;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.premium-search button:hover {
    background: #0f172a;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .event-card {
        flex-direction: column;
    }
    .event-date-box {
        width: 100%;
        border-right: none;
        border-bottom: 1px dashed #cbd5e1;
        flex-direction: row;
        gap: 10px;
        padding: 15px;
        align-items: baseline;
    }
    .event-month { margin: 0; }
    .event-day { font-size: 1.5rem; }
    .event-year { margin: 0; }
    .event-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        min-width: unset;
        order: -1;
    }
    .event-body {
        padding: 20px;
    }
    .board-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 20px !important;
    }
    .premium-search {
        order: 2 !important;
        width: 100% !important;
    }
    .premium-search form {
        width: 100% !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
    }
    .premium-search select {
        padding: 10px 5px 10px 10px !important;
        font-size: 0.9rem !important;
    }
    .premium-search input {
        flex-grow: 1 !important;
        width: auto !important;
        min-width: 0 !important;
        font-size: 0.92rem !important;
    }
    .premium-search button {
        padding: 10px 15px !important;
        font-size: 0.92rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    .premium-pagination.pc-only {
        display: none !important;
    }
    .premium-pagination.mobile-only {
        display: flex !important;
        gap: 5px !important;
        order: 1 !important;
        justify-content: center !important;
    }
    .premium-pagination.mobile-only a {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
        font-size: 0.85rem !important;
    }
    .board-actions > div:last-child {
        order: 3 !important;
        text-align: center !important;
        width: 100% !important;
    }
    .board-actions .btn-primary-gradient {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* 뷰 토글 버튼 스타일 */
.event-view-toggle-wrap {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
    gap: 8px;
}

.event-view-toggle-wrap .toggle-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    transition: all 0.2s;
    cursor: pointer;
}

.event-view-toggle-wrap .toggle-view-btn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    color: #1e293b;
}

.event-view-toggle-wrap .toggle-view-btn.active {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6) !important;
    border-color: #1e3a8a !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(59,130,246,0.2);
}

/* 💻 PC 화면 2열 그리드 및 가로형 구조 유지 레이아웃 (기본보기) */
@media (min-width: 769px) {
    .view-default {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .view-default .event-card {
        display: flex;
        flex-direction: row; /* 기존 가로 구조 유지 */
        height: 100%;
    }
    
    /* 날짜 박스 너비 축소 */
    .view-default .event-date-box {
        width: 90px !important;
        min-width: 90px !important;
        padding: 15px 5px !important;
        border-right: 1px dashed #cbd5e1 !important;
        position: static; /* absolute 리셋 */
        background: #f8fafc !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    
    .view-default .event-month {
        font-size: 0.85rem !important;
    }
    
    .view-default .event-day {
        font-size: 1.6rem !important;
    }
    
    .view-default .event-year {
        font-size: 0.75rem !important;
        margin-top: 3px !important;
        display: block !important; /* 연도 노출 */
    }
    
    /* 본문 영역 패딩 축소 및 높이 조절 */
    .view-default .event-body {
        padding: 20px !important;
        flex-grow: 1;
    }
    
    .view-default .event-title {
        font-size: 1.15rem !important;
        -webkit-line-clamp: 2 !important;
        margin-bottom: 8px !important;
    }
    
    /* PC 2열 가로 구조 가독성을 위해 본문은 3줄로 조율 */
    .view-default .event-body p {
        font-size: 0.85rem !important;
        -webkit-line-clamp: 3 !important;
        margin: 5px 0 10px 0 !important;
    }
    
    /* 썸네일 영역 너비 축소 */
    .view-default .event-thumb {
        width: 150px !important;
        min-width: 150px !important;
        height: auto !important; /* 가로 높이에 맞게 자동 */
        order: unset !important; /* 순서 원래대로 */
        border-bottom: none !important;
    }
    
    .view-default .event-meta {
        margin-top: 10px !important;
        font-size: 0.8rem !important;
        gap: 10px !important;
        border-top: none !important;
        padding-top: 0 !important;
    }
}

/* 💻 PC 화면 4열 그리드 및 프리미엄 세로형 카드 레이아웃 (카드스타일) */
@media (min-width: 769px) {
    .view-card {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 4열로 확장 */
        gap: 20px; /* 4열이므로 간격을 20px로 다소 조율해 가로 공간 확보 */
    }
    
    .view-card .event-card {
        flex-direction: column;
        position: relative;
        height: 100%;
        min-height: 400px; /* 4열 배치로 너비가 줄어들었으므로 최소 높이를 400px로 축소 */
    }
    
    /* 날짜 박스를 이미지 좌측 상단에 absolute 배치 (크기 미세 조율) */
    .view-card .event-date-box {
        position: absolute;
        top: 15px;
        left: 15px;
        z-index: 10;
        width: 60px;
        min-width: 60px;
        height: 60px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.96) !important;
        box-shadow: 0 6px 15px rgba(0,0,0,0.08);
        border: 1px solid rgba(226, 232, 240, 0.8) !important;
        border-right: none !important;
        padding: 6px 3px !important;
    }
    
    .view-card .event-month {
        font-size: 0.75rem !important;
        margin-bottom: 0px !important;
    }
    
    .view-card .event-day {
        font-size: 1.25rem !important;
    }
    
    .view-card .event-year {
        display: none !important; /* 연도 생략 */
    }
    
    /* 썸네일 영역을 상단 고정 및 1:1 정사각형 비율 지정 */
    .view-card .event-thumb {
        width: 100% !important;
        min-width: 100% !important;
        aspect-ratio: 1 / 1 !important; /* 정사각형 비율 보장 */
        height: auto !important;
        order: -1 !important; /* 상단으로 배치 */
        border-bottom: 1px solid #cbd5e1;
    }
    
    .view-card .event-body {
        padding: 15px; /* 4열이므로 여백을 15px로 줄여 공간 효율화 */
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .view-card .event-title {
        font-size: 1.05rem; /* 폰트 크기를 다소 줄여 4열 가독성 향상 */
        -webkit-line-clamp: 2;
        margin-bottom: 8px;
    }
    
    /* 4열이므로 가독성을 위해 본문은 2줄로 제한 */
    .view-card .event-body p {
        font-size: 0.85rem !important;
        -webkit-line-clamp: 2 !important;
        margin-bottom: 10px !important;
    }
    
    .view-card .event-meta {
        margin-top: auto !important; /* 메타 정보를 카드 하단으로 밀어냄 */
        border-top: 1px solid #f8fafc;
        padding-top: 10px;
        font-size: 0.8rem;
        gap: 8px !important;
        flex-wrap: wrap; /* 좁은 공간에서 줄바꿈 대응 */
    }
}

/* 💻 노트북 및 중간 해상도 화면(992px ~ 1200px)에서는 3열 노출 대응 */
@media (min-width: 769px) and (max-width: 1200px) {
    .view-card {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* From view.skin.php */
/* 🎨 Premium View Styles */
.view-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;
}

.view-header-area {
    padding: 40px 40px 30px;
    border-bottom: 1px solid #f1f5f9;
}

.view-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 20px;
}

.view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #64748b;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 500;
}

.meta-item i {
    color: #94a3b8;
}

.view-body {
    padding: 40px;
}





/* 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: 30px 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: linear-gradient(to right, #eff6ff, #f8fafc);
    border-left: 4px solid #3b82f6;
    padding: 20px 25px;
    border-radius: 12px;
    margin: 30px 0;
    text-decoration: none;
    color: #1e293b;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.external-link-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59,130,246,0.1);
}
.external-link-info strong {
    display: block;
    font-size: 1.1rem;
    color: #1d4ed8;
    margin-bottom: 4px;
}
.external-link-info span {
    color: #64748b;
    font-size: 0.9rem;
}

/* Attachments */
.attachments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed #cbd5e1;
}
.attachments-title {
    font-weight: 700;
    color: #334155;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #475569;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}
.attachment-item:hover {
    background: #fff;
    border-color: #3b82f6;
    color: #1d4ed8;
    transform: translateX(5px);
}

/* Action Buttons */
.view-actions {
    background: #f8fafc;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-modern {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    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%; }
    .view-wrapper {
        border-radius: 0;
        box-shadow: none;
    }
    .view-header-area, .view-body, .view-actions { padding: 25px 15px; }
    .view-title { font-size: 1.8rem; }
    .view-actions { flex-direction: column; gap: 15px; }
    .view-actions .action-group { width: 100%; display: flex; justify-content: space-between; }
    .prev-next-area { padding: 15px 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; }
}
