/* ===== GENERATORE BIOLINK ===== */

.gen-header {
    padding: 130px 20px 30px;
    text-align: center;
}

.gen-header .eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    border: 1px solid rgba(0, 191, 255, 0.4);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.gen-header h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -1px;
}

.gen-header h1 span {
    color: var(--primary);
    text-shadow: 0 0 22px rgba(0, 191, 255, 0.5);
}

.gen-header p {
    color: var(--text-gray);
    max-width: 560px;
    margin: 14px auto 0;
    line-height: 1.6;
}

/* layout */
.gen-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px 90px;
    align-items: start;
}

/* ===== EDITOR ===== */
.gen-editor {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 28px;
    text-align: left;
    backdrop-filter: blur(8px);
}

.field {
    margin-bottom: 22px;
}

.field > label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    margin-bottom: 10px;
    font-weight: 500;
}

.gen-editor input[type="text"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 13px 15px;
    color: #fff;
    font-size: 0.95rem;
    transition: var(--transition);
}

.gen-editor input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.15);
}

.gen-editor input::placeholder {
    color: #6a6a6a;
}

/* avatar */
.avatar-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-preview {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 1.4rem;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.avatar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-mini {
    background: rgba(0, 191, 255, 0.12);
    color: var(--primary);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-mini:hover {
    background: rgba(0, 191, 255, 0.22);
}

.btn-mini.ghost {
    background: transparent;
    color: var(--text-gray);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-mini.ghost:hover {
    color: #fff;
}

/* swatches */
.swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.swatch:hover {
    transform: scale(1.12);
}

.swatch.selected {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

#accentCustom {
    width: 46px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    padding: 2px;
}

/* themes */
.themes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.theme-chip {
    width: 52px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.theme-chip:hover {
    transform: scale(1.06);
}

.theme-chip.selected {
    border-color: var(--primary);
}

/* links */
.links-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.links-head > label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    font-weight: 500;
}

.link-row {
    display: grid;
    grid-template-columns: 1fr 1.3fr auto;
    gap: 8px;
    margin-bottom: 8px;
}

.link-row button {
    background: rgba(255, 80, 80, 0.12);
    border: 1px solid rgba(255, 80, 80, 0.3);
    color: #ff7070;
    border-radius: 10px;
    width: 40px;
    cursor: pointer;
    transition: var(--transition);
}

.link-row button:hover {
    background: rgba(255, 80, 80, 0.25);
}

/* socials inputs */
.socials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.social-input {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0 12px;
}

.social-input i {
    color: var(--text-gray);
    width: 18px;
    text-align: center;
}

.social-input input {
    border: none !important;
    background: transparent !important;
    padding: 11px 0 !important;
    box-shadow: none !important;
}

/* actions */
.gen-actions {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    min-width: 160px;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: #04222e;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 191, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 191, 255, 0.45);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.gen-hint {
    font-size: 0.78rem;
    color: #6a6a6a;
    margin-top: 14px;
    text-align: center;
}

.gen-hint.flash {
    color: var(--primary);
}

/* ===== PHONE PREVIEW ===== */
.gen-preview-wrap {
    position: sticky;
    top: 110px;
    display: flex;
    justify-content: center;
}

.phone {
    width: 300px;
    height: 600px;
    border-radius: 42px;
    background: #000;
    border: 2px solid rgba(255, 255, 255, 0.12);
    padding: 12px;
    position: relative;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 22px;
    background: #000;
    border-radius: 0 0 16px 16px;
    z-index: 3;
}

.phone-screen {
    --accent: #00bfff;
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow-y: auto;
    padding: 50px 22px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: radial-gradient(120% 80% at 50% 0%, #16263a 0%, #0a0a0a 70%);
    transition: background 0.4s ease;
}

.phone-screen::-webkit-scrollbar {
    width: 0;
}

.bl-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--accent);
    box-shadow: 0 0 22px -4px var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 1.8rem;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.bl-name {
    margin-top: 14px;
    font-size: 1.15rem;
    font-weight: 700;
    word-break: break-word;
}

.bl-bio {
    margin-top: 6px;
    font-size: 0.82rem;
    color: #c8c8c8;
    line-height: 1.4;
}

.bl-links {
    width: 100%;
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.bl-link {
    display: block;
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: transform 0.15s ease, background 0.15s ease;
}

.bl-link:hover {
    background: var(--accent);
    color: #04222e;
    transform: translateY(-2px);
}

.bl-socials {
    margin-top: 22px;
    display: flex;
    gap: 16px;
    justify-content: center;
}

.bl-socials a {
    color: #fff;
    font-size: 1.25rem;
    transition: var(--transition);
}

.bl-socials a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.bl-brand {
    margin-top: auto;
    padding-top: 26px;
    font-size: 0.68rem;
    color: #555;
    letter-spacing: 1px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 880px) {
    .gen-wrap {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .gen-preview-wrap {
        position: static;
        order: -1;
    }
}

@media (max-width: 480px) {
    .socials-grid {
        grid-template-columns: 1fr;
    }

    .link-row {
        grid-template-columns: 1fr 1fr auto;
    }
}
