/* 웹진 스킨 전용 CSS - 왼쪽 썸네일 리스트 형태 */

.board-webzine-container {
    width: 100%;
    font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* 웹진 리스트 - 왼쪽 썸네일 형태 */
.webzine-list {
    padding: 0 0.5rem;
}

.webzine-item {
    display: flex;
    background: white;
    padding:12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 16px;
}

.webzine-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #d0d7de;
}

.webzine-item a {
    display: flex;
    width: 100%;
    text-decoration: none !important;
    color: inherit;
}

/* 왼쪽 썸네일 */
.webzine-thumbnail {
    position: relative;
    width: 260px;
    height: 150px;
    flex-shrink: 0;
    margin-right:25px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.webzine-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.webzine-item:hover .webzine-thumbnail img {
    transform: scale(1.1);
}

/* 유튜브 플레이 아이콘 */
.webzine-thumbnail.video .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width:20px;
    height:12px;
    background: #fff;
    transform: translate(-50%, -50%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #f60000;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.webzine-thumbnail.video .play-icon i {
    margin-left: 4px;
}

.no-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #95a5a6;
}

.no-thumbnail i {
    font-size: 40px;
    opacity: 0.4;
}

/* 오른쪽 콘텐츠 */
.webzine-content {
    flex: 1;
    padding: 6px;
    display: flex;
    flex-direction: column;
}

.webzine-category {
    display: inline-block;
    padding: 4px 10px;
    background: #e4eef2;
    color: #264c5c;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
    align-self: flex-start;
}

.webzine-title {
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 10px;
    color: #2c3e50;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.webzine-item:hover .webzine-title {
    color: #0a558e;
}

.webzine-excerpt {
    font-size: 15px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.webzine-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #999;
    padding-top: 10px;
    border-top: 1px solid #ecf0f1;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    font-size: 12px;
}

/* 로딩 애니메이션 */
.webzine-item {
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}

.webzine-item:nth-child(1) { animation-delay: 0.05s; }
.webzine-item:nth-child(2) { animation-delay: 0.1s; }
.webzine-item:nth-child(3) { animation-delay: 0.15s; }
.webzine-item:nth-child(4) { animation-delay: 0.2s; }
.webzine-item:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형: 태블릿 */
@media (max-width: 1024px) {
    .webzine-thumbnail {
        width: 100%;
        height: 135px;
    }
    
    .webzine-thumbnail.video .play-icon {
        font-size: 34px;
    }
    
    .webzine-content {
        padding: 16px;
    }
    
    .webzine-title {
        font-size: 17px;
    }
    
    .webzine-excerpt {
        font-size: 13px;
    }
}

/* 반응형: 모바일 */
@media (max-width: 768px) {
    .webzine-list {
        padding: 0rem;
    }
    
    .webzine-item a {
        display: block;
        width: 100%;
        text-decoration: none !important;
        color: inherit;
    }
        
    .webzine-thumbnail {
        width: 100%;
        height: 180px;
    }
    
    .webzine-thumbnail.video .play-icon {
        width: 40px;
        height: 26px;
        font-size: 28px;
    }
    
    .webzine-content {
        padding: 6px;
    }
    
    .webzine-title {
        display: block;
        font-size: 17px !important;
        color:#333;
        line-height: 24px;
        letter-spacing: -1px;
        font-weight: 600;
        -webkit-line-clamp: 2;
    }
    
    .webzine-excerpt {
        font-size: 14px !important;
        line-height: 18px;
        -webkit-line-clamp: 2;
    }
    
    .webzine-meta {
        font-size: 13px;
        gap: 10px;
    }
}

/* 반응형: 작은 모바일 */
@media (max-width: 480px) {
    .webzine-thumbnail {
        width:100% !important;
        height: 160px;
    }
    
    .webzine-thumbnail.video .play-icon {
        width: 20px;
        height: 20px;
        font-size: 46px;
    }
    
    .webzine-content {
        padding: 14px;
    }
    
    .webzine-title {
        font-size: 15px;
    }
    
    .webzine-excerpt {
        font-size: 12px;
    }
    
    .webzine-meta {
        font-size: 11px;
    }
}

/* 빈 게시물 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 0 1rem;
}

.empty-state i {
    font-size: 64px;
    color: #95a5a6;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.empty-state p {
    font-size: 15px;
    color: #7f8c8d;
}

