body {
    background-color: #111;
    color: #ddd;
    font-family: monospace;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: "Peace Sans";
    src:
        url("../fonts/peace-sans/PeaceSans.woff2") format("woff2"),
        url("../fonts/peace-sans/PeaceSans.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

/* Header layout */
header {
    background-color: #111;
    padding: 6px 10px;
}

/* Flex layout */
.header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0px;
}

/* Logo */
.logo {
    font-size: 150%;
    font-weight: normal;
    font-family: "Peace Sans", sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
    color: #333;
    background-color: #d7f114;
    border: 1px solid #d7f114;
    border-radius: 6px;
    padding: 3px 13px 1px 13px;
}

/* Menu next to search */
.menu {
    flex-shrink: 0;
}

.searchbar {
    flex-grow: 1;
    min-width: 200px;
    padding-left: 6px;
    padding-right: 6px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-row {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .searchbar {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
        margin-bottom: 10px;
    }

    .menu {
        width: 94%;
        text-align: center;
    }

    .main-menu ul {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* MENU */
.menu {
    background-color: #d7f114;
    border: 1px solid #d7f114;
    border-radius: 6px;
    padding: 11px 11px;
}

.main-menu {
    padding: 0;
}

.main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.main-menu ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.2s ease;
}

.main-menu ul li a:hover {
    color: #f11414;
}

/* GENERAL LINKS (outside menu) */
main a,
#content a,
footer a {
    color: #d7f114;
    text-decoration: none;
}

main a:hover,
#content a:hover,
footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .main-menu ul {
        gap: 8px; /* reduce space between items */
    }

    .main-menu ul li a {
        padding: 4px 6px; /* smaller clickable area */
        font-size: 0.85rem; /* slightly smaller text */
    }
}

a.article-link {
    text-decoration: none;
    color: #ddd;
}

a.article-link:hover {
    text-decoration: none;
}

/* Footer */
footer {
    background-color: #2a2a2a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    text-align: center;
    padding: 12px;
    margin: 6px 10px 12px 10px;
}

/* Page content */
/* Main wrapper always full width */
main {
    width: 100%;
    padding: 0px 10px; /* spacing inside main */
    box-sizing: border-box;
}

/* Content blocks */
.content {
    background-color: #2a2a2a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #ddd;
    padding: 10px 15px;
    /* remove margin */
    margin: 0;
    box-sizing: border-box;
}

/* Base layout */
.layout {
    display: grid;
    gap: 6px; /* spacing between .content inside a layout */
    margin-bottom: 6px; /* spacing between layout groups */
}

/* Remove margin after the last group */
.layout:last-of-type {
    margin-bottom: 0;
}

.layout.two {
    grid-template-columns: 1fr 1fr;
}

.layout.three {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Mobile override */
@media (max-width: 768px) {
    .layout.two,
    .layout.three {
        grid-template-columns: 1fr;
    }
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 6px;
    box-sizing: border-box;
}

.search-form input[type="text"] {
    flex-grow: 1;
    background-color: #222;
    color: #ddd;
    border: 1px solid #444;
    border-radius: 3px;
    padding: 5px 8px;
    font-size: 90%;
    font-family: monospace;
    margin-right: 6px;
}

.search-form input[type="text"]:focus {
    outline: none;
    border-color: #555;
}

.search-form input[type="text"]::placeholder {
    color: #555;
}

.search-form input[type="submit"] {
    background-color: #333;
    color: #ccc;
    border: 1px solid #555;
    border-radius: 3px;
    padding: 5px 10px;
    font-family: monospace;
    font-size: 90%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-form input[type="submit"]:hover {
    background-color: #444;
}

.search-form input[type="submit"]:focus {
    outline: none;
}

.footer-link {
    color: #555;
}

.hackers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.hacker-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px;
    color: #ddd;
    /* display: flex;
  flex-direction: column; */
}

.hacker-body {
    flex-grow: 1; /* takes available space */
}

/* Only normal hacker cards use flex column */
.hacker-card:not(.special) {
    display: flex;
    flex-direction: column;
}

.hacker-card:not(.special) .hire-btn {
    margin-top: auto; /* keeps button at bottom */
}

.hacker-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 10px;
}

.hacker-name {
    font-size: 1.2em;
    margin: 10px 0;
    text-align: center;
    border-bottom: none;
}

.hacker-name a {
    color: #4da6ff;
    text-decoration: none;
}

.hacker-name a:hover {
    text-decoration: underline;
}

.rating {
    display: inline-flex;
    align-items: center; /* centers number + star vertically */
    gap: 4px; /* space between number and star */
    color: #ff4d4d;
    font-weight: bold;
    font-size: 1.1em;
}

.rating .star {
    font-size: 1.2em; /* slightly larger than number */
    line-height: 1; /* remove extra vertical spacing */
}

details {
    background: #1a1a1a;
    color: #ddd;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    margin: 10px 0;
}

details summary {
    cursor: pointer;
    font-weight: bold;
    color: #ff4d4d;
}

details[open] summary {
    color: #ff8080;
}

pre {
    background: #111;
    padding: 10px;
    overflow-x: auto;
    border-radius: 5px;
}

.hacker-profile img {
    width: 100%; /* make it responsive */
    max-width: 360px; /* cap at 360px on large screens */
    height: auto; /* keep aspect ratio */
    display: block;
}

.hacker-card.special {
    display: flex;
    align-items: center; /* 👈 vertical center everything */
    padding: 10px 15px;
    gap: 10px; /* 👈 space between avatar and name */
}

.hacker-card.special .hacker-img.small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0; /* don’t let it shrink */
    margin: 0; /* remove margin-right so we use gap */
    display: block;
}

.hacker-card.special .hacker-info {
    flex: 1;
    display: flex;
    align-items: center; /* 👈 vertical-align hacker name with avatar */
}

.hacker-card.special .hacker-name {
    margin: 0;
    font-size: 1.1em;
}

/* .hacker-card.special .hacker-name a {
  color: #4da6ff;
  text-decoration: none;
  font-weight: bold;
} */

.hacker-card.special .hacker-name a:hover {
    text-decoration: underline;
}

.hacker-card.special .rating {
    font-size: 0.95em;
    font-weight: bold;
    color: #ff4d4d;
    white-space: nowrap;
    margin-left: 10px;
    float: right;
}

.break-all {
    word-wrap: break-word; /* legacy */
    overflow-wrap: break-word; /* modern */
    word-break: break-all; /* aggressive */
}

.blink-smooth {
    animation: blinkSmooth 1.5s infinite;
}

@keyframes blinkSmooth {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.escrow-banner {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 15px;
    font-size: 0.95em;
    color: #ddd;
    text-align: center;
}

.escrow-banner a {
    color: #4da6ff;
    text-decoration: none;
    font-weight: bold;
}

.escrow-banner a:hover {
    text-decoration: underline;
}

.btn-wallet {
    background: linear-gradient(135deg, #28a745, #1c7c31);
    color: #fff;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 12px rgba(40, 167, 69, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-wallet:hover {
    background: linear-gradient(135deg, #34d058, #22863a);
    box-shadow: 0 0 18px rgba(40, 167, 69, 0.7);
    /* transform: translateY(-2px); */
}

.btn-wallet:active {
    transform: translateY(0);
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
}

.reviewer-commenter {
    border-radius: 4px;
    background-color: rgb(0, 104, 0);
    padding: 2px 6px;
}

.review-form form,
.review-form textarea {
    max-width: 600px; /* cap it but not tiny */
    width: 100%; /* full width up to the cap */
    box-sizing: border-box;
}

.review-form textarea {
    width: 100%;
    max-width: 600px; /* match fieldset */
    border-radius: 6px; /* rounded corners inside */
    box-sizing: border-box;
    margin-top: 8px;
}

.review-form form {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    margin: 0; /* remove auto-centering */
}

.review-form label {
    flex-basis: 100%; /* label takes full line */
    margin-bottom: 4px;
}

.review-list,
.comment-list {
    margin: 0;
    padding: 0;
}

.review-list li,
.comment-list li {
    list-style: none;
    margin: 0;
    margin-left: 4px;
    padding: 0;
    padding-bottom: 2px;
}

.review-code-label,
.captcha-label {
    border-radius: 3px;
    color: white;
    padding: 2px 6px;
}

.review-code-label {
    background-color: rgb(153, 0, 255);
}

.captcha-label {
    background-color: #119df4;
}

.review-form fieldset {
    border: 1px solid #666;
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 10px;
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
}

.review-form .error-msg {
    color: #ff4d4d;
    margin: 8px 0;
    font-size: 0.9em;
}

.review-form fieldset label {
    display: block; /* puts label on its own line */
    margin-bottom: 2px; /* space below label */
}

.review-form fieldset input[type="text"],
.review-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
    font-size: 0.95em;
    border: 1px solid #444;
    border-radius: 6px;
    background-color: #222;
    color: #eee;
    box-sizing: border-box;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.review-form fieldset input[type="text"] {
    margin-top: 10px;
}

.review-form fieldset input[type="text"]:focus,
.review-form textarea:focus {
    outline: none;
    border-color: #f46f11; /* highlight border */
    box-shadow: 0 0 4px rgba(244, 111, 17, 0.6);
}

.review-form button[type="submit"] {
    margin-top: 2px;
    margin-bottom: 12px;
    margin-left: 16px; /* 👈 space from left edge */
    padding: 4px 10px; /* smaller button size */
    font-size: 0.95em; /* slightly smaller text */
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.status-dot.online {
    background-color: #3cd36b;
    box-shadow: 0 0 4px rgba(60, 211, 107, 0.7);
}

/* Blinking pulse effect */
.status-dot.online::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #3cd36b;
    opacity: 0.7;
    animation: pulse 1.5s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.status-dot.offline {
    background-color: #777;
    box-shadow: 0 0 2px rgba(120, 120, 120, 0.5);
}

.hacker-status {
    display: block;
    margin: 10px 0;
    text-align: center;
    font-size: 0.9em;
    font-weight: bold;
}

.hacker-status-profile {
    display: block;
    margin: 5px 0px 15px 0px;
    text-align: left;
    font-size: 0.9em;
    font-weight: bold;
}

/* Colors by status */
.hacker-status.free,
.hacker-status-profile.free {
    color: #3cd36b; /* green */
}

.hacker-status.busy,
.hacker-status-profile.busy {
    color: #f4b011; /* orange */
}

.hacker-status.occupied,
.hacker-status-profile.occupied {
    color: #f46f11; /* red */
}

.hacker-status.vacation,
.hacker-status-profile.vacation {
    color: #4da6ff; /* blue */
}

.hacker-status.inactive,
.hacker-status-profile.vacation {
    color: #777; /* gray */
}

h3 {
    margin: 6px 3px 12px 3px;
}

.hire-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #28a745, #1c7c31);
    color: #fff;
    font-size: 1.05em;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    padding: 12px 0;
    margin-top: 12px;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
}

.hire-btn:hover {
    background: linear-gradient(135deg, #34d058, #22863a);
    box-shadow: 0 0 16px rgba(40, 167, 69, 0.7);
    /* transform: translateY(-2px); */
}

.hire-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 6px rgba(40, 167, 69, 0.5);
}

.footer-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 45px;
    /* margin-top: 6px; */
    font-size: 14px;
    color: #ddd;
}

.footer-stats .stat {
    white-space: nowrap;
}

/* Mobile view: stack vertically */
@media (max-width: 600px) {
    .footer-stats {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
}

.meta {
    font-size: 80%;
    color: #999;
}

.related-list {
    list-style: none;
    padding-left: 20px;
}

.related-snippet-main {
    padding-left: 4px;
}

.item {
    margin-bottom: 24px;
}

/* UNDER ARTICLE AD */

.cta-box {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #ddd;
    text-align: center;
    border-radius: 6px;
}
.cta-box p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.4em;
}

.button-on-page {
    display: inline-block;
    background: #ff4d4d;
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}
.button-on-page:hover {
    background: #e03333;
}

hr {
    border: none; /* remove default styling */
    border-top: 1px solid #333; /* 1px thin line, pick your color */
    margin: 20px 0; /* spacing above/below */
}

.hackers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* .hackers-header h1,
h1 {
  margin-top: 0px;
} */

h1,
h2,
h3 {
    border-bottom: 1px solid #333;
    padding-bottom: 6px;
    color: #119df4;
}

.page-img {
    border-radius: 6px;
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
}

/* hide mobile by default */
.sort-dropdown-mobile {
    display: none;
}

/* spacing for both */
.sort-dropdown {
    position: relative;
}
.sort-dropdown .dropdown-btn {
    background: #1e1e1e;
    color: #eee;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 15px;
    cursor: pointer;
}
.sort-dropdown .dropdown-content {
    display: none;
    position: absolute;
    background: #1e1e1e;
    border: 1px solid #444;
    border-radius: 6px;
    min-width: 180px;
    z-index: 99;
}
.sort-dropdown .dropdown-content a {
    display: block;
    padding: 8px 12px;
    color: #eee;
    text-decoration: none;
}
.sort-dropdown .dropdown-content a:hover {
    background: #2a2a2a;
}
.sort-dropdown:hover .dropdown-content {
    display: block;
}

/* mobile behavior */
@media (max-width: 600px) {
    .sort-dropdown-desktop {
        display: none;
    }
    .sort-dropdown-mobile {
        display: block;
        margin: 15px 0 25px 0;
        max-width: 260px;
    }
    .sort-dropdown-mobile .dropdown-btn {
        width: 100%;
        text-align: left;
    }
    .sort-dropdown-mobile .dropdown-content {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .header-row {
        /* flex-direction: column; */
        margin-top: 2px;
        padding: 0px; /* 👈 matches .layout margin */
        gap: 2px; /* 👈 vertical space between items */
    }
    .searchbar {
        width: 100%;
        box-sizing: border-box;
        margin: 6px 0px;
    }

    .menu {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    .main-menu ul {
        justify-content: center;
        flex-wrap: wrap;
        padding: 0;
        margin: 0;
    }
}

/* PGP / key block styling */
.pgp-block {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    font-family:
        ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono",
        "Courier New", monospace;
    font-size: 13px;
    line-height: 1.35;
    color: #eee;
    background: #0f0f0f;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);

    /* Make long words wrap rather than force horizontal scroll */
    white-space: pre-wrap; /* preserve newlines but allow wrapping */
    word-wrap: break-word; /* legacy */
    overflow-wrap: anywhere; /* modern */
    word-break: break-word; /* fallback for very long tokens */

    /* Keep horizontal scrollbar as fallback if you want it (optional) */
    /* overflow-x: auto; */
}

/* Slightly smaller font on very small screens */
@media (max-width: 420px) {
    .pgp-block {
        font-size: 11px;
        padding: 10px;
    }
}

/* Service page CTA buttons — scoped */
.hire-btn.service-cta-btn {
    display: inline-block; /* shrink to fit text by default */
    width: auto;
    max-width: 100%;
    white-space: nowrap;
    padding: 12px 28px; /* bigger side paddings */
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

/* On mobile: full width */
@media (max-width: 720px) {
    .hire-btn.service-cta-btn {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        white-space: normal; /* allow wrap if text is long */
        padding: 12px 18px; /* smaller side padding */
    }
}

.icon-row {
    display: flex;
    flex-wrap: wrap; /* allow wrapping when needed */
    justify-content: space-evenly; /* center items on each line */
    align-items: center;
    gap: 16px 32px; /* row gap, column gap */
    line-height: 1.8em;
    padding: 10px 0;
    text-align: center;
}

.icon-row > div {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95em;
    color: #ccc;
}

.icon-row img {
    height: 18px;
    width: auto;
    vertical-align: middle;
}

@media (max-width: 600px) {
    .icon-row {
        column-gap: 20px;
        row-gap: 18px;
        font-size: 74%;
        justify-content: center;
    }
}

/* Reviews Footer Fade */

.review-fader-css {
    position: relative;
    height: 1.8em; /* height of one text line */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-item-css {
    position: absolute;
    opacity: 0;
    animation: fadeInOut 50s linear infinite;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    width: 100%;
    text-align: center;
    font-size: 0.95em;
    line-height: 1.8em;
    color: #ccc;
    font-family: inherit;
    padding: 0 6px;
    box-sizing: border-box;
    display: block;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    2% {
        opacity: 1;
    }
    8% {
        opacity: 1;
    }
    10% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.review-meta-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.reviewer {
    font-weight: 600;
    color: #fff;
}

.review-date {
    font-style: normal;
    color: #aaa;
}

.review-text {
    color: #ccc;
}

.separator {
    color: #666;
}

.image-wrapper {
    position: relative;
    display: inline-block; /* Shrinks to background image size */
}

.bg-img {
    display: block;
    width: 100%; /* or fixed width if you prefer */
    height: auto;
}

.overlay-img {
    position: absolute;
    bottom: 30px; /* Distance from bottom edge */
    right: 30px; /* Distance from right edge */
    width: 130px; /* Adjust size as needed */
    rotate: -5deg; /* Optional: rotate the overlay */
    pointer-events: none;
}

/*FraudGPT Advertisement*/

/* Rainbow Link for Navigation */
.rainbow-link {
    background: linear-gradient(
        to right,
        #ff0000,
        #ff7f00,
        #ffff00,
        #00ff00,
        #0000ff,
        #4b0082,
        #9400d3,
        #ff0000
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow 3s linear infinite;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.rainbow-link:hover {
    transform: scale(1.1);
}

@keyframes rainbow {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: 0% center;
    }
}
