/* ==========================================
   GLASSMORPHISM GENERATOR
   Modern Visual Editor Design
   ========================================== */

:root {
    --primary: #6366f1;
    --primary-light: #e0e7ff;
    --primary-dark: #4f46e5;
    --glass-white: rgba(255, 255, 255, 0.2);
    --glass-dark: rgba(0, 0, 0, 0.3);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.glss-container {
    max-width: 1400px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #1f2937;
    line-height: 1.6;
}

/* Animated Header */
.glss-header {
    position: relative;
    padding: 80px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    text-align: center;
    color: white;
}

.glss-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.glss-blob-1 {
    width: 400px;
    height: 400px;
    background: #f093fb;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.glss-blob-2 {
    width: 300px;
    height: 300px;
    background: #4facfe;
    top: 50%;
    right: -50px;
    animation-delay: -5s;
}

.glss-blob-3 {
    width: 350px;
    height: 350px;
    background: #43e97b;
    bottom: -100px;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.glss-header-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.glss-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.3);
}

.glss-title {
    font-size: 56px;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.glss-subtitle {
    font-size: 20px;
    opacity: 0.9;
    line-height: 1.7;
}

/* Editor Layout */
.glss-editor {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
    padding: 32px;
    max-width: 1200px;
    margin: -40px auto 0;
    position: relative;
    z-index: 2;
}

/* Controls Panel */
.glss-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.glss-panel {
    background: white;
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow);
}

.glss-panel-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #1f2937;
}

.glss-control-group {
    margin-bottom: 20px;
}

.glss-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.glss-value {
    color: var(--primary);
    font-family: monospace;
}

.glss-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
}

.glss-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
}

.glss-color-picker {
    display: flex;
    align-items: center;
    gap: 12px;
}

.glss-color-picker input[type="color"] {
    width: 50px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.glss-color-val {
    font-family: monospace;
    font-size: 14px;
    color: #6b7280;
}

.glss-segmented {
    display: flex;
    gap: 4px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 8px;
}

.glss-seg {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.glss-seg.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Presets */
.glss-presets {
    margin-top: 0;
}

.glss-preset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.glss-preset {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.glss-preset:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

/* Preview Area */
.glss-preview-area {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.glss-preview-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.glss-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: shapeFloat 15s infinite ease-in-out;
}

.glss-shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: 10%;
    left: 10%;
}

.glss-shape-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

.glss-shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    bottom: 10%;
    left: 30%;
    animation-delay: -10s;
}

.glss-shape-4 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    top: 30%;
    right: 30%;
    animation-delay: -7s;
}

@keyframes shapeFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, -20px) rotate(180deg); }
}

.glss-preview-card {
    position: relative;
    z-index: 1;
    width: 320px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.glss-card-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.glss-card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: inherit;
}

.glss-card-text {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
    opacity: 0.9;
}

.glss-card-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.3);
    color: inherit;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.glss-preview-controls {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 12px;
}

.glss-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.glss-btn-primary {
    background: var(--primary);
    color: white;
}

.glss-btn-ghost {
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    color: #374151;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Output Section */
.glss-output-section {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 32px;
}

.glss-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.glss-code-block {
    background: #1f2937;
    color: #e5e7eb;
    padding: 24px;
    border-radius: var(--radius-lg);
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    line-height: 1.8;
    overflow-x: auto;
    white-space: pre-wrap;
}

/* Use Cases */
.glss-usecases {
    padding: 64px 32px;
    background: #f9fafb;
}

.glss-section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 48px;
}

.glss-usecase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.glss-usecase {
    text-align: center;
}

.glss-usecase-preview {
    height: 160px;
    border-radius: var(--radius-xl);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.glss-usecase-nav span {
    display: block;
    width: 60px;
    height: 4px;
    background: rgba(255,255,255,0.5);
    margin: 6px 0;
    border-radius: 2px;
}

.glss-usecase-modal {
    width: 80%;
    padding: 20px;
    background: rgba(255,255,255,0.3);
    border-radius: 12px;
}

.glss-usecase-line {
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 4px;
    margin-bottom: 8px;
}

.glss-usecase-line.short {
    width: 60%;
}

.glss-usecase-sidebar span {
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.5);
    margin: 8px 0;
    border-radius: 2px;
}

.glss-usecase h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.glss-usecase p {
    color: #6b7280;
    font-size: 15px;
}

/* Content */
.glss-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 64px 32px;
}

.glss-content h2 {
    font-size: 30px;
    font-weight: 800;
    margin: 48px 0 24px;
    color: #111827;
}

.glss-content p, .glss-content li {
    font-size: 17px;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 16px;
}

.glss-principles {
    display: grid;
    gap: 24px;
    margin: 32px 0;
}

.glss-principle {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.glss-principle-num {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
}

.glss-principle h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.glss-code-example {
    background: #1f2937;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 24px 0;
}

.glss-code-example h4 {
    color: #9ca3af;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.glss-code-example pre {
    color: #e5e7eb;
    font-family: 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.8;
    overflow-x: auto;
}

.glss-faq {
    margin: 32px 0;
}

.glss-faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 24px 0;
}

.glss-faq-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111827;
}

.glss-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 48px;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-top: 48px;
}

.glss-cta h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 900px) {
    .glss-editor {
        grid-template-columns: 1fr;
    }
    
    .glss-title {
        font-size: 40px;
    }
}