/* ============================================================
   BWMEX Links — Estilos principales
   ============================================================ */

/* ── Variables ───────────────────────────────────────────── */
:root {
    --brand-primary:  #4f46e5;
    --brand-dark:     #1e1b4b;
    --hero-gradient:  linear-gradient(135deg, #1e1b4b 0%, #4f46e5 60%, #7c3aed 100%);
}

/* ── Base ────────────────────────────────────────────────── */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f8f9fa;
    color: #212529;
}

/* ── Hero section ────────────────────────────────────────── */
.hero-section {
    background: var(--hero-gradient);
    min-height: 420px;
    display: flex;
    align-items: center;
}

/* ── Step numbers ────────────────────────────────────────── */
.step-num {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ── Template cards ──────────────────────────────────────── */
.template-card {
    display: block;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 6px;
    transition: border-color .2s, box-shadow .2s;
}

.template-card:hover {
    border-color: var(--brand-primary);
}

.template-card.selected {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .25);
}

.template-placeholder {
    background: #f0f0f0;
}

/* ── Link items ──────────────────────────────────────────── */
.link-item {
    transition: box-shadow .15s;
}

.link-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.1) !important;
}

.drag-handle:hover {
    color: var(--brand-primary) !important;
}

/* ── Feature icons ───────────────────────────────────────── */
.feature-icon i {
    transition: transform .2s;
}

.card:hover .feature-icon i {
    transform: scale(1.15);
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar-brand {
    font-size: 1.2rem;
    letter-spacing: -.5px;
}

/* ── Color picker ────────────────────────────────────────── */
.form-control-color {
    width: 48px;
    padding: 2px;
    cursor: pointer;
}

/* ── Responsive table ────────────────────────────────────── */
@media (max-width: 768px) {
    .table-responsive {
        font-size: .85rem;
    }
}

/* ── Profile photo on pages ──────────────────────────────── */
.profile-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.4);
}

/* ── Link button on public pages ─────────────────────────── */
.bwmex-link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .75rem 1.25rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity .15s, transform .1s;
    margin-bottom: .6rem;
    border: none;
    cursor: pointer;
}

.bwmex-link-btn:hover {
    opacity: .88;
    transform: translateY(-1px);
}

.bwmex-link-btn:active {
    transform: translateY(0);
}

.bwmex-copy-btn {
    background: transparent;
    border: none;
    padding: 0 0 0 .75rem;
    cursor: pointer;
    opacity: .7;
    transition: opacity .15s;
    flex-shrink: 0;
}

.bwmex-copy-btn:hover {
    opacity: 1;
}

/* ── Toast feedback ──────────────────────────────────────── */
.copy-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #212529;
    color: #fff;
    padding: .5rem 1.5rem;
    border-radius: 50px;
    font-size: .9rem;
    z-index: 9999;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}

.copy-toast.show {
    opacity: 1;
}
