/* SolanaTools ads layer: two exclusive banner slots (all pages), footer "For projects" links, listing rows. */

/* Ad area under the navbar: box 1 always reserved; box 2 only when both slots are sold (stacked, full width). */
.st-ad-slots {
    max-width: 1200px;
    margin: 14px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    position: relative;
    z-index: 1;
}

.st-ad-slot { min-width: 0; }
.st-ad-slot[hidden] { display: none; } /* box 2 is collapsed until a second banner is live */

/* Fixed box reserves the space before anything loads (no layout shift):
   8:1 on desktop/tablet (1200×150), 4:1 on phones (1200×300). */
.st-ad-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 8 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #120b1f;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 699px) {
    .st-ad-slots { gap: 10px; padding: 0 16px; margin-top: 10px; }
    .st-ad-frame { aspect-ratio: 4 / 1; border-radius: 10px; }
    /* Advertiser without a mobile creative: the desktop image keeps its 8:1 shape. */
    .st-ad-frame.is-desktop-only { aspect-ratio: 8 / 1; }
}

/* ---------- placeholder ---------- */
.st-ad-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    color: #e2e8f0;
    background:
        radial-gradient(circle at 12% 50%, rgba(153, 69, 255, 0.35), transparent 45%),
        radial-gradient(circle at 88% 50%, rgba(20, 241, 149, 0.25), transparent 45%),
        #120b1f;
    border-radius: inherit;
    transition: background-color 0.2s ease;
}

.st-ad-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: linear-gradient(90deg, #9945FF, #14F195, #9945FF);
    background-size: 200% 100%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: stAdBorder 6s linear infinite;
    pointer-events: none;
}

@keyframes stAdBorder {
    from { background-position: 0% 0; }
    to { background-position: 200% 0; }
}

.st-ad-ph-title {
    font-size: clamp(1rem, 2.2vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    background: linear-gradient(135deg, #b98cff 0%, #14F195 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.st-ad-ph-sub {
    font-size: clamp(0.72rem, 1.2vw, 0.95rem);
    color: #cbd5e1;
    line-height: 1.35;
}

.st-ad-ph-cta {
    margin-top: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
    transition: transform 0.2s ease;
}

.st-ad-placeholder:hover { color: #fff; }
.st-ad-placeholder:hover .st-ad-ph-cta { transform: translateY(-1px); }

@media (max-width: 420px), (min-width: 700px) and (max-width: 820px) {
    .st-ad-ph-cta { display: none; }
}

/* ---------- live banners (one advertiser per slot, no rotation) ---------- */
.st-ad-banner {
    position: absolute;
    inset: 0;
    display: block;
}

.st-ad-banner picture,
.st-ad-banner img {
    display: block;
    width: 100%;
    height: 100%;
}

.st-ad-banner img { object-fit: cover; }

/* "Advertise here" + "Ad" in the banner's top-right corner (absolute: no layout change). */
.st-ad-meta {
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.st-ad-meta .st-ad-label { position: static; }

.st-ad-more {
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(10, 6, 18, 0.7);
    border-radius: 4px;
    text-decoration: none;
}

.st-ad-more:hover { color: #14F195; }

.st-ad-label {
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 2;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e2e8f0;
    background: rgba(10, 6, 18, 0.7);
    border-radius: 4px;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .st-ad-placeholder::before { animation: none; }
}

/* ---------- footer "For projects" ---------- */
.st-footer-cta {
    display: inline-block;
    margin-top: 4px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
    box-shadow: 0 4px 15px rgba(153, 69, 255, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.st-footer-cta:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(153, 69, 255, 0.35);
}

.st-footer-projects a[href="/list-your-bot"] { color: #14F195; }

/* ---------- home page listings ---------- */
.st-new-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
    vertical-align: middle;
}

.st-listing-row .bot-cell strong { color: var(--text-main); }

.st-listing-links {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.st-listing-desc {
    display: block;
    max-width: 260px;
    font-size: 0.85rem;
    line-height: 1.45;
}

.st-submit-cta {
    margin-top: 18px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.95rem;
}

.st-submit-cta a {
    font-weight: 700;
    color: #14F195;
}

.st-submit-cta a:hover { color: #6ff7c0; }

.st-new-tools {
    padding-top: 0 !important;
}
