@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- Planet One Dark Cosmic Theme (static-n.css) --- */

:root {
    --bg-color: #020408;
    --card-bg: rgba(9, 15, 28, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-color: #E2E8F0;
    --text-muted: #94A3B8;
    --primary: #0066FF;
    --primary-glow: rgba(0, 102, 255, 0.35);
    --secondary: #00E054;
    --secondary-glow: rgba(0, 224, 84, 0.35);
    --accent: #8B5CF6;
    --font-sans: 'Outfit', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Inconsolata', monospace;
    --header-height: 80px;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 102, 255, 0.05);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 102, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 224, 84, 0.05) 0%, transparent 45%);
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
}

/* --- Customized Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #020408;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- Typography Overrides --- */
pre, code, .monospace-content {
    font-family: var(--font-mono) !important;
    font-size: 13.5px !important;
    line-height: 1.7 !important;
}

/* --- Planet One Premium Header --- */
.planetone-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(2, 4, 8, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    border: none !important;
    transition: transform 0.2s ease;
}

.brand-link:hover {
    transform: translateY(-1px);
    border: none !important;
}

.brand-logo {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.brand-name {
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #FFF;
    display: flex;
    align-items: center;
    gap: 4px;
}

.brand-name .highlight {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), #00C2FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-name .sub-brand {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    border-left: 1px solid var(--border-color);
    padding-left: 8px;
    margin-left: 4px;
}

/* --- Search Bar --- */
.search-container {
    flex: 1;
    max-width: 500px;
}

#searchForm {
    position: relative;
    width: 100%;
    display: flex;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 50px 12px 18px;
    color: #FFF;
    font-family: var(--font-sans);
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.search-button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.search-button:hover {
    color: var(--primary);
}

.search-icon {
    transition: transform 0.2s ease;
}

.search-button:hover .search-icon {
    transform: scale(1.05);
}

/* --- Navigation Links --- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color) !important;
    text-decoration: none !important;
    border: 1px solid transparent !important;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #FFF !important;
    border-color: var(--border-color) !important;
}

.nav-link.external-link {
    color: var(--secondary) !important;
    border: 1px dashed rgba(0, 224, 84, 0.25) !important;
    background: rgba(0, 224, 84, 0.02);
}

.nav-link.external-link:hover {
    background: rgba(0, 224, 84, 0.08);
    border-color: var(--secondary) !important;
    color: #FFF !important;
    box-shadow: 0 0 12px var(--secondary-glow);
}

.theme-toggle {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color) !important;
    padding: 8px 16px;
    border-radius: 10px;
    color: #FFF !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: #FFF;
    color: #020408 !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* --- Explorer Content Layout --- */
.explorer-content {
    margin-top: calc(var(--header-height) + 20px);
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 30px;
    flex: 1;
}

.monospace-content {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-lg);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
}

/* --- Links Styling (Monospace Data) --- */
a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.15s ease;
}

a:hover {
    color: #3385FF;
    border-bottom-color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

/* Specific styling for blockchain items */
/* Addresses */
a[href*="/3P"], a[href*="/3p"] {
    color: var(--secondary);
}
a[href*="/3P"]:hover, a[href*="/3p"]:hover {
    color: #17f369;
    border-bottom-color: var(--secondary);
    text-shadow: 0 0 8px var(--secondary-glow);
}

/* Transactions / Hashes */
a[href*="/tx/"] {
    color: var(--accent);
}
a[href*="/tx/"]:hover {
    color: #A78BFA;
    border-bottom-color: var(--accent);
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

/* Header line indicators */
hr {
    margin: 25px 0;
    height: 1px;
    border: 0;
    background: linear-gradient(to right, var(--border-color), rgba(255, 255, 255, 0.02));
}

span {
    color: var(--text-muted);
}

b {
    color: #FFF;
    font-weight: 700;
}

/* --- Tables inside explorer --- */
table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-top: 15px;
}

td {
    padding: 0;
    vertical-align: top;
}

/* Style for standard list formatting */
span.faint {
    color: rgba(255, 255, 255, 0.15);
}

/* Footer Section */
footer, div[align="right"] {
    margin-top: 30px;
    padding: 20px 0;
    text-align: right;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 13px;
}

footer a, div[align="right"] a {
    color: var(--text-color);
    font-weight: 500;
    border-bottom: 1px dotted var(--text-muted);
}

footer a:hover, div[align="right"] a:hover {
    color: #FFF;
    border-bottom-style: solid;
}