/* Gemini Proxy CSS - Modern Bordeaux Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #24292e;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8d5d7 100%);
    min-height: 100vh;
}

.container, main, article, body > div {
    max-width: 850px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    box-shadow: 0 10px 40px rgba(125, 14, 32, 0.1);
    border-radius: 10px;
    margin-top: 2rem;
}

h1, h2, h3 {
    color: #7D0E20;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid #7D0E20;
    padding-bottom: 0.5rem;
}

h2 { 
    font-size: 2rem; 
    margin-top: 3rem;
}

h3 { font-size: 1.5rem; }

p { 
    margin-bottom: 1.5rem;
    text-align: justify;
}

a {
    color: #7D0E20;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

a:hover {
    border-bottom: 1px solid #7D0E20;
    color: #a01428;
}

/* Gemini protocol link */
a[href^="gemini://"]::before {
    content: "🚀 ";
    font-size: 0.9em;
}

/* External links */
a[href^="http://"]:not([href*="nicfab.eu"])::after,
a[href^="https://"]:not([href*="nicfab.eu"])::after {
    content: " ↗";
    font-size: 0.8em;
    opacity: 0.6;
}

ul, ol { 
    margin: 1rem 0 1.5rem 2rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

li::marker {
    color: #7D0E20;
}

blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #7D0E20 0%, #a01428 100%);
    color: white;
    border-radius: 10px;
    font-style: italic;
    box-shadow: 0 5px 20px rgba(125, 14, 32, 0.3);
}

pre {
    background: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.9em;
}

code {
    background: #f6f8fa;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    color: #7D0E20;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a0508 0%, #2d0a0f 100%);
        color: #c9d1d9;
    }
    
    .container, main, article, body > div {
        background: #0d1117;
        color: #c9d1d9;
        box-shadow: 0 10px 40px rgba(125, 14, 32, 0.3);
    }
    
    h1, h2, h3 { 
        color: #ff6b7a;
    }
    
    a { 
        color: #ff6b7a;
    }
    
    a:hover {
        color: #ff8a95;
        border-bottom-color: #ff8a95;
    }
    
    blockquote {
        background: linear-gradient(135deg, #7D0E20 0%, #5a0a16 100%);
    }
    
    pre, code {
        background: #161b22;
        border-color: #30363d;
    }
    
    code {
        color: #ff6b7a;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    body { font-size: 16px; }
    
    .container, main, article, body > div {
        margin: 0;
        border-radius: 0;
        padding: 1.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    
    blockquote { padding: 1rem; }
}

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

.container, main, article, body > div {
    animation: fadeIn 0.5s ease;
}

/* Buttons or special links */
a.button, button {
    background: #7D0E20;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: none;
    transition: background 0.3s ease;
}

a.button:hover, button:hover {
    background: #a01428;
}
