/* Unified editorial link cards. Brand colors are intentionally suppressed so
   every link reads as part of the same AnotherSuper visual system. */

.rounded-avatar {
    border-radius: 4px;
}

.button,
button {
    position: relative;
    display: flex !important;
    width: 100% !important;
    max-width: 560px;
    min-height: 62px;
    height: auto !important;
    margin: 0 auto 13px;
    padding: 16px 54px 16px 19px !important;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    color: #f4f1ed !important;
    background: linear-gradient(105deg, rgba(30, 30, 31, 0.46), rgba(18, 18, 19, 0.38)) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 3px !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.035);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 16px !important;
    font-weight: 720 !important;
    line-height: 1.28 !important;
    letter-spacing: 0.005em !important;
    text-align: left !important;
    text-decoration: none !important;
    white-space: normal !important;
    cursor: pointer;
    filter: none !important;
    transition: transform 170ms ease, border-color 170ms ease, background-color 170ms ease, box-shadow 170ms ease !important;
}

.button[class*="button-"],
button[class*="button-"] {
    color: #f4f1ed !important;
    background-color: rgba(22, 22, 23, 0.42) !important;
    background-image: linear-gradient(105deg, rgba(30, 30, 31, 0.46), rgba(18, 18, 19, 0.38)) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    filter: none !important;
}

.button::before,
button::before {
    content: "";
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: -1px;
    width: 5px;
    background: linear-gradient(180deg, #ffc07b, #e4934e 58%, #a95a2e);
    box-shadow: 0 0 18px rgba(228, 147, 78, 0.24);
    transition: width 170ms ease, box-shadow 170ms ease;
}

.button::after,
button::after {
    content: "↗";
    position: absolute;
    top: 50%;
    right: 19px;
    color: #b9b3aa;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    transform: translateY(-50%);
    transition: color 170ms ease, transform 170ms ease;
}

.button:hover,
.button:focus,
button:hover,
button:focus {
    color: #ffffff !important;
    background-color: rgba(33, 30, 28, 0.50) !important;
    background-image: linear-gradient(105deg, rgba(38, 33, 29, 0.50), rgba(20, 20, 21, 0.46)) !important;
    border-color: rgba(255, 192, 123, 0.58) !important;
    box-shadow: 0 15px 34px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(228, 147, 78, 0.09) !important;
    filter: none !important;
    transform: translateX(4px) !important;
}

.button:hover::before,
.button:focus::before,
button:hover::before,
button:focus::before {
    width: 7px;
    box-shadow: 0 0 25px rgba(228, 147, 78, 0.43);
}

.button:hover::after,
.button:focus::after,
button:hover::after,
button:focus::after {
    color: #ffc07b;
    transform: translate(2px, -52%);
}

.icon {
    flex: 0 0 auto;
    width: 23px !important;
    height: 23px !important;
    margin-right: 12px;
    padding: 0 !important;
    object-fit: contain;
    opacity: 0.86;
    filter: grayscale(1) brightness(0) invert(1);
    transition: opacity 170ms ease, filter 170ms ease;
}

.button:hover .icon,
.button:focus .icon {
    opacity: 1;
    filter: grayscale(1) sepia(0.35) saturate(1.5) brightness(1.14);
}

/* Preserve the real artwork for the three multi-tone icons seen on this page.
   A small neutral tile keeps dark favicon details visible without flattening the
   entire image into a blank white square or circle. */
a.button[href*="slop.tools"] .icon,
a.button[href*="reddit.com"] .icon,
a.button[href*="last.fm"] .icon {
    opacity: 1 !important;
    padding: 3px !important;
    background: #ece8e2 !important;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.32);
    filter: none !important;
    transform: translateZ(0);
    backface-visibility: hidden;
    mix-blend-mode: normal;
}

a.button[href*="slop.tools"]:hover .icon,
a.button[href*="slop.tools"]:focus .icon,
a.button[href*="reddit.com"]:hover .icon,
a.button[href*="reddit.com"]:focus .icon,
a.button[href*="last.fm"]:hover .icon,
a.button[href*="last.fm"]:focus .icon {
    opacity: 1 !important;
    background: #ffffff !important;
    filter: none !important;
}

@media (max-width: 560px) {
    .button,
    button {
        min-height: 59px;
        margin-bottom: 11px;
        padding: 15px 48px 15px 17px !important;
        font-size: 15px !important;
    }

    .button:hover,
    .button:focus,
    button:hover,
    button:focus {
        transform: translateY(-2px) !important;
    }
}
