@charset "utf-8";

/**
 * @project ZZAN NeonLime Board Skin - Webzine Layout
 * @author ZZAN Studio
 * @copyright (c) ZZAN Studio. All rights reserved.
 * @description Webzine (list with thumbnails) style for ZZAN NeonLime theme.
 */

/* 1. Main Container */
.zzan-webzine-container {
    width: 100%;
    position: relative;
}

/* 2. Webzine Item Configuration */
.webzine-item {
    position: relative;
    padding: 30px 0;
    border-bottom: 1px solid var(--zzan-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}
.webzine-item:hover {
    background: var(--zzan-menu-hover-bg);
}

.webzine-link {
    display: flex;
    gap: 25px;
    text-decoration: none;
    color: inherit;
}

/* 3. Thumbnail & Visual Elements */
.webzine-thumb {
    position: relative;
    width: 200px; 
    border-radius: 16px;
    overflow: hidden;
    background: var(--zzan-menu-hover-bg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    flex-shrink: 0;
}
.webzine-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.webzine-item:hover .webzine-thumb img {
    transform: scale(1.05);
}
.no-thumb-mini {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--zzan-gray-text);
    background: var(--zzan-border);
}

/* 4. Content Area & Typography */
.webzine-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; 
}

.webzine-header {
    margin-bottom: 12px;
}
.cate-txt {
    display: inline-block;
    padding: 5px 12px 4px;
    background: var(--zzan-neon);
    color: #000 !important;
    font-size: 11px;
    font-weight: 800;
    border-radius: 50px;
    margin-bottom: 8px;
    line-height: 1;
}
.webzine-header .subject {
    font-size: 20px;
    font-weight: 800;
    color: var(--zzan-text);
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}
.webzine-item:hover .subject {
    color: var(--zzan-neon);
}

.webzine-body .summary {
    font-size: 15px;
    color: var(--zzan-gray-text);
    line-height: 1.6;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
}

/* 5. Metadata & Footer Information */
.webzine-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--zzan-gray-text);
    flex-wrap: wrap;
}
.webzine-footer .author-area {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--zzan-text);
}
.webzine-footer .profile-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--zzan-border);
}
.webzine-footer .bar {
    opacity: 0.5;
    font-size: 10px;
}
.webzine-footer .date {
    font-family: 'Montserrat', sans-serif;
}
.webzine-footer .stats {
    display: flex;
    align-items: center;
    gap: 8px;
}
.webzine-footer .voted {
    color: var(--zzan-neon);
    font-weight: 800;
}

.webzine-item .col-chk {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    z-index: 10;
}
.webzine-item.has-chk .webzine-link {
    padding-left: 50px;
}


/* 6. Sticky Notices (Extended from gallery style) */
.webzine-notices {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--zzan-border);
}
.webzine-notices .normal-list-row {
    padding: 0 15px !important; 
    display: flex !important;
    align-items: center;
}

.webzine-notices .col-title {
    padding-left: 0 !important; 
}
.webzine-notices .col-title a {
    text-decoration: none;
    color: var(--zzan-text);
    transition: 0.2s;
}
.webzine-notices .col-title a:hover {
    color: var(--zzan-neon);
}


/* 7. Responsive Webzine Layout (Mobile) */
@media screen and (max-width: 768px) {
    .zzan-board-wrapper .zzan-webzine-container {
        padding: 0 3px;
    }

    .webzine-item {
        padding: 0; 
        margin-bottom: 15px;
        border: 1px solid var(--zzan-border); 
        border-radius: 16px; 
        background: var(--zzan-bg); 
        overflow: hidden; 
    }
    .webzine-link {
        flex-direction: column;
        gap: 0; 
    }
    .webzine-item.has-chk .webzine-link {
        padding-left: 0; 
    }
    .webzine-item .col-chk {
        top: 15px;
        right: 15px; 
        left: auto;
        transform: none;
        z-index: 10;
        background: rgba(0,0,0,0.5);
        padding: 2px;
        border-radius: 6px;
    }

    .webzine-thumb {
        width: 100% !important;
        border-radius: 16px 16px 0 0; 
        box-shadow: none; 
        background: var(--zzan-menu-hover-bg);
    }
    
    .webzine-header-overlay {
        display: block;
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        pointer-events: none; 
        z-index: 2;
    }
    .webzine-header-overlay .cate-txt {
        position: absolute;
        top: 15px; left: 15px;
        margin: 0;
        z-index: 3;
    }
    .webzine-header-overlay .subject-bg {
        position: absolute;
        bottom: 0; left: 0; width: 100%;
        padding: 40px 15px 15px;
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
        box-sizing: border-box;
    }
    .webzine-header-overlay .subject {
        color: #ffffff !important;
        font-size: 18px;
        font-weight: 800;
        margin: 0;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-all;
        white-space: normal;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }

    .webzine-body {
        padding: 20px 15px; 
    }
    .webzine-header.pc-only {
        display: none !important;
    }
    .webzine-body .subject {
        font-size: 18px; 
        white-space: normal; 
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-all;
    }
    .webzine-body .summary {
        font-size: 14px;
        -webkit-line-clamp: 2; 
        margin-bottom: 15px;
        color: var(--zzan-text); 
        opacity: 0.8;
    }
    .webzine-footer {
        font-size: 12px;
        gap: 8px;
    }
    .webzine-footer .profile-img {
        width: 20px; height: 20px;
    }

    .webzine-notices .normal-list-row {
        padding: 0 !important;
        border-radius: 0; 
        margin-bottom: 10px;
        background: var(--zzan-menu-hover-bg);
    }
    .webzine-notices .mobile-list-content {
        padding: 15px 10px;
    }
}
