Files
awesome-nostr/styles.css
T

1293 lines
28 KiB
CSS

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
/* ===== Color Tokens ===== */
:root {
--primary-color: #e05297;
--primary-hover: #c7407f;
--accent-warm: #f0a060;
--accent-glow: #ffc971;
--background-color: #fdf8f3;
--text-color: #2d1b3d;
--text-muted: #8b7e97;
--card-background: #ffffff;
--sidebar-background: #f6f0f8;
--sidebar-border: #e8ddf0;
--hover-color: #fef4fb;
--text-primary: var(--text-color);
--link-color: #7c5cbf;
--star-color: #f0a060;
--border-color: #ecdfe8;
--input-background: rgba(45, 27, 61, 0.04);
--shadow-sm: 0 1px 3px rgba(45, 27, 61, 0.06);
--shadow-md: 0 4px 16px rgba(45, 27, 61, 0.08);
--shadow-lg: 0 8px 30px rgba(45, 27, 61, 0.12);
--shadow-glow: 0 0 20px rgba(224, 82, 151, 0.08);
--radius-sm: 8px;
--radius-md: 14px;
--radius-lg: 20px;
--transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
--gradient-subtle: linear-gradient(135deg, rgba(224, 82, 151, 0.04), rgba(124, 92, 191, 0.04));
}
/* Dark theme */
[data-theme="dark"] {
--primary-color: #ff7eb3;
--primary-hover: #ff9ec5;
--accent-warm: #ffc971;
--accent-glow: #ffd48a;
--background-color: #191020;
--text-color: #ede8f5;
--text-muted: #8b7e97;
--card-background: #241b2e;
--sidebar-background: #1e1528;
--sidebar-border: #342a40;
--hover-color: rgba(255, 126, 179, 0.06);
--text-primary: var(--text-color);
--link-color: #c4b5fd;
--star-color: #ffc971;
--border-color: #342a40;
--input-background: rgba(255, 255, 255, 0.05);
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
--shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.45);
--shadow-glow: 0 0 24px rgba(255, 126, 179, 0.1);
--gradient-subtle: linear-gradient(135deg, rgba(255, 126, 179, 0.05), rgba(196, 181, 253, 0.05));
}
/* ===== Reset & Base ===== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
letter-spacing: -0.01em;
background-color: var(--background-color);
color: var(--text-color);
line-height: 1.65;
overflow-wrap: break-word;
word-break: break-word;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* ===== Layout ===== */
.container {
display: flex;
min-height: 100vh;
}
/* ===== Top Navigation ===== */
.top-nav {
background-color: var(--card-background);
color: var(--text-color);
padding: 0;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1001;
border-bottom: 1px solid var(--border-color);
overflow: hidden;
background-image: var(--gradient-subtle);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
}
[data-theme="dark"] .top-nav {
background-color: rgba(25, 16, 32, 0.85);
}
.nav-content {
max-width: 1200px;
margin: 0 auto;
padding: 0.7rem 1.5rem;
display: flex;
justify-content: space-between;
align-items: center;
gap: 1.5rem;
}
.nav-content h1 {
margin: 0;
font-size: 1.2rem;
font-weight: 600;
white-space: nowrap;
}
.logo-container {
height: 36px;
width: 150px;
display: flex;
align-items: center;
}
.nav-logo {
height: 100%;
width: 100%;
object-fit: cover;
}
.logo-text {
font-weight: 700;
font-size: 1.1rem;
color: var(--text-color);
}
/* ===== Search ===== */
.search-box {
position: relative;
flex-grow: 1;
max-width: 480px;
}
.search-box input {
width: 100%;
padding: 0.6rem 2.5rem 0.6rem 1.1rem;
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
background-color: var(--input-background);
color: var(--text-color);
font-size: 0.9rem;
font-family: inherit;
transition: border-color var(--transition), box-shadow var(--transition);
}
.search-box input:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(224, 82, 151, 0.12);
}
[data-theme="dark"] .search-box input:focus {
box-shadow: 0 0 0 3px rgba(255, 126, 179, 0.15);
}
.search-box input::placeholder {
color: var(--text-muted);
}
.search-box i {
position: absolute;
right: 14px;
top: 50%;
transform: translateY(-50%);
color: var(--text-muted);
font-size: 0.85rem;
}
/* ===== Theme Controls ===== */
.theme-controls {
display: flex;
align-items: center;
gap: 0.5rem;
}
.theme-toggle {
background: var(--input-background);
border: 1px solid var(--border-color);
color: var(--text-muted);
cursor: pointer;
padding: 0.5rem;
font-size: 1rem;
border-radius: var(--radius-sm);
transition: all var(--transition);
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
}
.theme-toggle:hover {
background-color: var(--hover-color);
border-color: var(--primary-color);
color: var(--primary-color);
}
.theme-select {
background-color: var(--input-background);
color: var(--text-color);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
padding: 0.4rem 0.8rem;
font-size: 0.85rem;
font-family: inherit;
cursor: pointer;
transition: all var(--transition);
}
.theme-select:hover {
border-color: var(--primary-color);
}
.theme-select:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(224, 82, 151, 0.12);
}
.theme-select option {
background-color: var(--card-background);
color: var(--text-color);
}
/* ===== Sidebar ===== */
.sidebar {
width: 272px;
background-color: var(--sidebar-background);
padding: 1rem 0.75rem;
position: fixed;
height: calc(100vh - 55px);
overflow-y: auto;
transition: transform 0.3s ease;
border-right: 1px solid var(--sidebar-border);
top: 55px;
touch-action: pan-y pinch-zoom;
will-change: transform;
-webkit-overflow-scrolling: touch;
overscroll-behavior: contain;
}
.sidebar-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.75rem;
margin-top: 0.75rem;
padding: 0 0.75rem;
}
.sidebar-header h4 {
margin: 0;
color: var(--text-muted);
font-size: 0.7rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.1em;
}
.nav-links {
list-style: none;
}
.nav-links li {
margin-bottom: 1px;
}
.nav-links a {
display: flex;
align-items: center;
padding: 0.5rem 0.75rem;
color: var(--text-color);
text-decoration: none;
border-radius: var(--radius-sm);
transition: all var(--transition);
font-size: 0.88rem;
font-weight: 400;
position: relative;
}
.nav-links a:hover {
background-color: var(--hover-color);
color: var(--primary-color);
}
.nav-links a.active {
background-color: var(--hover-color);
color: var(--primary-color);
font-weight: 500;
}
.nav-links a.active::before {
content: '';
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 3px;
height: 60%;
background: var(--primary-color);
border-radius: 0 3px 3px 0;
}
.nav-links i {
margin-right: 0.6rem;
width: 18px;
text-align: center;
font-size: 0.82rem;
opacity: 0.5;
}
/* Sidebar Scrollbar */
.sidebar::-webkit-scrollbar {
width: 3px;
}
.sidebar::-webkit-scrollbar-track {
background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 3px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
background: var(--text-muted);
}
.sidebar {
scrollbar-width: thin;
scrollbar-color: var(--border-color) transparent;
}
/* ===== Main Content ===== */
.main-content {
margin-left: 272px;
padding: 2rem 2.5rem;
padding-top: 80px;
flex: 1;
height: 100vh;
overflow-y: auto;
overflow-x: hidden;
margin-top: 0;
-webkit-overflow-scrolling: touch;
overscroll-behavior: contain;
}
.content-header {
display: none;
}
.view-controls {
display: flex;
gap: 1rem;
align-items: center;
}
/* Main Content Scrollbar */
.main-content::-webkit-scrollbar {
width: 5px;
}
.main-content::-webkit-scrollbar-track {
background: transparent;
}
.main-content::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 5px;
}
.main-content::-webkit-scrollbar-thumb:hover {
background: var(--text-muted);
}
.main-content {
scrollbar-width: thin;
scrollbar-color: var(--border-color) transparent;
}
/* ===== Resource Grid ===== */
#resources-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 1rem;
width: 100%;
max-width: 1100px;
height: auto;
min-height: 200px;
overflow: visible;
}
#resources-container > h2 {
grid-column: 1 / -1;
font-size: 1.6rem;
font-weight: 700;
color: var(--text-color);
margin: 1.5rem 0 0.75rem;
padding-bottom: 0.6rem;
letter-spacing: -0.03em;
border-bottom: 2px solid transparent;
border-image: linear-gradient(90deg, var(--primary-color), var(--accent-warm)) 1;
}
/* ===== Resource Cards ===== */
.resource-card {
background: var(--card-background);
border-radius: var(--radius-md);
padding: 1.25rem;
border: 1px solid var(--border-color);
box-shadow: var(--shadow-sm);
transition: all var(--transition);
height: 100%;
display: flex;
flex-direction: column;
position: relative;
}
.resource-card::before {
content: '';
position: absolute;
inset: -1px;
border-radius: var(--radius-md);
padding: 1px;
background: linear-gradient(135deg, var(--primary-color), var(--accent-warm));
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
opacity: 0;
transition: opacity var(--transition);
pointer-events: none;
}
.resource-card:hover {
box-shadow: var(--shadow-md), var(--shadow-glow);
transform: translateY(-2px);
}
.resource-card:hover::before {
opacity: 1;
}
.resource-header {
display: grid;
grid-template-columns: 44px 1fr;
gap: 12px;
align-items: start;
}
.resource-favicon {
width: 44px;
height: 44px;
margin: 0;
grid-row: span 2;
border-radius: 10px;
object-fit: cover;
background-color: var(--input-background);
}
.resource-title {
margin: 0;
font-size: 0.95rem;
color: var(--text-color);
display: flex;
justify-content: space-between;
align-items: center;
line-height: 1.3;
}
.resource-title a {
color: var(--text-color);
text-decoration: none;
font-weight: 600;
transition: color var(--transition);
}
.resource-title a:hover {
color: var(--primary-color);
}
.resource-description {
margin: 6px 0 0 0;
color: var(--text-muted);
font-size: 0.85rem;
line-height: 1.55;
}
.resource-description a {
color: var(--link-color);
text-decoration: none;
font-weight: 500;
}
.resource-description a:hover {
text-decoration: underline;
}
.resource-stars {
color: var(--star-color);
font-size: 0.78rem;
display: flex;
align-items: center;
gap: 4px;
font-weight: 600;
}
.fa-star {
color: var(--star-color);
}
.resource-link {
margin-bottom: 8px;
}
.resource-link a {
color: var(--link-color);
text-decoration: none;
display: flex;
align-items: center;
gap: 6px;
font-size: 0.82rem;
font-weight: 500;
transition: color var(--transition);
}
.resource-link a:hover {
color: var(--primary-color);
text-decoration: underline;
}
/* ===== Category Labels ===== */
.category-label {
font-size: 0.68rem;
color: var(--primary-color);
text-transform: uppercase;
letter-spacing: 0.06em;
font-weight: 600;
margin-bottom: 8px;
padding: 3px 8px;
background-color: var(--hover-color);
border-radius: var(--radius-sm);
display: inline-block;
}
/* ===== Markdown Content ===== */
.markdown-content {
padding: 1rem;
line-height: 1.75;
overflow-wrap: break-word;
word-break: break-word;
grid-column: 1 / -1;
}
.markdown-content a {
color: var(--link-color);
text-decoration: none;
font-weight: 500;
transition: color var(--transition);
}
.markdown-content a:hover {
color: var(--primary-color);
text-decoration: underline;
}
.markdown-content img {
max-width: 100%;
height: auto;
border-radius: var(--radius-sm);
}
.markdown-content pre {
overflow-x: auto;
max-width: 100%;
background: var(--input-background);
padding: 1rem;
border-radius: var(--radius-sm);
border: 1px solid var(--border-color);
font-size: 0.85rem;
line-height: 1.6;
}
.markdown-content code {
overflow-wrap: break-word;
word-break: break-all;
font-size: 0.85rem;
background: var(--input-background);
padding: 0.15em 0.4em;
border-radius: 4px;
}
.markdown-content pre code {
background: none;
padding: 0;
}
.markdown-content table {
display: block;
overflow-x: auto;
max-width: 100%;
border-collapse: collapse;
}
.markdown-content th,
.markdown-content td {
padding: 0.5rem 1rem;
border: 1px solid var(--border-color);
text-align: left;
}
.markdown-content th {
background: var(--input-background);
font-weight: 600;
font-size: 0.9rem;
}
/* ===== Contributors Grid ===== */
.contributors-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
gap: 16px;
padding: 1.5rem;
width: 100%;
height: auto;
min-height: 100px;
justify-items: center;
overflow: visible;
}
.contributors-grid a {
display: flex;
flex-direction: column;
align-items: center;
text-decoration: none;
color: var(--text-muted);
font-size: 0.72rem;
text-align: center;
transition: color var(--transition);
}
.contributors-grid a:hover {
color: var(--primary-color);
text-decoration: none;
}
.contributors-grid img {
border-radius: 50%;
width: 52px;
height: 52px;
transition: all var(--transition);
margin-bottom: 6px;
border: 2px solid var(--border-color);
}
.contributors-grid a:hover img {
transform: scale(1.1);
border-color: var(--primary-color);
box-shadow: 0 0 12px rgba(224, 82, 151, 0.2);
}
[data-theme="dark"] .contributors-grid a:hover img {
box-shadow: 0 0 12px rgba(255, 126, 179, 0.25);
}
.contributors-grid .loading {
grid-column: 1 / -1;
text-align: center;
padding: 20px;
color: var(--text-muted);
font-style: italic;
}
.resource-card.contributors-card {
max-width: none;
width: 100%;
height: auto;
min-height: 200px;
}
/* Full-width special elements */
.resource-card.contributors-card,
.no-results,
.error-message {
grid-column: 1 / -1;
}
/* ===== Status Messages ===== */
.no-results {
text-align: center;
padding: 3rem;
color: var(--text-muted);
font-size: 1rem;
}
.error-message {
padding: 1rem 1.25rem;
margin: 1rem;
background-color: #fef2f2;
border-left: 3px solid #ef4444;
color: #991b1b;
border-radius: var(--radius-sm);
font-size: 0.9rem;
}
[data-theme="dark"] .error-message {
background-color: rgba(239, 68, 68, 0.08);
border-left-color: #f87171;
color: #fca5a5;
}
/* ===== Dark Mode Heading Accent ===== */
[data-theme="dark"] h3,
[data-theme="dark"] .markdown-content h3 {
color: var(--accent-warm);
}
/* ===== Accessibility ===== */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
a:focus-visible {
outline: 2px solid var(--primary-color);
outline-offset: 2px;
border-radius: 2px;
}
button:focus-visible {
outline: 2px solid var(--primary-color);
outline-offset: 2px;
border-radius: 2px;
}
/* ===== Footer ===== */
.site-footer {
background-color: var(--sidebar-background);
color: var(--text-muted);
text-align: center;
padding: 1.5rem;
border-top: 1px solid var(--border-color);
font-size: 0.82rem;
letter-spacing: 0.01em;
}
/* ===== Menu Toggle (Mobile) ===== */
.menu-toggle {
display: none;
position: fixed;
top: 12px;
left: 12px;
z-index: 1002;
background-color: var(--card-background);
color: var(--text-color);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
padding: 0.4rem 0.6rem;
cursor: pointer;
font-size: 1rem;
box-shadow: var(--shadow-sm);
transition: all var(--transition);
}
.menu-toggle:hover {
border-color: var(--primary-color);
color: var(--primary-color);
}
/* ===== Responsive: Tablet & Below ===== */
@media (max-width: 768px) {
.sidebar {
transform: translateX(-100%);
position: fixed;
z-index: 1000;
touch-action: pan-y pinch-zoom;
will-change: transform;
transition: transform 0.3s ease;
box-shadow: none;
}
.sidebar.active {
transform: translateX(0);
box-shadow: var(--shadow-lg);
}
.sidebar-header {
margin-top: 4rem;
}
.main-content {
margin-left: 0;
padding: 1.25rem;
padding-top: 100px;
height: auto;
overflow: visible;
overscroll-behavior: auto;
width: 100%;
}
.menu-toggle {
display: flex;
align-items: center;
justify-content: center;
min-width: 44px;
min-height: 44px;
}
.top-nav {
padding: 0;
}
.nav-content {
display: grid;
grid-template-columns: auto 1fr auto;
grid-template-areas:
"logo . controls"
"search search search";
gap: 0.5rem;
padding: 0.5rem 1rem;
margin-left: 2.5rem;
max-width: calc(100% - 2.5rem);
}
.nav-content h1 {
font-size: 1.1rem;
width: 100%;
text-align: center;
}
.search-box {
grid-area: search;
width: 100%;
max-width: none;
margin: 0.25rem 0 0 0;
}
.nav-links a {
padding: 0.65rem 0.75rem;
min-height: 44px;
}
.theme-toggle,
.menu-toggle {
min-width: 44px;
min-height: 44px;
}
.search-box input {
min-height: 44px;
}
.nav-links a:active,
.theme-toggle:active,
.menu-toggle:active {
opacity: 0.7;
transition: opacity 0.1s;
}
.theme-controls {
grid-area: controls;
justify-self: end;
display: flex;
gap: 0.5rem;
}
.logo-container {
grid-area: logo;
height: 30px;
width: auto;
max-width: 130px;
}
.sidebar {
transform: translateX(-100%);
}
.sidebar.active {
transform: translateX(0);
}
}
/* ===== Responsive: Small Phones ===== */
@media (max-width: 480px) {
.nav-content {
gap: 0.3rem;
padding: 0.3rem 0.75rem;
}
.logo-container {
height: 26px;
max-width: 110px;
}
.theme-select {
max-width: 90px;
font-size: 0.75rem;
}
.main-content {
padding: 0.75rem;
padding-top: 130px;
}
}
/* ===== Responsive: Single Column Cards ===== */
@media (max-width: 640px) {
#resources-container {
grid-template-columns: 1fr;
}
}
/* ===== Responsive: Spacing ===== */
@media (max-width: 768px) {
.main-content {
padding-top: 110px;
}
#resources-container h2 {
margin-top: 0.5rem;
font-size: 1.3rem;
}
}
/* ===== Grantless: zap & donate chips ===== */
.resource-chips {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 10px;
}
.zap-chip,
.donate-chip {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 12px;
border-radius: 999px;
font-size: 0.78rem;
font-weight: 600;
text-decoration: none;
border: 1px solid rgba(247, 147, 26, 0.35);
transition: all var(--transition);
white-space: nowrap;
}
.zap-chip {
color: #f7931a;
background: rgba(247, 147, 26, 0.1);
}
.zap-chip:hover {
background: #f7931a;
color: #fff;
border-color: #f7931a;
transform: translateY(-1px);
text-decoration: none;
}
.donate-chip {
color: var(--link-color);
background: var(--input-background);
border-color: var(--border-color);
}
.donate-chip:hover {
border-color: var(--link-color);
transform: translateY(-1px);
text-decoration: none;
}
/* Nav "Fund nostr.net" zap button */
.fund-toggle {
background: rgba(247, 147, 26, 0.12);
border: 1px solid rgba(247, 147, 26, 0.4);
color: #f7931a;
cursor: pointer;
padding: 0.5rem;
font-size: 1rem;
border-radius: var(--radius-sm);
transition: all var(--transition);
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
text-decoration: none;
}
.fund-toggle:hover {
background: #f7931a;
border-color: #f7931a;
color: #fff;
box-shadow: 0 0 16px rgba(247, 147, 26, 0.35);
}
/* Homepage banner linking to the Grant page */
.fund-banner {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
background: linear-gradient(135deg, rgba(247, 147, 26, 0.08), rgba(247, 147, 26, 0.02));
border: 1px dashed rgba(247, 147, 26, 0.45);
border-radius: var(--radius-md);
padding: 12px 16px;
margin-bottom: 1.25rem;
text-decoration: none;
color: var(--text-color);
font-size: 0.88rem;
line-height: 1.4;
transition: all var(--transition);
}
.fund-banner:hover {
border-style: solid;
box-shadow: var(--shadow-md);
transform: translateY(-1px);
}
.fund-banner > .fa-bolt {
color: #f7931a;
font-size: 1.05rem;
flex-shrink: 0;
}
.fund-banner-cta {
margin-left: auto;
color: #f7931a;
font-weight: 600;
white-space: nowrap;
}
@media (max-width: 640px) {
.fund-banner-cta {
margin-left: 0;
}
}
/* ===== In-page zapping (Bitcoin Connect) ===== */
.theme-controls bc-button {
margin-right: 2px;
flex-shrink: 0;
}
/* zap chip interaction states */
.zap-chip { position: relative; }
.zap-chip[data-state="zapping"] {
opacity: 0.75;
pointer-events: none;
}
.zap-chip[data-state="zapping"] .fa-bolt::before {
content: "\f1ce"; /* fa-spinner */
display: inline-block;
animation: zap-spin 0.9s linear infinite;
}
.zap-chip[data-state="zapped"] {
background: #2e7d32;
border-color: #2e7d32;
color: #fff;
pointer-events: none;
}
.zap-chip[data-state="zapped"] .fa-bolt::before { content: "\f00c"; /* fa-check */ }
.zap-chip[data-state="error"] {
background: #c62828;
border-color: #c62828;
color: #fff;
}
@keyframes zap-spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
/* hint that in-page zapping is available once a wallet is connected */
body.webln-ready .zap-chip {
box-shadow: 0 0 0 1px rgba(247, 147, 26, 0.35);
}
/* toasts */
.zap-toast {
position: fixed;
bottom: 24px;
left: 50%;
transform: translateX(-50%);
z-index: 3000;
max-width: min(92vw, 480px);
padding: 12px 20px;
border-radius: 12px;
font-size: 0.9rem;
line-height: 1.45;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
animation: zap-toast-in 0.25s ease;
background: var(--card-background, #fff);
color: var(--text-color, #2d1b3d);
border: 1px solid var(--border-color, #ecdfe8);
}
.zap-toast a { color: #f7931a; }
.zap-toast-success { border-color: #2e7d32; }
.zap-toast-success::before { content: "✓ "; color: #2e7d32; font-weight: 700; }
.zap-toast-error { border-color: #c62828; }
.zap-toast-error::before { content: "✕ "; color: #c62828; font-weight: 700; }
@keyframes zap-toast-in {
from { opacity: 0; transform: translateX(-50%) translateY(12px); }
to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
/* ===== Zap fallback dialog (QR + lightning: link, no wallet needed) ===== */
.zap-modal-backdrop {
position: fixed;
inset: 0;
z-index: 2500;
background: rgba(20, 12, 28, 0.55);
backdrop-filter: blur(3px);
-webkit-backdrop-filter: blur(3px);
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
animation: zap-toast-in 0.2s ease;
}
.zap-modal {
position: relative;
background: var(--card-background, #fff);
color: var(--text-color, #2d1b3d);
border: 1px solid var(--border-color, #ecdfe8);
border-radius: var(--radius-lg, 20px);
box-shadow: var(--shadow-lg, 0 8px 30px rgba(0,0,0,0.3));
padding: 22px 18px 14px;
width: 100%;
max-width: 380px;
text-align: center;
}
.zap-modal-close {
position: absolute;
top: 10px;
right: 12px;
background: none;
border: none;
color: var(--text-muted, #8b7e97);
font-size: 1rem;
cursor: pointer;
padding: 4px 8px;
border-radius: 6px;
}
.zap-modal-close:hover { color: var(--text-color, #2d1b3d); background: var(--hover-color, #f6f0f8); }
.zap-modal-title {
margin: 0 0 12px;
font-size: 1rem;
letter-spacing: -0.02em;
}
.zap-modal-title .fa-bolt { color: #f7931a; margin-right: 4px; }
.zap-qr-box {
display: inline-block;
background: #ffffff;
padding: 10px;
border-radius: 12px;
border: 1px solid var(--border-color, #ecdfe8);
margin-bottom: 10px;
}
.zap-qr svg {
display: block;
width: 160px;
height: 160px;
}
.zap-modal-hint {
font-size: 0.78rem;
color: var(--text-muted, #8b7e97);
margin: 0 0 10px;
}
/* single compact line: address + copy + open-wallet */
.zap-modal-line {
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 12px;
}
.zap-modal-addr {
flex: 1;
min-width: 0;
display: block;
font-size: 0.78rem;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-align: left;
background: var(--input-background, rgba(45,27,61,0.04));
border: 1px solid var(--border-color, #ecdfe8);
border-radius: 8px;
padding: 8px 10px;
}
.zap-modal-copy {
flex-shrink: 0;
display: inline-flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
background: var(--input-background, rgba(45,27,61,0.04));
color: var(--text-muted, #8b7e97);
border: 1px solid var(--border-color, #ecdfe8);
border-radius: 8px;
cursor: pointer;
font-size: 0.85rem;
transition: all var(--transition, 0.25s);
}
.zap-modal-copy:hover {
color: var(--primary-color, #e05297);
border-color: var(--primary-color, #e05297);
}
.zap-modal-copy.copied {
color: #2e7d32;
border-color: #2e7d32;
}
.zap-modal-btn-primary {
background: #f7931a;
color: #fff;
border-color: #f7931a;
}
.zap-modal-btn-primary:hover { background: #e5840d; color: #fff; text-decoration: none; }
.zap-modal-connect {
display: block;
width: 100%;
margin-top: 10px;
background: none;
border: none;
border-top: 1px dashed var(--border-color, #ecdfe8);
padding: 10px 0 2px;
font-size: 0.8rem;
color: var(--link-color, #7c5cbf);
cursor: pointer;
font-family: inherit;
}
.zap-modal-connect:hover { text-decoration: underline; }
@media (max-width: 480px) {
.zap-qr svg { width: 160px; height: 160px; }
}
/* shared compact button base for the zap dialog */
.zap-modal-btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 12px;
border-radius: 10px;
font-size: 0.8rem;
font-weight: 600;
cursor: pointer;
text-decoration: none;
transition: all var(--transition, 0.25s);
border: 1px solid transparent;
font-family: inherit;
white-space: nowrap;
flex-shrink: 0;
}
.zap-as-me { color: var(--link-color, #7c5cbf); font-weight: 500; }
.zap-as-me:hover { text-decoration: underline; }