/* LibreMonero shared site theme (homepage charter): top nav, gradient page header,
   light background with white cards, footer. Used by /converter, /merchant and the
   merchant portal. */

:root {
    --lm-primary: #667eea;
    --lm-primary-2: #764ba2;
    --lm-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --lm-cta: #ff6b35;
    --lm-cta-hover: #ff5722;
    --lm-green: #00b894;
    --lm-green-hover: #00a383;
    --lm-text: #2d3436;
    --lm-muted: #636e72;
    --lm-bg: #f8f9fa;
    --lm-border: #e6e8ee;
    --lm-dark: #2d3436;
    --lm-radius: 14px;
    --lm-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(45, 52, 54, 0.06);
    --lm-shadow-lg: 0 12px 40px rgba(45, 52, 54, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.lm {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--lm-text);
    background: var(--lm-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.lm a { color: var(--lm-primary); }

/* Top navigation (same as the homepage) */
.top-nav {
    background: var(--lm-dark);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 20px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
}
body.lm .top-nav a { color: #fff; text-decoration: none; opacity: 0.9; }
body.lm .top-nav a:hover { opacity: 1; text-decoration: underline; }
body.lm .top-nav a.highlight { color: #ffb36b; }
body.lm .top-nav a.active { opacity: 1; border-bottom: 2px solid #a29bfe; }
.top-nav .home { display: inline-flex; align-items: center; gap: 6px; }
.top-nav .home img { width: 18px; height: 18px; }

/* Gradient page header; content cards overlap its lower edge */
.page-hero {
    background: var(--lm-gradient);
    color: #fff;
    text-align: center;
    padding: 44px 20px 92px;
}
.page-hero h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; }
.page-hero p { font-size: 16px; opacity: 0.92; max-width: 680px; margin: 0 auto; }
.page-hero .hero-note { margin-top: 12px; font-size: 13px; opacity: 0.85; }
body.lm .page-hero a { color: #fff; font-weight: 600; }
.page-hero.compact { padding: 26px 20px 84px; }

.lm-main { flex: 1; width: 100%; max-width: 960px; margin: -64px auto 0; padding: 0 20px 48px; }
.lm-main.narrow { max-width: 680px; }

.lm-card {
    background: #fff;
    border-radius: var(--lm-radius);
    box-shadow: var(--lm-shadow);
    padding: 28px;
    margin-bottom: 22px;
}
.lm-card.raised { box-shadow: var(--lm-shadow-lg); }
.lm-card h2 { font-size: 20px; margin-bottom: 6px; }
.lm-card h3 { font-size: 16px; margin-bottom: 12px; color: var(--lm-text); }
.lm-muted { color: var(--lm-muted); font-size: 0.9em; }

/* Buttons */
.lm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 10px; border: none; cursor: pointer;
    font-size: 15px; font-weight: 600; text-decoration: none; transition: all 0.2s;
    background: var(--lm-gradient); color: #fff;
}
body.lm a.lm-btn { color: #fff; }
.lm-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(102, 126, 234, 0.35); }
.lm-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.lm-btn.cta { background: var(--lm-cta); }
.lm-btn.cta:hover { background: var(--lm-cta-hover); box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35); }
.lm-btn.green { background: var(--lm-green); }
.lm-btn.green:hover { background: var(--lm-green-hover); box-shadow: 0 6px 18px rgba(0, 184, 148, 0.3); }
.lm-btn.light { background: #f0f0fa; color: #4a4a8a; }
body.lm a.lm-btn.light { color: #4a4a8a; }
.lm-btn.light:hover { box-shadow: none; background: #e6e6f7; }
.lm-btn.block { width: 100%; }

/* Form fields */
.lm-field { margin-bottom: 20px; position: relative; }
.lm-field label { display: block; font-size: 13px; font-weight: 600; color: #4b5563; margin-bottom: 6px; }
.lm-field input, .lm-field select {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--lm-border); border-radius: 10px;
    font-size: 15px; background: #fff; color: var(--lm-text); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.lm-field input:focus, .lm-field select:focus { border-color: var(--lm-primary); box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15); }
.lm-field small { display: block; margin-top: 6px; color: var(--lm-muted); font-size: 12.5px; }

/* Notices */
.lm-notice { padding: 12px 16px; border-radius: 10px; font-size: 14px; line-height: 1.5; margin-bottom: 18px; border: 1px solid; }
.lm-notice.info { background: #f1f2ff; border-color: #d9dcfb; color: #3f3f8f; }
.lm-notice.ok { background: #e8f8f2; border-color: #b7e4d4; color: #11694f; }
.lm-notice.warn { background: #fff8e1; border-color: #ffe082; color: #7a5b00; }
.lm-notice.danger { background: #fff0f0; border-color: #f5c6cb; color: #a93226; }

/* Footer (same as the homepage) */
.lm-footer {
    background: var(--lm-dark);
    color: #fff;
    padding: 32px 20px;
    text-align: center;
    font-size: 13px;
}
.lm-footer .brand { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.lm-footer .tagline { opacity: 0.8; }
.lm-footer .links { margin: 16px 0 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
body.lm .lm-footer a { color: #74b9ff; text-decoration: none; }
body.lm .lm-footer a:hover { text-decoration: underline; }
.lm-footer .legal { opacity: 0.6; font-size: 12px; margin-top: 10px; }

@media (max-width: 640px) {
    .page-hero { padding: 32px 16px 84px; }
    .page-hero h1 { font-size: 26px; }
    .page-hero p { font-size: 15px; }
    .lm-main { padding: 0 12px 36px; }
    .lm-card { padding: 20px; }
}
