@import url("basic.css");

/* Gradients */
.gradient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 1rem;
}

.gradient-card {
    height: 140px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.linear-grad {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.radial-grad {
    background: radial-gradient(circle at center, #f59e0b 0%, #dc2626 100%);
}

.conic-grad {
    background: conic-gradient(from 0deg, #ef4444, #f59e0b, #10b981, #3b82f6, #8b5cf6, #ef4444);
}

.gradient-border-card {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    z-index: 1;
}

.gradient-border-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg, #ff007a, #7928ca, #00dfd8);
    border-radius: 11px;
    z-index: -1;
}

/* Shadows */
.shadow-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 1rem;
}

.shadow-box {
    background: #ffffff;
    border-radius: 6px;
    padding: 24px 16px;
    text-align: center;
    font-weight: bold;
    color: #1e293b;
}

.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.shadow-md { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 12px 28px rgba(0,0,0,0.15); }
.shadow-glow { box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4); border: 1px solid #f87171; }

/* Drop-shadow vs Box-shadow */
.shadow-compare-stage {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #f1f5f9;
    padding: 30px;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 20px;
}

.box-shadow-target {
    box-shadow: 10px 10px 15px rgba(0,0,0,0.4);
    background: transparent;
    padding: 8px;
    border-radius: 4px;
}

.drop-shadow-target {
    filter: drop-shadow(10px 10px 10px rgba(0,0,0,0.4));
}

/* Glassmorphism */
.glass-stage {
    position: relative;
    background: linear-gradient(135deg, #0ea5e9 0%, #a855f7 50%, #ec4899 100%);
    min-height: 260px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.glass-bubble {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.glass-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 24px 32px;
    color: white;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    text-align: center;
}

/* Filter playground */
.filter-playground {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: #f8fafc;
    padding: 24px;
    border-radius: 8px;
}

.filter-target {
    transition: filter 0.3s ease;
}

/* Feature 22: mask-image */
.fade-mask-box {
    background: #1e293b;
    color: white;
    padding: 20px;
    border-radius: 6px;
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    max-height: 140px;
    overflow: hidden;
}

/* Feature 30: Oklch Color Space */
.oklch-swatch-grid {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.oklch-swatch {
    flex: 1;
    min-width: 120px;
    height: 70px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

