/* WhatsApp DP Gallery Styles */
.wdp-gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Category Filter */
.wdp-category-filter {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #f0f0f0;
}

.wdp-category-filter h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}

.wdp-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.wdp-filter-tab {
    background: #fff;
    border: 2px solid #25d366;
    color: #25d366;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.wdp-filter-tab:hover,
.wdp-filter-tab.active {
    background: #25d366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

/* Gallery Grid - Masonry Layout */
.wdp-gallery-grid {
    column-count: 4;
    column-gap: 20px;
    margin-top: 30px;
}

.wdp-gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.wdp-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.wdp-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

/* Image Overlay */
.wdp-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.wdp-gallery-item:hover .wdp-image-overlay {
    opacity: 1;
}

/* Item Actions */
.wdp-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.wdp-download-btn,
.wdp-favorite-btn {
    background: #25d366;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wdp-download-btn:hover {
    background: #128c7e;
    transform: scale(1.05);
}

.wdp-favorite-btn {
    background: transparent;
    border: 2px solid #fff;
    min-width: 36px;
    justify-content: center;
}

.wdp-favorite-btn:hover,
.wdp-favorite-btn.favorited {
    background: #e74c3c;
    border-color: #e74c3c;
}

/* Item Meta */
.wdp-item-meta {
    padding: 15px;
    background: #fff;
}

.wdp-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.wdp-item-category {
    font-size: 12px;
    color: #25d366;
    background: #f0f9f4;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 8px;
}

.wdp-item-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #666;
}

/* Loading Animation */
.wdp-loading {
    text-align: center;
    padding: 40px;
}

.wdp-loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #25d366;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Load More Button */
.wdp-load-more {
    text-align: center;
    margin-top: 40px;
}

.wdp-load-more-btn {
    background: #25d366;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wdp-load-more-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .wdp-gallery-grid {
        column-count: 3;
        column-gap: 15px;
    }
    
    .wdp-gallery-container {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .wdp-gallery-grid {
        column-count: 2;
        column-gap: 12px;
    }
    
    .wdp-filter-tabs {
        gap: 8px;
    }
    
    .wdp-filter-tab {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .wdp-gallery-item {
        margin-bottom: 15px;
    }
    
    .wdp-item-meta {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .wdp-gallery-grid {
        column-count: 1;
        column-gap: 0;
    }
    
    .wdp-gallery-container {
        padding: 10px;
    }
    
    .wdp-category-filter {
        padding: 15px 0;
    }
    
    .wdp-filter-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .wdp-filter-tab {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}

/* Search Box */
.wdp-search-box {
    text-align: center;
    margin-bottom: 20px;
}

.wdp-search-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.wdp-search-input:focus {
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

/* No Results */
.wdp-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.wdp-no-results-icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.wdp-no-results h3 {
    margin-bottom: 10px;
    color: #333;
}

/* Lazy Loading Placeholder */
.wdp-lazy-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    min-height: 200px;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Download Progress */
.wdp-download-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 8px;
    z-index: 9999;
    text-align: center;
}

/* Success/Error Messages */
.wdp-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

.wdp-message.success {
    background: #25d366;
    color: white;
}

.wdp-message.error {
    background: #e74c3c;
    color: white;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Single DP Post Page */
.single-whatsapp_dp .wdp-single-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.wdp-single-image {
    text-align: center;
    margin-bottom: 30px;
}

.wdp-single-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.wdp-single-meta {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wdp-single-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.wdp-single-download-btn {
    background: #25d366;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wdp-single-download-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}
