/* Template Showcase Styles */
.template-showcase {
    background: #1a1a1a;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Showcase Header */
.showcase-header {
    background: #2a2a2a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
}

.showcase-tabs {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.showcase-tab {
    padding: 0.875rem 1.75rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.showcase-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.showcase-tab.active {
    color: #ffffff;
    background: rgba(53, 67, 240, 0.2);
    border-color: #3543F0;
    box-shadow: 0 0 20px rgba(53, 67, 240, 0.3);
}

.tab-emoji {
    font-size: 1.25rem;
}

/* Template Display Area */
.template-display {
    position: relative;
    background: #0f0f0f;
    min-height: 600px;
    padding: 3rem;
}

/* Before/After Split View */
.split-view {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    height: 100%;
    align-items: center;
}

/* Chaos Side */
.chaos-side {
    text-align: center;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s ease forwards;
}

.chaos-visual {
    margin-bottom: 2rem;
}

.chaos-icon {
    font-size: 6rem;
    margin-bottom: 1rem;
    filter: grayscale(0.5);
    opacity: 0.7;
}

.chaos-description h3 {
    font-size: 1.5rem;
    color: #ef4444;
    margin-bottom: 1rem;
    font-weight: 700;
}

.chaos-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chaos-points li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.chaos-points .x-icon {
    color: #ef4444;
    font-size: 1.25rem;
}

/* Transform Divider */
.transform-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.transform-arrow {
    width: 80px;
    height: 80px;
    background: #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 3px solid #3543F0;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.transform-arrow svg {
    width: 32px;
    height: 32px;
    color: #3543F0;
}

.transform-text {
    color: #3543F0;
    font-weight: 700;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Template Side */
.template-side {
    text-align: center;
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.8s ease forwards;
    animation-delay: 0.3s;
}

.template-preview {
    background: #1a1a1a;
    border: 2px solid rgba(53, 67, 240, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(53, 67, 240, 0.2);
    transition: all 0.3s ease;
}

.template-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(53, 67, 240, 0.3);
    border-color: #3543F0;
}

.template-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #3543F0;
}

.template-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.template-tagline {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.template-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.template-features li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.check-icon {
    color: #10b981;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Feature Bar */
.showcase-features {
    background: #1a1a1a;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.features-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.feature-stat {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: var(--delay, 0s);
}

.feature-stat:nth-child(1) { --delay: 0.8s; }
.feature-stat:nth-child(2) { --delay: 0.9s; }
.feature-stat:nth-child(3) { --delay: 1.0s; }
.feature-stat:nth-child(4) { --delay: 1.1s; }

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3543F0;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .split-view {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .transform-divider {
        transform: rotate(90deg);
        margin: 2rem 0;
    }
    
    .chaos-side,
    .template-side {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .template-display {
        padding: 2rem 1.5rem;
    }
    
    .showcase-tabs {
        gap: 0.5rem;
    }
    
    .showcase-tab {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .chaos-icon {
        font-size: 4rem;
    }
    
    .template-preview {
        padding: 1.5rem;
    }
    
    .features-row {
        gap: 2rem;
    }
    
    .feature-stat {
        min-width: 120px;
    }
}