/* Marketing Insights Deck Styles */
.marketing-insights {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #0f0f2f 0%, #1a0a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.marketing-insights::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(247, 183, 49, 0.15) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.insights-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.insights-content h2 {
    text-align: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #F7B731, #FF6B35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.insights-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Category Filter Buttons */
.deck-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, #FF6B35, #F7B731);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

/* Card Wrapper */
.insight-card-wrapper {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    margin-bottom: 3rem;
}

/* Card Container */
.insights-deck-card {
    width: 100%;
    max-width: 600px;
    height: 450px;
    position: relative;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-inner.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card-front {
    border-top: 4px solid var(--card-color, #FF6B35);
}

.card-back {
    transform: rotateY(180deg);
    border-top: 4px solid var(--card-color, #FF6B35);
    background: rgba(255, 255, 255, 0.08);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 5px 15px rgba(255, 107, 53, 0.3));
}

.card-title {
    color: var(--text);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.card-question {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.card-answer {
    color: var(--text);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.flip-hint {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: auto;
    opacity: 0.7;
    animation: pulse 2s ease-in-out infinite;
}

.favorite-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.favorite-btn.active {
    background: rgba(255, 107, 53, 0.3);
    border-color: #FF6B35;
}

/* Navigation */
.deck-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.deck-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deck-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent);
    transform: scale(1.1);
}

.card-progress {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .marketing-insights {
        padding: 4rem 1.5rem;
    }

    .insights-content h2 {
        font-size: 2rem;
    }

    .deck-controls {
        gap: 0.5rem;
    }

    .category-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .insights-deck-card {
        height: 400px;
    }

    .card-front,
    .card-back {
        padding: 2rem 1.5rem;
    }

    .card-icon {
        font-size: 3rem;
    }

    .card-title {
        font-size: 1.4rem;
    }

    .card-question,
    .card-answer {
        font-size: 1rem;
    }

    .deck-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}
