/* ============================================
   AI Content Creation Showcase
   ============================================ */

/* Hero Grid - Top 3 featured cards */
.showcase-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.showcase-hero-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 28px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.showcase-hero-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border-color: rgba(139, 92, 246, 0.4);
}

.showcase-hero-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0.8;
    transition: height 0.3s ease;
}

.showcase-hero-card:hover .showcase-hero-glow {
    height: 6px;
    opacity: 1;
}

.showcase-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.showcase-hero-badge {
    display: inline-block;
    background: rgba(139,92,246,0.15);
    color: #8b5cf6;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.showcase-hero-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.4;
}

.showcase-hero-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 18px;
}

.showcase-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.showcase-hero-tags span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: 0.2s ease;
}

.showcase-hero-tags span i {
    font-size: 0.7rem;
    opacity: 0.7;
}

.showcase-hero-card:hover .showcase-hero-tags span {
    background: var(--bg-glass-hover);
    border-color: rgba(139,92,246,0.2);
}

/* Features Grid - 6 feature cards (3x2) */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.showcase-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.showcase-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.showcase-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.showcase-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.showcase-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.showcase-tags-sm {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.showcase-tags-sm span {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Extra Tools Row */
.showcase-extra-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

.showcase-extra-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: default;
}

.showcase-extra-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-glow);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.showcase-extra-card i {
    font-size: 1rem;
}

/* Showcase Responsive */
@media (max-width: 1024px) {
    .showcase-hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    .showcase-hero-card {
        padding: 24px 20px;
    }
    .showcase-hero-icon {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }
    .showcase-extra-grid {
        gap: 8px;
    }
    .showcase-extra-card {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .showcase-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .showcase-hero-tags {
        justify-content: center;
    }
    .showcase-tags-sm {
        justify-content: center;
    }
}

/* New icon colors */
.hero-card-icon.pink {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    color: white;
}

.hero-card-icon.cyan {
    background: linear-gradient(135deg, #06b6d4, #0ea5e9);
    color: white;
}

.hero-card-icon.red {
    background: linear-gradient(135deg, #ef4444, #ec4899);
    color: white;
}

/* Hide extra cards (5-8) on desktop - only show first 4 */
.hero-card-extra {
    display: none;
}

/* ============================================
   Mobile Hero - 2-card rotating carousel
   ============================================ */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
    }

    .hero {
        overflow: hidden !important;
    }

    .hero .container {
        overflow: hidden !important;
        max-width: 100% !important;
    }

    .hero-content {
        overflow: hidden !important;
        max-width: 100% !important;
        word-wrap: break-word;
    }

    .hero-title {
        overflow-wrap: break-word;
    }

    .hero-stats {
        max-width: 100%;
        overflow: hidden;
    }

    .hero-visual {
        display: block !important;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        flex: none !important;
        margin: 0;
        padding: 0;
    }

    .hero-illustration {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 8px 16px 14px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .hero-glow {
        display: none;
    }

    /* Show ALL cards (including extras) on mobile */
    .hero-card-extra {
        display: flex;
    }

    .hero-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100%;
        max-width: 100%;
        flex-shrink: 0;
        animation: none !important;
        padding: 12px 16px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.2);
        transition: opacity 0.4s ease, transform 0.4s ease;
        box-sizing: border-box;
    }

    /* Hide cards not in active group */
    .hero-card.hero-card-hidden {
        display: none !important;
    }

    .hero-card-icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        border-radius: 9px;
        font-size: 0.9rem !important;
    }

    .hero-card .title {
        font-size: 0.85rem;
    }

    .hero-card .desc {
        font-size: 0.72rem;
        display: block;
        color: var(--text-muted);
    }
}

/* Carousel fade animation */
@keyframes heroCardFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-card.hero-card-active {
    animation: heroCardFadeIn 0.4s ease forwards;
}

/* ============================================
   Agents / Ambassadors Section
   ============================================ */
.agents-slider-wrapper {
    max-width: 100%;
    overflow: hidden;
}

.agents-slider {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    padding: 20px 0;
}

.agents-track {
    display: flex;
    gap: 28px;
    animation: agentsScroll 20s linear infinite;
    width: max-content;
}

.agents-track:hover {
    animation-play-state: paused;
}

@keyframes agentsScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

[dir="ltr"] .agents-track {
    animation-name: agentsScrollLTR;
}

@keyframes agentsScrollLTR {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Agent Card */
.agent-card {
    flex-shrink: 0;
    width: 300px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899, #0ea5e9);
    border-radius: 20px 20px 0 0;
}

.agent-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(139,92,246,0.2);
    border-color: rgba(139,92,246,0.3);
}

/* Agent Image */
.agent-img-wrapper {
    width: 110px;
    height: 110px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent;
    background: linear-gradient(135deg, #8b5cf6, #ec4899) border-box;
    padding: 3px;
    position: relative;
}

.agent-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Logo-style agent image (not circular crop) */
.agent-img-logo {
    background: white;
    border: 3px solid rgba(139,92,246,0.2);
    padding: 6px;
}

.agent-img-logo img {
    object-fit: contain;
    border-radius: 50%;
    background: white;
}

.agent-placeholder-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(236,72,153,0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--text-muted);
}

/* Agent Info */
.agent-info {
    margin-bottom: 14px;
}

.agent-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
}

.agent-title {
    font-size: 0.92rem;
    color: #8b5cf6;
    font-weight: 600;
    margin: 0 0 4px;
}

.agent-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Agent Badge */
.agent-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(236,72,153,0.12));
    color: #8b5cf6;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

.agent-badge-tag i {
    font-size: 0.85rem;
}

.agent-badge-tag.soon {
    background: linear-gradient(135deg, rgba(14,165,233,0.12), rgba(6,182,212,0.12));
    color: #0ea5e9;
}

/* Agent Link Button */
.agent-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0ea5e9;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 10px;
    background: rgba(14,165,233,0.08);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.agent-link-btn:hover {
    background: rgba(14,165,233,0.18);
    color: #0284c7;
}

.agent-link-yt {
    color: #ef4444;
    background: rgba(239,68,68,0.08);
}

.agent-link-yt:hover {
    background: rgba(239,68,68,0.18);
    color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
    .agent-card {
        width: 250px;
        padding: 22px 18px;
    }

    .agent-img-wrapper {
        width: 90px;
        height: 90px;
    }

    .agent-name {
        font-size: 1.05rem;
    }

    .agent-title {
        font-size: 0.85rem;
    }

    .agent-desc {
        font-size: 0.8rem;
    }

    .agents-track {
        gap: 16px;
        animation-duration: 15s;
    }
}

@media (max-width: 480px) {
    .agent-card {
        width: 220px;
        padding: 18px 14px;
    }

    .agent-img-wrapper {
        width: 80px;
        height: 80px;
        margin-bottom: 12px;
    }

    .agents-track {
        gap: 12px;
        animation-duration: 12s;
    }
}
