/**
 * Puddingify Featured Showcase Styles - Enhanced Version
 * For Creator and Corporate showcase sections on homepage
 * 
 * @version 2.0.0
 * Features: Background images, social links, blockchain badges, verified trust
 */

/* ============================================================================
   SHOWCASE CONTAINER
   ============================================================================ */

.featured-creators-showcase,
.featured-corporates-showcase {
    padding: 20px 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .showcase-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   SHOWCASE CARD - BASE STYLES
   ============================================================================ */

.showcase-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    min-height: 340px;
    background-size: cover;
    background-position: center;
}

.showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Background overlay */
.showcase-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.75) 100%);
    z-index: 1;
}

.showcase-card > *:not(.showcase-card-overlay) {
    position: relative;
    z-index: 2;
}

/* White text for cards with background */
.showcase-card[style*="background-image"] .showcase-name,
.showcase-card[style*="background-image"] .showcase-company,
.showcase-card[style*="background-image"] .showcase-tagline,
.showcase-card[style*="background-image"] .showcase-meta,
.showcase-card[style*="background-image"] .showcase-location,
.showcase-card[style*="background-image"] .showcase-industry,
.showcase-card[style*="background-image"] .showcase-role {
    color: white !important;
}

/* ============================================================================
   HEADER (Corporate - Logo + Badge)
   ============================================================================ */

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 20px 20px 0;
}

.showcase-verified-badge {
    width: 50px;
    height: 50px;
}

.showcase-verified-badge img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* ============================================================================
   CREATOR CARD STYLES
   ============================================================================ */

.creator-card .showcase-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 25px auto 15px;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: #f3f4f6;
}

.creator-card:hover .showcase-avatar {
    border-color: #6366f1;
}

.creator-card .showcase-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================================
   CORPORATE CARD STYLES
   ============================================================================ */

.corporate-card .showcase-logo {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.corporate-card .showcase-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.corporate-card .logo-placeholder {
    font-size: 24px;
    font-weight: 700;
    color: #6b7280;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.corporate-card.blockchain-org {
    border-color: #10b981;
    border-width: 2px;
}

/* ============================================================================
   SHOWCASE INFO
   ============================================================================ */

.showcase-info {
    flex: 1;
    width: 100%;
    padding: 15px 20px;
}

.showcase-name {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.blockchain-badge {
    font-size: 14px;
}

.showcase-company {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 8px;
    font-weight: 500;
}

.showcase-meta {
    font-size: 13px;
    color: #9ca3af;
    margin: 0 0 8px;
}

.showcase-industry {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 6px;
}

.showcase-tagline {
    font-size: 13px;
    color: #6b7280;
    margin: 8px 0;
    line-height: 1.5;
    font-style: italic;
}

.showcase-location {
    font-size: 12px;
    color: #9ca3af;
    margin: 8px 0 0;
}

/* ============================================================================
   BLOCKCHAIN TYPE BADGE
   ============================================================================ */

.showcase-blockchain-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    margin: 8px 0;
}

.showcase-card[style*="background-image"] .showcase-blockchain-type {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ============================================================================
   SOCIAL LINK
   ============================================================================ */

.showcase-social {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 12px;
    color: #374151;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.2s ease;
}

.showcase-social:hover {
    background: #e5e7eb;
    transform: scale(1.05);
}

.showcase-social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.showcase-card[style*="background-image"] .showcase-social {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ============================================================================
   VIEW PROFILE BUTTON
   ============================================================================ */

.showcase-link {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.showcase-link:hover {
    filter: brightness(1.1);
}

.corporate-card .showcase-link {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d47a1 100%);
}

.corporate-card.blockchain-org .showcase-link {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* ============================================================================
   EMPTY STATE
   ============================================================================ */

.featured-creators-showcase.empty,
.featured-corporates-showcase.empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.showcase-card {
    animation: fadeInUp 0.5s ease forwards;
}

.showcase-card:nth-child(1) { animation-delay: 0.05s; }
.showcase-card:nth-child(2) { animation-delay: 0.1s; }
.showcase-card:nth-child(3) { animation-delay: 0.15s; }
.showcase-card:nth-child(4) { animation-delay: 0.2s; }

/* ============================================================================
   DIVI INTEGRATION
   ============================================================================ */

.et_pb_column .featured-creators-showcase,
.et_pb_column .featured-corporates-showcase {
    width: 100%;
}

.et_pb_row .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 980px) {
    .et_pb_row .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .et_pb_row .showcase-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .showcase-card {
        min-height: 300px;
    }
    
    .creator-card .showcase-avatar {
        width: 75px;
        height: 75px;
    }
    
    .showcase-name {
        font-size: 16px;
    }
}