/* embed.css - embed builder - split from index.html */

        /* ── EMBED BUILDER ── */
        .embed-builder-container {
            display: grid; grid-template-columns: 1fr 1fr;
            gap: 28px; max-width: 1100px; margin: 0 auto;
            padding-bottom: 80px;
        }
        @media(max-width:800px) { .embed-builder-container { grid-template-columns: 1fr; } }
        .embed-controls {
            background: var(--bg2); border: 1px solid var(--card-border);
            border-radius: 14px; padding: 28px;
            display: flex; flex-direction: column; gap: 14px;
        }
        .input-group { display: flex; flex-direction: column; gap: 6px; }
        .input-group label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; }
        .input-group input, .input-group textarea {
            background: var(--bg3); border: 1px solid var(--card-border);
            border-radius: 8px; color: var(--text); padding: 9px 12px;
            font-size: 14px; font-family: 'Syne', sans-serif;
            transition: border-color var(--transition); outline: none;
        }
        .input-group input:focus, .input-group textarea:focus { border-color: var(--red); }
        .input-group input[type=color] { height: 38px; cursor: pointer; padding: 4px 8px; }

        /* ── MOBILE COLOR PICKER FIX ── */
        input[type="color"] {
            -webkit-appearance: none;
            appearance: none;
            min-width: 48px !important;
            min-height: 40px !important;
            border-radius: 8px !important;
            border: 2px solid var(--red-border) !important;
            cursor: pointer;
            padding: 2px !important;
            background: transparent;
        }
        input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; border-radius: 6px; }
        input[type="color"]::-webkit-color-swatch { border: none; border-radius: 5px; }
        input[type="color"]::-moz-color-swatch { border: none; border-radius: 5px; }

        .color-picker-wrap {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .color-hex-input {
            width: 90px !important;
            background: var(--bg3) !important;
            border: 1px solid var(--red-border) !important;
            border-radius: 8px !important;
            color: var(--text) !important;
            padding: 6px 10px !important;
            font-size: 13px !important;
            font-family: 'JetBrains Mono', monospace !important;
            text-transform: uppercase;
            outline: none;
        }
        .color-hex-input:focus { border-color: var(--red) !important; }

        @media (max-width: 600px) {
            input[type="color"] {
                min-width: 56px !important;
                min-height: 46px !important;
            }
        }
        .input-group textarea { resize: vertical; min-height: 80px; }
        .embed-preview-wrapper {
            background: var(--bg2); border: 1px solid var(--card-border);
            border-radius: 14px; padding: 28px; height: fit-content;
        }
        .embed-preview-wrapper h4 { font-size: 14px; color: var(--muted); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
        .discord-embed {
            background: #2b2d31; border-radius: 6px;
            overflow: hidden; display: flex; gap: 12px;
            padding: 12px 16px 16px; border: 1px solid rgba(255,255,255,0.06);
        }
        .embed-color-pill { width: 4px; border-radius: 4px; flex-shrink: 0; background: var(--red); }
        .embed-content { flex: 1; min-width: 0; }
        .embed-author { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 13px; color: #dbdee1; }
        .embed-author img { width: 20px; height: 20px; border-radius: 50%; }
        .embed-title { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
        .embed-description { color: #dbdee1; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
        .embed-image { width: 100%; border-radius: 4px; margin-top: 10px; display: none; }
        .embed-footer { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: #949ba4; }
        .embed-footer img { width: 18px; height: 18px; border-radius: 50%; }
        .embed-thumb { width: 60px; height: 60px; border-radius: 4px; object-fit: cover; flex-shrink: 0; display: none; }
