/* ============================================
   Stained Glass Effect Styles
   ============================================ */

.stained-glass-showcase {
    padding: var(--space-lg) 0;
}

.stained-glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.stained-glass-panel {
    position: relative;
    height: 280px;
    overflow: hidden;
    border: 1px solid var(--axis-border);
    background: var(--axis-bg-alt);
}

.stained-glass-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.stained-glass-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.stained-glass-panel__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-sm) var(--space-md);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Animation Toggle */
.stained-glass-controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: var(--axis-bg-alt);
    border: 1px solid var(--axis-border);
}

.stained-glass-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    user-select: none;
}

.stained-glass-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--axis-accent);
}

.stained-glass-toggle__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--axis-text);
}

/* Featured Jumbotron for Stained Glass */
.stained-glass-featured {
    background: var(--axis-bg-alt);
    border: 1px solid var(--axis-border);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
}

.stained-glass-featured__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.stained-glass-featured__content h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--space-md);
}

.stained-glass-featured__content p {
    margin-bottom: var(--space-lg);
    color: var(--axis-text-muted);
}

.stained-glass-featured__preview {
    position: relative;
    height: 250px;
    overflow: hidden;
    border: 1px solid var(--axis-border);
}

.stained-glass-featured__preview canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.stained-glass-featured__cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

@media (max-width: 768px) {
    .stained-glass-featured__inner {
        grid-template-columns: 1fr;
    }

    .stained-glass-featured__preview {
        height: 200px;
    }

    .stained-glass-grid {
        grid-template-columns: 1fr;
    }

    .stained-glass-panel {
        height: 220px;
    }
}
