/* Basic Docsy-like styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

/* Navigation styling */
.td-navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

/* Hide the Docsy logo (the four locks) */
.navbar-brand__logo {
    display: none !important;
}

.navbar-brand {
    color: white !important;
    font-weight: bold;
    font-size: 1.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-brand__name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
}

.navbar-brand:hover {
    color: #f8f9fa !important;
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    margin: 0 1rem;
}

.nav-link {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white !important;
    text-decoration: none;
}

/* Container styling */
.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.td-navbar-nav-scroll {
    display: flex;
    align-items: center;
}

/* Main content */
.td-main {
    padding: 2rem 0;
}

.td-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Headings */
h1 {
    color: #2c3e50;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    color: #34495e;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h3 {
    color: #34495e;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Content styling */
p {
    margin-bottom: 1rem;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Code styling */
code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid #e9ecef;
}

pre code {
    background-color: transparent;
    padding: 0;
    color: #333;
}

/* Button styling */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #5a6fd8;
    color: white;
    text-decoration: none;
}

/* Copy button styling */
.copy-button {
    background-color: #2d3748 !important;
    border: 1px solid #4a5568 !important;
    color: #e2e8f0 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    opacity: 0.8 !important;
    cursor: pointer !important;
    font-family: inherit !important;
}

.copy-button:hover {
    background-color: #4a5568 !important;
    border-color: #718096 !important;
    color: #f7fafc !important;
    opacity: 1 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.copy-button:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Image styling */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 1rem 0;
}

figure {
    margin: 2rem 0;
    text-align: center;
}

figcaption {
    font-style: italic;
    color: #666;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container-fluid {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }

    .nav-item {
        margin: 0.25rem 0;
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        text-align: left;
    }
    
    img {
        margin: 0.5rem 0;
    }
}
