/* Enhanced Showcase Section Styles */

.ecosystem-section {
    position: relative;
    padding: var(--spacing-5xl) 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.3) 0%, rgba(31, 41, 55, 0.2) 100%);
    z-index: 10;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.ecosystem-card {
    position: relative;
    background: var(--color-bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--animation-normal);
    animation: slideInUp 0.8s ease both;
}

.ecosystem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity var(--animation-normal);
    pointer-events: none;
}

.ecosystem-card:hover {
    transform: translateY(-12px);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-xl);
}

.ecosystem-card:hover::before {
    opacity: 1;
}

/* Individual card themes */
.discord-card {
    animation-delay: 0.2s;
}

.discord-card::before {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, transparent 100%);
}

.discord-card:hover {
    box-shadow: 0 25px 50px rgba(88, 101, 242, 0.3);
}

.chrome-card {
    animation-delay: 0.4s;
}

.chrome-card::before {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1) 0%, transparent 100%);
}

.chrome-card:hover {
    box-shadow: 0 25px 50px rgba(66, 133, 244, 0.3);
}

.api-card {
    animation-delay: 0.6s;
}

.api-card::before {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, transparent 100%);
}

.api-card:hover {
    box-shadow: 0 25px 50px rgba(34, 197, 94, 0.3);
}

/* Card Background */
.card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-size: 400px 400px;
    background-repeat: no-repeat;
    background-position: top right;
    pointer-events: none;
}

.discord-card .card-background {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%235865F2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.632.874-1.297 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z'/%3E%3C/svg%3E");
}

.chrome-card .card-background {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%234285F4' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm5.568 7.568A6.033 6.033 0 0 1 18 12c0 1.657-.672 3.157-1.757 4.243A6.033 6.033 0 0 1 12 18a6.033 6.033 0 0 1-4.243-1.757A6.033 6.033 0 0 1 6 12c0-1.657.672-3.157 1.757-4.243A6.033 6.033 0 0 1 12 6c1.105 0 2.137.298 3.025.818l-1.414 1.414A3.99 3.99 0 0 0 12 8a4 4 0 1 0 4 4c0-.553-.113-1.08-.318-1.561l1.886-1.871z'/%3E%3C/svg%3E");
}

.api-card .card-background {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%2322C55E' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E");
}

/* Card Content */
.card-content {
    position: relative;
    padding: var(--spacing-2xl);
    z-index: 2;
}

.ecosystem-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-lg);
    transition: all var(--animation-normal);
}

.discord-card .ecosystem-icon {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: white;
}

.chrome-card .ecosystem-icon {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 50%, #FBBC05 75%, #EA4335 100%);
    color: white;
}

.api-card .ecosystem-icon {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: white;
}

.ecosystem-card:hover .ecosystem-icon {
    transform: scale(1.1) rotate(5deg);
}

.ecosystem-title {
    font-family: var(--font-family-display);
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 var(--spacing-sm);
    line-height: 1.3;
}

.ecosystem-stats {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    opacity: 0.8;
}

.discord-card .ecosystem-stats {
    color: #5865F2;
}

.chrome-card .ecosystem-stats {
    color: #4285F4;
}

.api-card .ecosystem-stats {
    color: #22C55E;
}

.ecosystem-description {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0 0 var(--spacing-xl);
}

.ecosystem-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-family: var(--font-family-primary);
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--animation-normal);
    text-decoration: none;
    overflow: hidden;
}

.ecosystem-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity var(--animation-normal);
}

.discord-card .ecosystem-btn::before {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
}

.chrome-card .ecosystem-btn::before {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
}

.api-card .ecosystem-btn::before {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
}

.ecosystem-btn:hover::before {
    opacity: 1;
}

.ecosystem-btn:hover {
    border-color: transparent;
    transform: translateY(-2px);
}

.ecosystem-btn span,
.ecosystem-btn i {
    position: relative;
    z-index: 1;
}

.ecosystem-btn i {
    transition: transform var(--animation-normal);
}

.ecosystem-btn:hover i {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ecosystem-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .ecosystem-section {
        padding: var(--spacing-4xl) 0;
    }
    
    .ecosystem-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: 0 var(--spacing-lg);
    }
    
    .card-content {
        padding: var(--spacing-xl);
    }
    
    .ecosystem-icon {
        width: 56px;
        height: 56px;
        font-size: var(--font-size-2xl);
    }
    
    .ecosystem-title {
        font-size: var(--font-size-lg);
    }
    
    .ecosystem-description {
        font-size: var(--font-size-sm);
    }
}

@media (max-width: 640px) {
    .ecosystem-section {
        padding: var(--spacing-3xl) 0;
    }
    
    .card-content {
        padding: var(--spacing-lg);
    }
    
    .ecosystem-icon {
        width: 48px;
        height: 48px;
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-md);
    }
}