:root {
    --bg-color: #0b0e14;
    --card-bg: rgba(25, 30, 41, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --accent-color: #00f2ff;
    --accent-secondary: #9d00ff;
    --border-color: rgba(255, 255, 255, 0.1);
    --success-color: #00e676;
    --nav-height: 80px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 242, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(157, 0, 255, 0.05) 0%, transparent 40%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    height: var(--nav-height);
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: -0.5px;
}

.logo .accent {
    color: var(--accent-color);
}

.slogan {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
    line-height: 1;
    margin-top: 2px;
}

.search-container {
    display: flex;
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 5px;
    width: 50%;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.search-container input {
    background: transparent;
    border: none;
    color: white;
    padding: 10px 15px;
    flex-grow: 1;
    outline: none;
    font-family: inherit;
}

.search-container button {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-secondary));
    border: none;
    color: black;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.search-container button:hover {
    opacity: 0.9;
}

.status-badge {
    display: flex;
    align-items: center;
    background: rgba(0, 230, 118, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--success-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 8px var(--success-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Main Content Area */
main {
    padding: 40px 20px;
}

.view-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.view-title h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.view-title p {
    color: var(--text-secondary);
}

/* Cards & Tables */
.card {
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th {
    text-align: left;
    color: var(--text-secondary);
    font-weight: 400;
    padding: 15px;
    border-bottom: var(--glass-border);
    font-size: 0.9rem;
}

td {
    padding: 18px 15px;
    border-bottom: var(--glass-border);
    font-size: 0.95rem;
}

tr:last-child td {
    border-bottom: none;
}

tr.clickable {
    cursor: pointer;
    transition: background 0.2s;
}

tr.clickable:hover {
    background: rgba(255, 255, 255, 0.03);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 8px var(--accent-color);
}

a:visited {
    color: var(--accent-color);
}

.mono {
    font-family: 'Courier New', monospace;
}

/* Column Specific Colors */
tbody tr td:nth-child(1) { color: var(--accent-color); font-weight: 600; } /* Height */
tbody tr td:nth-child(2) { color: var(--text-secondary); } /* Time */
tbody tr td:nth-child(3) { color: var(--accent-secondary); font-weight: 600; } /* Difficulty */
tbody tr td:nth-child(4) { color: var(--success-color); } /* TXs */
tbody tr td:nth-child(5) { color: var(--text-primary); opacity: 0.8; } /* Miner */

.metrics-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

@media (max-width: 900px) {
    .metrics-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 500px) {
    .metrics-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .metric-card {
        padding: 10px 12px;
    }
    
    .metric-label {
        font-size: 0.65rem;
    }
    
    .metric-value {
        font-size: 1.1rem;
    }
    
    .metric-sub {
        font-size: 0.65rem;
    }
    
    .metric-bg-emoji {
        font-size: 4rem;
        right: -10px;
        top: -10px;
    }
}

.metric-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-bg-emoji {
    position: absolute;
    right: -25px;
    top: -45px;
    font-size: 8.5rem;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    filter: grayscale(1) brightness(1.2);
    transform: rotate(-15deg);
}

.metric-card > *:not(.metric-bg-emoji) {
    position: relative;
    z-index: 1;
    text-align: left;
}

.metric-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
}

.metric-card.is-loading {
    animation: pulse 2s infinite ease-in-out;
    pointer-events: none;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.metric-sub {
    font-size: 0.75rem;
    color: var(--accent-color);
    opacity: 0.9;
}

.tag {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
}

/* Pagination */
.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.page-numbers, .page-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-btn {
    background: var(--card-bg);
    border: var(--glass-border);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    min-width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-btn.active {
    background: var(--accent-color);
    color: black;
    font-weight: 700;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

.page-btn:hover:not(:disabled):not(.active) {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    color: var(--text-secondary);
    padding: 0 10px;
}

/* Loader */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 242, 255, 0.1);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animations */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.loading-dots::after {
    content: '...';
    display: inline-block;
    animation: pulse 1.5s infinite;
    width: 20px;
    text-align: left;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Detail Views */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.detail-item {
    margin-bottom: 20px;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 1.1rem;
    word-break: break-all;
}

/* Footer */
footer {
    margin-top: 60px;
    padding: 40px 0;
    border-top: var(--glass-border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .search-container {
        width: 100%;
        order: 3;
        margin-top: 15px;
    }
    
    header {
        height: auto;
        padding: 15px 0;
    }
    
    .navbar {
        flex-wrap: wrap;
    }
    
    .status-badge {
        font-size: 0.8rem;
    }
}

/* Easter Egg Themes */
.vibe-mode {
    --accent-color: #ff00ff;
    --accent-secondary: #00f2ff;
    --card-bg: rgba(255, 0, 255, 0.05);
}

.vibe-mode .metric-card {
    border-color: rgba(255, 0, 255, 0.2);
}

@keyframes fadeOut {
    0% { opacity: 0; transform: translate(-50%, 20px); }
    20% { opacity: 1; transform: translate(-50%, 0); }
    80% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -20px); }
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 40px;
    margin-bottom: 25px;
    padding: 0 5px;
}

.view-title h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.view-title p {
    margin: 5px 0 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    word-break: break-all;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease-out forwards;
}

.modal-content {
    background: rgba(11, 14, 20, 0.95);
    border: var(--glass-border);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 255, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: var(--glass-border);
    padding-bottom: 15px;
}

.modal-header h2 {
    color: var(--accent-color);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--text-primary);
}

.changelog-list {
    list-style: none;
    padding: 0;
}

.changelog-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

.changelog-list li::before {
    content: "✨";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.9rem;
}

