/* assets/style.css */
.pgpro-gallery {
    background: #000;
    padding: 4px;
    column-count: 4;
    column-gap: 4px;
    box-sizing: border-box;
}

.pgpro-card {
    break-inside: avoid;
    margin-bottom: 4px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.pgpro-image-wrap {
    display: block;
    position: relative;
    line-height: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.pgpro-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.pgpro-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 10;
    pointer-events: none;
    letter-spacing: 0.5px;
}

.pgpro-copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    overflow: hidden;
    height: 36px;
    box-sizing: border-box;
}

.pgpro-copy-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.pgpro-copy-text {
    font-size: 13px;
    font-weight: 600;
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    transition: max-width 0.3s ease, opacity 0.3s ease, margin-left 0.3s ease;
    overflow: hidden;
}

.pgpro-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.4s ease;
    pointer-events: none;
}

.pgpro-view {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 10px 22px;
    border-radius: 30px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
    .pgpro-copy-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.4);
    }

    .pgpro-copy-btn:hover .pgpro-copy-text,
    .pgpro-copy-btn.pgpro-copied .pgpro-copy-text {
        max-width: 120px;
        opacity: 1;
        margin-left: 8px;
    }

    .pgpro-card:hover img {
        transform: scale(1.03);
    }
    
    .pgpro-card:hover .pgpro-overlay {
        background: rgba(0, 0, 0, 0.4);
    }

    .pgpro-card:hover .pgpro-view {
        opacity: 1;
        transform: scale(1);
    }
}

.pgpro-copy-btn.pgpro-copied {
    background: rgba(16, 185, 129, 0.85);
    border-color: rgba(16, 185, 129, 1);
}

.pgpro-editor-card {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 20px;
    padding: 24px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
}

.pgpro-preview-panel {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px;
}

.pgpro-preview {
    width: 100%;
    border-radius: 6px;
    display: block;
}

.pgpro-preview-cat {
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
    color: #0f172a;
}

.pgpro-no-preview {
    border: 2px dashed #cbd5e1;
    padding: 60px 10px;
    text-align: center;
    border-radius: 8px;
    color: #64748b;
    font-weight: 500;
}

@media (max-width: 1199px) {
    .pgpro-gallery {
        column-count: 3;
    }
}

@media (max-width: 782px) {
    .pgpro-editor-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .pgpro-gallery {
        column-count: 2;
    }

    .pgpro-copy-btn .pgpro-copy-text {
        display: none !important;
    }
}