@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
/* NO FLASH - PŘED :root */
html[data-theme="light"] body,
body.light {
  background: #f3f4f6 !important;
  color: #111827 !important;
}

html[data-theme="dark"] body,
body.dark {
  background: #0f172a !important;
  color: #e5e7eb !important;
}


/* landing.css - PROFESIONÁLNÍ DARK/LIGHT READY */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, Inter, Roboto, Inter;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    transition: all 0.2s ease;
}

/* CSS VARIABLES - DARK THEME */
:root[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #020617;
    --bg-card: #0b1120;
    --bg-hover: #111827;
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --toggle-bg: #111827;
    --toggle-on: #0f172a;
    --toggle-knob: #f9fafb;
    --success-bg: #022c22;
    --success-border: #14532d;
    --success-text: #bbf7d0;
    --bg-primary-rgb: 15, 23, 42;
}

/* CSS VARIABLES - LIGHT THEME */
:root[data-theme="light"] {
    --bg-primary: #f3f4f6;
    --bg-secondary: #ffffff;
    --bg-card: #f9fafb;
    --bg-hover: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --toggle-bg: #e5e7eb;
    --toggle-on: #f3f4f6;
    --toggle-knob: #f9fafb;
    --success-bg: #d5f1cc;
    --success-border: #b8e3b0;
    --success-text: #166534;
    --bg-primary-rgb: 243, 244, 246;
}

.container {
    width: 100%;
    min-height: 100vh;
    background: var(--bg-secondary);
    padding: 20px 16px 28px 16px;
}

.hero {
    text-align: center;
    padding: 0 0 24px 0;
    background: transparent;
}

.logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.hero h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 100%;
}

.menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 28px 0 32px 0;
}

.menu-item {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px 18px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    cursor: pointer;
}

.menu-item:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
    border-color: #2563eb;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.menu-item.highlight {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #2563eb;
    color: white;
}

.menu-item.highlight p {
    color: rgba(255, 255, 255, 0.95);
}

.icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
}

.menu-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.3;
}

.menu-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* COMPLETED STATES - THEME READY */
.menu-item.completed,
#item-faucet.completed,
#item-send.completed,
#item-receive.completed,
#item-mint.completed,
#item-launch.completed {
    background: var(--success-bg) !important;
    border-color: var(--success-border) !important;
    color: var(--text-primary) !important;
}

.menu-item.completed h3,
.menu-item.completed p,
#item-faucet.completed h3,
#item-faucet.completed p,
#item-send.completed h3,
#item-send.completed p,
#item-receive.completed h3,
#item-receive.completed p,
#item-mint.completed h3,
#item-mint.completed p,
#item-launch.completed h3,
#item-launch.completed p {
    color: var(--success-text) !important;
}

.menu-item.completed:hover,
#item-faucet.completed:hover,
#item-send.completed:hover,
#item-receive.completed:hover,
#item-mint.completed:hover,
#item-launch.completed:hover {
    background: color-mix(in srgb, var(--success-bg) 90%, var(--success-border)) !important;
    border-color: color-mix(in srgb, var(--success-border) 80%, var(--success-text)) !important;
    transform: translateY(-2px);
}

.user-info {
  display: flex;
  align-items: center;
  justify-content: space-between; /* user vlevo, switch vpravo */
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.user-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}


.user-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.user-details {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.user-fid {
    font-size: 12px;
    color: var(--text-secondary);
}

footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    margin-top: 32px;
}

footer strong {
    font-weight: 700;
    color: var(--text-primary);
}

.theme-toggle-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 0; /* původní margin-left můžeš smazat */
}
.theme-toggle-label {
  font-size: 12px;
  color: var(--text-secondary);
}


.theme-toggle {
    position: relative;
    width: 64px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: var(--toggle-bg);
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    transition: background 0.2s ease;
}

.theme-toggle-knob {
    position: absolute;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--toggle-knob);
    transition: transform 0.2s ease;
}

.theme-toggle-icon {
    position: absolute;
    right: 10px;
    font-size: 16px;
    pointer-events: none;
    color: var(--toggle-knob);
}

.theme-toggle.on {
    background: var(--toggle-on);
}

.theme-toggle.on .theme-toggle-knob {
    transform: translateX(28px);
}

/* BOTTOM NAV - THEME READY */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(var(--bg-primary-rgb), 0.98);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.bottom-nav a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bottom-nav-icon {
    font-size: 18px;
}

.bottom-nav a span {
    line-height: 1;
}

.bottom-nav a.active {
    color: #60a5fa;
    font-weight: 600;
}

.page-content {
    padding-bottom: 72px; /* rezervace pro nav */
}

/* ANIMACE */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    animation: fadeIn 0.6s ease-out;
}

.menu-item {
    animation: fadeIn 0.6s ease-out;
}

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }
.menu-item:nth-child(5) { animation-delay: 0.5s; }

/* MOBILNÍ OPTIMALIZACE */
@media (max-width: 480px) {
    .container {
        padding: 18px 14px 24px 14px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 15px;
    }

    .description {
        font-size: 13px;
    }

    .menu {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 24px 0 28px 0;
    }

    .menu-item {
        padding: 18px 16px;
    }

    .icon {
        font-size: 32px;
    }

    .menu-item h3 {
        font-size: 17px;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 22px;
    }

    .menu-item {
        padding: 16px 14px;
    }
}

.bottom-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Footer Link Styling - ADD THIS TO END OF CSS */
.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;

    /* Force text color from theme variable (white in dark mode, black in light mode) */
    color: var(--text-primary) !important;

    font-weight: 600;
    transition: color 0.2s ease;
}

/* Ensure visited links don't turn purple */
.footer-link:visited,
.footer-link:active {
    color: var(--text-primary) !important;
    text-decoration: none;
}

/* Hover effect - turns Base Blue */
.footer-link:hover {
    color: #0052ff !important;
    text-decoration: none;
}

/* Ensure SVG icon inherits the text color */
.footer-link svg {
    fill: currentColor;
}

/* =========================================
   THEME TOGGLE BUTTON (Slider)
   ========================================= */

.theme-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    background-color: #cbd5e1; /* Šedá pro světlý režim */
    border-radius: 14px;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    outline: none;
    /* Reset default button styles */
    -webkit-tap-highlight-color: transparent;
}

/* Kolečko uvnitř */
.theme-toggle-knob {
    position: absolute;
    top: 3px;
    left: 4px;
    width: 22px;
    height: 22px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 2;
    pointer-events: none; /* Aby kliknutí procházelo na button */
}

/* Ikona měsíce/slunce (volitelné, pokud ji tam máš) */
.theme-toggle-icon {
    position: absolute;
    right: 8px;
    color: #64748b;
    font-size: 14px;
    transition: opacity 0.3s;
}

/* === STAVY PRO TMAVÝ REŽIM === */
/* Tady se děje ta magie, když common.js nastaví data-theme="dark" */

html[data-theme="dark"] .theme-toggle {
    background-color: #0052FF; /* Base Blue */
}

html[data-theme="dark"] .theme-toggle-knob {
    transform: translateX(24px); /* Posun kolečka doprava */
}

/* Hover efekt */
.theme-toggle:hover {
    opacity: 0.9;
}

/* =========================================
   CUSTOM MODAL STYLES (Global)
   ========================================= */

.custom-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75); /* Tmavé pozadí vždy */
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

.custom-modal-content {
    background: var(--bg-card);      /* Automaticky mění barvu dle tématu */
    color: var(--text-primary);      /* Automaticky mění barvu textu */
    border: 1px solid var(--border); /* Jemný rámeček dle tématu */
    width: 100%;
    max-width: 360px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.modal-header {
    padding: 20px 20px 10px;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-body {
    padding: 10px 24px 24px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-secondary); /* Šedý text */
    word-break: break-word;       /* Aby dlouhé hashe nerozbily okno */
}

.modal-footer {
    padding: 16px;
    background: var(--bg-hover);  /* Mírně jiný odstín než tělo karty */
    border-top: 1px solid var(--border);
}

.modal-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.modal-btn:hover {
    background: var(--bg-hover);
}

.modal-btn:active {
    transform: scale(0.98);
}

/* Status Colors (Univerzální pro oba režimy) */
.modal-success .modal-title { color: #22c55e; } /* Zelená */
.modal-danger .modal-title { color: #ef4444; }  /* Červená */
.modal-warning .modal-title { color: #eab308; } /* Žlutá */

/* Animations */
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Vylepšení pro Share tlačítko v modalu */
.share-btn-container {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.share-btn {
    background-color: #0052FF; /* Base Blue */
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Mezera mezi ikonou a textem */
    transition: transform 0.1s ease, background-color 0.2s;
    width: 100%; /* Na mobilu přes celou šířku modalu */
    justify-content: center;
}

.share-btn:hover {
    background-color: #0045d8;
}

.share-btn:active {
    transform: scale(0.98);
}

/* Styl pro obrázek v modalu */
.modal-nft-image {
    width: 100%;
    max-width: 240px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto 12px auto;
}

/* Úprava pro text v modalu, aby byl centrovaný */
.modal-text-center {
    text-align: center;
}