/* Solfish Theme - Green variant */
/* Must override FrankenUI default orange/amber theme */

:root,
html,
html.dark {
    --background: 0 0% 4% !important;
    --foreground: 0 0% 98% !important;
    --muted: 0 0% 15% !important;
    --muted-foreground: 0 0% 65% !important;
    --card: 0 0% 4% !important;
    --card-foreground: 0 0% 98% !important;
    --popover: 0 0% 4% !important;
    --popover-foreground: 0 0% 98% !important;
    --border: 0 0% 15% !important;
    --input: 0 0% 15% !important;
    --primary: 142 76% 36% !important;
    --primary-foreground: 0 0% 98% !important;
    --secondary: 0 0% 15% !important;
    --secondary-foreground: 0 0% 98% !important;
    --accent: 142 76% 36% !important;
    --accent-foreground: 0 0% 98% !important;
    --destructive: 0 62% 30% !important;
    --destructive-foreground: 0 0% 98% !important;
    --ring: 142 76% 36% !important;
}

/* Override FrankenUI primary button to green */
.uk-btn-primary,
.uk-button-primary {
    background-color: hsl(142, 76%, 36%) !important;
    border-color: hsl(142, 76%, 36%) !important;
    color: #fff !important;
}

.uk-btn-primary:hover,
.uk-btn-primary:focus,
.uk-button-primary:hover,
.uk-button-primary:focus {
    background-color: hsl(142, 76%, 30%) !important;
    border-color: hsl(142, 76%, 30%) !important;
    color: #fff !important;
}

/* Text primary class */
.uk-text-primary {
    color: hsl(142, 76%, 50%) !important;
}

/* Green accent for active nav items */
.uk-active > a {
    color: hsl(142, 76%, 50%) !important;
}

/* Links */
a.uk-link,
.uk-link {
    color: hsl(142, 76%, 50%);
}

a.uk-link:hover,
.uk-link:hover {
    color: hsl(142, 76%, 40%);
}

/* ── Toast Notifications (Polyma style) ──────────────── */

#toast-container {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    width: 440px;
    max-width: calc(100vw - 32px);
}

.toast-notification {
    pointer-events: auto;
    width: 100%;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 230ms cubic-bezier(0.21, 1.02, 0.73, 1),
                transform 230ms cubic-bezier(0.21, 1.02, 0.73, 1);
    cursor: pointer;
}

.toast-notification.toast-show {
    opacity: 1;
    transform: translateY(64px);
}

.toast-notification.toast-hide {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 200ms ease, transform 200ms ease;
}

.toast-inner {
    display: flex;
    align-items: center;
    height: 56px;
    background: #0c0c0c;
    border: 1px solid #252525;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.toast-img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    margin-left: 12px;
    flex-shrink: 0;
    background: #27272a;
}

.toast-img-placeholder {
    background: #27272a;
}

.toast-body {
    flex: 1;
    min-width: 0;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.toast-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.toast-wallet {
    font-size: 12px;
    font-weight: 500;
    color: #e4e4e7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast-trade {
    font-size: 12px;
    font-weight: 500;
    color: #a1a1aa;
    white-space: nowrap;
    flex-shrink: 0;
}

.toast-row-bottom {
    font-size: 12px;
    color: #52525b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toast-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 100%;
    flex-shrink: 0;
    color: #52525b;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.15s;
}

.toast-close:hover {
    color: #a1a1aa;
}

/* ── Hide scrollbar but keep scrolling ──────────────── */

/* ── Blurred notifications (tier gating) ──────────────── */

.notif-blur {
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
}

.notif-upgrade-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: #4ade80;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 1;
}

.toast-blur .toast-body {
    filter: blur(4px);
    user-select: none;
}

.toast-blur .toast-img {
    filter: blur(4px);
}

.toast-blur .toast-inner {
    position: relative;
}

.toast-blur .toast-inner::after {
    content: none;
}

.toast-blur-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    pointer-events: none;
    z-index: 1;
}

.toast-blur-title {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: rgba(24, 24, 27, 0.9);
    padding: 2px 8px;
    border-radius: 4px;
}

.toast-blur-cta {
    font-size: 8px;
    font-weight: 700;
    color: #4ade80;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(24, 24, 27, 0.9);
    padding: 1px 6px;
    border-radius: 4px;
}

/* ── Hide scrollbar but keep scrolling ──────────────── */

.no-scrollbar {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

.no-scrollbar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
