/* Hyperlink Generator Plugin Styles */
.hlg-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #1a1a2e;
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 0 24px;
    box-sizing: border-box;
}

.hlg-wrap *,
.hlg-wrap *::before,
.hlg-wrap *::after {
    box-sizing: border-box;
}

/* Layout */
.hlg-columns {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.hlg-left {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hlg-right {
    flex: 1 1 45%;
    background: #f8f9fc;
    border: 1px solid #e2e6f0;
    border-radius: 10px;
    padding: 18px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 24px;
}

.hlg-two-col {
    display: flex;
    gap: 18px;
}

.hlg-two-col > .hlg-section {
    flex: 1;
}

/* Section */
.hlg-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Labels */
.hlg-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5a6070;
    margin: 0;
}

.hlg-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
    color: #9ba3b2;
}

.hlg-count {
    font-size: 11px;
    color: #9ba3b2;
    margin-left: auto;
    align-self: center;
}

.hlg-section:first-child {
    position: relative;
}

.hlg-section > .hlg-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Inputs */
.hlg-textarea {
    width: 100%;
    border: 1px solid #d5dae6;
    border-radius: 8px;
    padding: 12px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 13px;
    color: #1a1a2e;
    background: #fff;
    resize: vertical;
    line-height: 1.6;
    transition: border-color 0.15s;
    outline: none;
}

.hlg-textarea:focus {
    border-color: #3b5bdb;
    box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.1);
}

.hlg-input {
    width: 100%;
    border: 1px solid #d5dae6;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    color: #1a1a2e;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}

.hlg-input:focus {
    border-color: #3b5bdb;
    box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.1);
}

.hlg-select {
    width: 100%;
    border: 1px solid #d5dae6;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    color: #1a1a2e;
    background: #fff;
    outline: none;
    cursor: pointer;
    appearance: auto;
    transition: border-color 0.15s;
}

.hlg-select:focus {
    border-color: #3b5bdb;
    box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.1);
}

/* Radio buttons */
.hlg-radio {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #2d3348;
    cursor: pointer;
    line-height: 1.4;
}

.hlg-radio input[type="radio"] {
    accent-color: #3b5bdb;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
}

/* Buttons */
.hlg-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
}

.hlg-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.15s, opacity 0.15s;
    line-height: 1;
}

.hlg-btn-primary {
    background: #3b5bdb;
    color: #fff;
}

.hlg-btn-primary:hover {
    background: #2f4bbf;
}

.hlg-btn-ghost {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d5dae6;
}

.hlg-btn-ghost:hover {
    background: #f3f4f6;
}

/* Output area */
.hlg-output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hlg-output-actions {
    display: flex;
    gap: 8px;
}

.hlg-icon-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border: 1px solid #d5dae6;
    border-radius: 6px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    line-height: 1;
}

.hlg-icon-btn:hover:not(:disabled) {
    background: #f0f4ff;
    border-color: #3b5bdb;
    color: #3b5bdb;
}

.hlg-icon-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.hlg-icon-btn.hlg-copied {
    border-color: #16a34a;
    color: #16a34a;
    background: #f0fdf4;
}

.hlg-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #9ba3b2;
    text-align: center;
    padding: 40px 20px;
}

.hlg-empty svg {
    opacity: 0.4;
}

.hlg-empty p {
    font-size: 13px;
    line-height: 1.6;
    max-width: 220px;
    margin: 0;
}

.hlg-output {
    flex: 1;
    width: 100%;
    border: 1px solid #d5dae6;
    border-radius: 8px;
    padding: 12px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 12px;
    color: #1a1a2e;
    background: #fff;
    resize: vertical;
    line-height: 1.7;
    min-height: 280px;
    outline: none;
}

.hlg-stats {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9ba3b2;
    padding-top: 4px;
}

/* Responsive */
@media (max-width: 700px) {
    .hlg-columns {
        flex-direction: column;
    }

    .hlg-right {
        position: static;
    }

    .hlg-two-col {
        flex-direction: column;
    }
}
