/* Custom styles for the404fix.com */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Typography & page shell (sticky footer: footer at bottom when content is short) */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Code styling */
pre, code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.post-content pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
    overflow-x: auto;
}

.post-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
}

/* Blog post styling */
.post-excerpt p:last-child {
    margin-bottom: 0;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h1:first-child,
.post-content h2:first-child,
.post-content h3:first-child {
    margin-top: 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--secondary-color);
    font-style: italic;
}

/* Utility cards */
.card h5 {
    color: var(--dark-color);
}

.card .badge {
    font-size: 0.75rem;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* SQL output styling */
.sql-output {
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 500px;
    overflow-y: auto;
}

/* Footer */
footer {
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .sql-container .copy-button {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 1rem;
        display: block;
        width: 100%;
    }
}

/* Custom animations */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.card {
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Hero section */
.jumbotron {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
}

/* Alert customizations */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Badge customizations */
.badge {
    font-weight: 500;
} 