/* =============================================
   Mevcut PDF Viewer Stilleri (değiştirilmedi)
   ============================================= */

.pdf-uploader-placeholder {
    border: 2px dashed #b5bfc7;
    background: #f0f2f5;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
}

    .pdf-uploader-placeholder .dashicons-pdf {
        font-size: 48px;
        width: 48px;
        height: 48px;
        color: #1e1e1e;
        margin-bottom: 10px;
    }

.pdf-preview-container {
    position: relative;
    border: 1px solid #ddd;
    background: #525659;
    border-radius: 4px;
    overflow: hidden;
}

.pdf-preview-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px;
    border-radius: 4px;
}

.chrome-pdf-container {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    overflow: hidden;
    background: #525659;
}

/* =============================================
   Resim Galerisi — Editor (block.js preview)
   ============================================= */

.csvb-image-gallery-wrap {
    margin-top: 20px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 16px;
    background: #fafafa;
}

.csvb-gallery-label {
    font-size: 13px;
    font-weight: 600;
    color: #3c434a;
    margin: 0 0 12px 0;
}

.csvb-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.csvb-image-item {
    position: relative;
    border: 2px solid #c8d0d8;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #e9ecef;
}

.csvb-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.csvb-remove-img-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.csvb-add-images-btn {
    width: 100%;
    justify-content: center;
}

/* =============================================
   Resim Galerisi — Frontend (PHP render)
   ============================================= */

.csvb-block-wrap {
    padding: 0 20px;
    box-sizing: border-box;
}

.csvb-gallery-section {
    margin-top: 24px;
    width: 100%;
}

.csvb-gallery-section .csvb-gallery-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0 0 14px 0;
}

.csvb-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
}

.csvb-gallery-thumb {
    position: relative;
    display: block;
    border: 2px solid #c8d0d8;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #e9ecef;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.csvb-gallery-thumb:hover {
    border-color: #0073aa;
    box-shadow: 0 6px 18px rgba(0, 115, 170, 0.25);
    transform: translateY(-3px);
}

.csvb-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.csvb-gallery-thumb:hover img {
    opacity: 0.88;
}

/* =============================================
   Zip Dosyası — Editor (block.js preview)
   ============================================= */

.csvb-zip-wrap {
    margin-top: 20px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 16px;
    background: #fafafa;
}

.csvb-add-zip-btn {
    width: 100%;
    justify-content: center;
}

.csvb-zip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #c8d0d8;
    border-radius: 6px;
    padding: 10px 12px;
    background: #fff;
}

.csvb-zip-item-icon {
    font-size: 20px;
}

.csvb-zip-item-name {
    flex: 1;
    font-size: 13px;
    color: #3c434a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =============================================
   Zip Dosyası — Frontend (PHP render)
   ============================================= */

.csvb-zip-section {
    margin-top: 32px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.csvb-zip-download-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 460px;
    box-sizing: border-box;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e4e9ee;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(20, 40, 60, 0.06);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.csvb-zip-download-btn:hover {
    border-color: #0073aa;
    box-shadow: 0 10px 28px rgba(0, 115, 170, 0.16);
    transform: translateY(-3px);
}

.csvb-zip-download-btn:active {
    transform: translateY(-1px);
}

.csvb-zip-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef6fb, #e3eff7);
    color: #0073aa;
}

.csvb-zip-icon svg {
    width: 22px;
    height: 22px;
}

.csvb-zip-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 2px;
}

.csvb-zip-label {
    font-size: 14.5px;
    font-weight: 600;
    color: #1e1e1e;
    letter-spacing: -0.1px;
}

.csvb-zip-filename {
    font-size: 12.5px;
    color: #8a94a0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.csvb-zip-download-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #0073aa;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease;
}

.csvb-zip-download-icon svg {
    width: 17px;
    height: 17px;
}

.csvb-zip-download-btn:hover .csvb-zip-download-icon {
    background: #005f8d;
    transform: translateY(2px);
}
