/* ==========================================================================
   LINKS COMPONENT - v2
   ========================================================================== */

/* 1. BASE LINK */
.link {
    color: var(--link-color-default, #777777);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

/* HOVER */
.link:hover {
    color: var(--link-color-hover, #000000);
}

/* 2. VARIANTS */
.link-primary {
    color: var(--link-color-primary, #111111);
}

.link-muted {
    color: var(--color-text-muted, #777777);
}

.link-strong {
    font-weight: 600;
}

/* 3. SIZES */
.link-sm {
    font-size: 14px;
}

.link-md {
    font-size: 16px;
}

.link-lg {
    font-size: 26px; /* Увеличено за видими стрелки в пагинацията */
    line-height: 1;
}

/* 4. INTERACTIONS / EFFECTS */

.link-underline {
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Линията под линка */
.link-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

/* Hover ефект за линията */
.link-underline:hover {
    color: var(--link-color-hover, #000000);
}

.link-underline:hover::after {
    width: 100%;
}

/* 5. TEXT ACCENTS */
.link-accent {
    position: relative;
    display: inline-block;
    margin-right: 0.2em;
}

.link-accent::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    opacity: 0.55;
    transform: scaleX(0.3);
    transform-origin: left center;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hover ефект върху акцента чрез родителя .link */
.link:hover .link-accent::after {
    opacity: 1;
    transform: scaleX(1);
}

/* 6. CONTEXT SPECIFIC */

/* SPECIAL: Back link (стрелка назад) */
.link-back {
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 20px;
}

.link-back:hover {
    transform: translateX(-4px); /* Леко засилен ефект за динамика */
}

.link-editorial {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.link-center {
    display: flex;
    justify-content: center;
    margin: 20px auto;
}