/* Reset and Base Styles */
.vslg-logo-grid-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --grid-gap: 10px;
}

/* Logo Grid - FULL IMAGES NO BORDERS */
.vslg-logo-grid {
    display: grid;
    grid-gap: var(--grid-gap);
    margin-bottom: 40px;
}

/* Mobile: 2 logos per line */
@media (max-width: 767px) {
    .vslg-logo-grid:not(.vslg-cols-1):not(.vslg-cols-2):not(.vslg-cols-3):not(.vslg-cols-4):not(.vslg-cols-5):not(.vslg-cols-6) {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet: 3-4 logos per line */
@media (min-width: 768px) and (max-width: 1023px) {
    .vslg-logo-grid:not(.vslg-cols-1):not(.vslg-cols-2):not(.vslg-cols-3):not(.vslg-cols-4):not(.vslg-cols-5):not(.vslg-cols-6) {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop: 5-6 logos per line */
@media (min-width: 1024px) {
    .vslg-logo-grid:not(.vslg-cols-1):not(.vslg-cols-2):not(.vslg-cols-3):not(.vslg-cols-4):not(.vslg-cols-5):not(.vslg-cols-6) {
        grid-template-columns: repeat(5, 1fr);
    }
    
    @media (min-width: 1400px) {
        .vslg-logo-grid:not(.vslg-cols-1):not(.vslg-cols-2):not(.vslg-cols-3):not(.vslg-cols-4):not(.vslg-cols-5):not(.vslg-cols-6) {
            grid-template-columns: repeat(6, 1fr);
        }
    }
}

/* Manual column classes */
.vslg-cols-1 { grid-template-columns: repeat(1, 1fr); }
.vslg-cols-2 { grid-template-columns: repeat(2, 1fr); }
.vslg-cols-3 { grid-template-columns: repeat(3, 1fr); }
.vslg-cols-4 { grid-template-columns: repeat(4, 1fr); }
.vslg-cols-5 { grid-template-columns: repeat(5, 1fr); }
.vslg-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* Logo Item - FULL WIDTH IMAGES */
.vslg-logo-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.vslg-logo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.vslg-logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* FULL WIDTH IMAGE CONTAINER - NO SPACE ON SIDES */
.vslg-logo-image-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    padding: 0;
    margin: 0;
}

/* Different image styles */
.vslg-logo-item.vslg-image-full .vslg-logo-image-wrapper {
    background: transparent;
}

.vslg-logo-item.vslg-image-contain .vslg-logo-image-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
}

.vslg-logo-item.vslg-image-original .vslg-logo-image-wrapper {
    background: #f8f9fa;
}

.vslg-logo-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Makes it square */
    position: relative;
}

.vslg-logo-item.vslg-image-original .vslg-logo-image {
    height: auto;
    padding-bottom: 0;
}

.vslg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.vslg-logo-item.vslg-image-full .vslg-img {
    object-fit: cover;
}

.vslg-logo-item.vslg-image-contain .vslg-img {
    object-fit: contain;
    padding: 10px;
}

.vslg-logo-item.vslg-image-original .vslg-img {
    position: static;
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

.vslg-logo-item:hover .vslg-img {
    transform: scale(1.05);
}

.vslg-no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
}

.vslg-no-image .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    color: #aaa;
}

.vslg-no-image span {
    font-size: 13px;
}

.vslg-featured-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3);
    z-index: 2;
}

.vslg-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(66, 133, 244, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.vslg-logo-item:hover .vslg-hover-overlay {
    opacity: 1;
}

.vslg-view-text {
    color: white;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

/* Logo Info - MINIMAL */
.vslg-logo-info {
    padding: 15px 12px;
    text-align: center;
    background: white;
    border-top: 1px solid #f0f0f0;
}

.vslg-logo-title {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.vslg-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4285f4;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border: 1.5px solid #4285f4;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: white;
}

.vslg-btn-icon {
    font-weight: bold;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.vslg-logo-item:hover .vslg-view-btn {
    background: #4285f4;
    color: white;
}

.vslg-logo-item:hover .vslg-btn-icon {
    transform: translateX(3px);
}

/* Load More Button */
.vslg-load-more-container {
    text-align: center;
    margin: 40px 0 20px;
}

.vslg-load-more-btn {
    background: linear-gradient(135deg, #4285f4 0%, #3367d6 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(66, 133, 244, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vslg-load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
    background: linear-gradient(135deg, #3367d6 0%, #2a56c4 100%);
}

.vslg-load-more-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.vslg-load-more-icon {
    font-size: 16px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vslg-no-logos {
    text-align: center;
    padding: 60px 20px;
}

.vslg-empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.vslg-empty-icon {
    font-size: 50px;
    display: block;
    margin-bottom: 15px;
    opacity: 0.5;
}

.vslg-empty-state h3 {
    margin: 0 0 10px 0;
    color: #555;
    font-size: 20px;
}

.vslg-empty-state p {
    color: #888;
    margin: 0;
}

/* SINGLE PAGE - MULTIPLE PROMPTS */
.single-vslg_logo .site-content {
    background: #f8f9fa;
    padding: 0;
}

.vslg-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
    min-height: 80vh;
}

.vslg-single-header {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 30px;
}

.vslg-single-image {
    flex: 0 0 250px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
}

.vslg-single-image img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 6px;
}

.vslg-single-header-content {
    flex: 1;
}

.vslg-single-title {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.vslg-single-meta {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vslg-single-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* MULTIPLE PROMPT BOXES */
.vslg-prompts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.vslg-prompt-box {
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.vslg-prompt-header {
    background: #4285f4;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vslg-prompt-header h4 {
    margin: 0;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.vslg-prompt-content {
    padding: 20px;
}

.vslg-prompt-text {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 200px;
    overflow-y: auto;
    position: relative;
}

.vslg-prompt-text:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, white, transparent);
    z-index: 1;
}

/* MINI COPY BUTTON */
.vslg-copy-button-mini {
    background: linear-gradient(135deg, #34a853 0%, #2e8b47 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(52, 168, 83, 0.2);
    height: 32px;
}

.vslg-copy-button-mini:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(52, 168, 83, 0.3);
    background: linear-gradient(135deg, #2e8b47 0%, #2a7c3f 100%);
}

.vslg-copy-button-mini.copied {
    background: linear-gradient(135deg, #4285f4 0%, #3367d6 100%);
    padding: 8px 12px;
}

.vslg-copy-button-mini .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.vslg-copy-message {
    margin-left: 10px;
    font-size: 11px;
    color: #34a853;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(52, 168, 83, 0.1);
    padding: 3px 8px;
    border-radius: 3px;
}

.vslg-copy-message.show {
    opacity: 1;
}

/* Description Section */
.vslg-description-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}

.vslg-description-section h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.vslg-description-content {
    line-height: 1.6;
    color: #555;
    font-size: 14px;
}

.vslg-description-content p {
    margin-bottom: 12px;
}

.vslg-back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4285f4;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    padding: 8px 16px;
    border: 1px solid #4285f4;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: white;
    margin-top: 25px;
}

.vslg-back-button:hover {
    background: #4285f4;
    color: white;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .vslg-single-header {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        gap: 25px;
    }
    
    .vslg-single-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .vslg-single-content {
        padding: 25px;
    }
}

@media (max-width: 767px) {
    .vslg-logo-grid {
        grid-gap: 8px;
    }
    
    .vslg-logo-info {
        padding: 12px 10px;
    }
    
    .vslg-logo-title {
        font-size: 13px;
        height: 36px;
    }
    
    .vslg-view-btn {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .vslg-single-container {
        padding: 20px 10px;
    }
    
    .vslg-single-header,
    .vslg-single-content {
        padding: 20px;
    }
    
    .vslg-single-title {
        font-size: 20px;
    }
    
    .vslg-prompt-content {
        padding: 15px;
    }
    
    .vslg-prompt-text {
        padding: 12px;
        font-size: 12px;
    }
    
    .vslg-copy-button-mini {
        padding: 6px 12px;
        font-size: 11px;
    }
}