/* WebMiner Documentation Styles */

/* Base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
                 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
                 sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
.site-nav {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    padding: 15px 20px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Miner Consent Banner */
.miner-consent-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.miner-banner-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.miner-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.3em;
    color: white;
}

.miner-info p {
    margin: 0;
    opacity: 0.95;
    font-size: 0.95em;
}

.miner-controls {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.miner-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.miner-btn-primary {
    background-color: #10b981;
    color: white;
}

.miner-btn-primary:hover {
    background-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.miner-btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.miner-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Miner Status Bar */
.miner-status-bar {
    background-color: #10b981;
    color: white;
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.miner-status-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.miner-status-icon {
    font-size: 1.2em;
    animation: pulse 2s ease-in-out infinite;
}

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

.miner-status-text {
    font-weight: 600;
    flex-grow: 1;
}

.miner-status-stats {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.95em;
    padding: 4px 12px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.miner-btn-stop {
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 6px 16px;
    font-size: 0.9em;
}

.miner-btn-stop:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Navigation */

.site-nav a {
    margin-right: 20px;
    text-decoration: none;
    color: #0066cc;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.site-nav a:hover {
    background-color: #e9ecef;
    color: #0052a3;
}

.site-nav a.active {
    font-weight: bold;
    color: #fff;
    background-color: #0066cc;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.3;
    color: #222;
}

h1 {
    font-size: 2.5em;
    margin-top: 0;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.3em;
}

h2 {
    font-size: 2em;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.3em;
}

h3 {
    font-size: 1.5em;
}

h4 {
    font-size: 1.25em;
}

p {
    margin: 1em 0;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Code styling */
code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    border: 1px solid #ddd;
    margin: 1.5em 0;
}

pre code {
    background-color: transparent;
    padding: 0;
    color: #333;
    font-size: 0.9em;
}

/* Lists */
ul, ol {
    margin: 1em 0;
    padding-left: 2em;
}

li {
    margin: 0.5em 0;
}

/* Blockquotes */
blockquote {
    margin: 1.5em 0;
    padding: 10px 20px;
    border-left: 4px solid #0066cc;
    background-color: #f8f9fa;
    color: #555;
    font-style: italic;
}

/* Horizontal rules */
hr {
    border: none;
    border-top: 2px solid #e9ecef;
    margin: 2em 0;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em auto;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5em 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Footer */
.site-footer {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 20px;
    border-top: 2px solid #e9ecef;
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

/* Responsive design */
@media (max-width: 768px) {
    .content {
        padding: 15px;
    }
    
    .site-nav {
        padding: 10px 15px;
        flex-direction: column;
    }
    
    .site-nav a {
        margin-right: 0;
        margin-bottom: 5px;
        display: block;
    }
    
    /* Miner UI mobile styles */
    .miner-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .miner-controls {
        width: 100%;
        flex-direction: column;
    }
    
    .miner-btn {
        width: 100%;
    }
    
    .miner-status-content {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }
    
    .miner-status-text {
        flex-basis: 100%;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    pre {
        padding: 10px;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75em;
    }
    
    h2 {
        font-size: 1.35em;
    }
    
    h3 {
        font-size: 1.15em;
    }
}
