/* Main CSS for Image2pixel Help Documentation */

:root {
    --primary-color: #4a86e8;
    --secondary-color: #6aa84f;
    --dark-bg: #2c2c2c;
    --light-bg: #ffffff;
    --light-text: #f0f0f0;
    --dark-text: #333333;
    --light-accent: #f5f5f5;
    --medium-accent: #e0e0e0;
    --dark-accent: #b0b0b0;
    --code-bg: #f8f8f8;
    --code-border: #e0e0e0;
    --sidebar-width: 260px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.logo img {
    height: 40px;
    margin-right: 1rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.main-nav {
    display: flex;
    list-style: none;
    margin-bottom: 1rem;
}

.main-nav li {
    margin: 0 1rem;
}

.main-nav a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--medium-accent);
}

.search-container {
    display: flex;
    width: 100%;
    max-width: 500px;
}

#search-input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
}

#search-button {
    padding: 0.5rem 1rem;
    background-color: var(--secondary-color);
    color: var(--light-text);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

#search-button:hover {
    background-color: #5a9743;
}

/* Layout Styles */
.container {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background-color: var(--light-accent);
    padding: 1.5rem;
    border-radius: 4px;
    position: sticky;
    top: 2rem;
    height: calc(100vh - 4rem);
    overflow-y: auto;
}

.content {
    flex: 1;
    padding: 0 2rem;
}

/* Sidebar Navigation */
.sidebar h3 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.toc {
    list-style: none;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.2s;
}

.toc a:hover {
    color: var(--primary-color);
}

.category {
    display: block;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    color: var(--primary-color);
}

.toc ul {
    list-style: none;
    margin-left: 1rem;
}

/* Content Styles */
.content h1 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.content h2 {
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.content h3 {
    margin: 1.5rem 0 0.5rem;
    color: var(--dark-text);
}

.content p {
    margin-bottom: 1rem;
}

.content a {
    color: var(--primary-color);
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

.content ul, .content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content li {
    margin-bottom: 0.5rem;
}

/* Section Grid */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.section-card {
    background-color: var(--light-accent);
    border-radius: 4px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-card h2 {
    margin-top: 0;
}

.section-card ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

/* Code Blocks */
pre, code {
    font-family: 'Consolas', 'Monaco', monospace;
    background-color: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: 4px;
}

code {
    padding: 0.2rem 0.4rem;
    font-size: 0.9rem;
}

pre {
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

pre code {
    border: none;
    padding: 0;
    background-color: transparent;
}

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

th, td {
    padding: 0.75rem;
    border: 1px solid var(--dark-accent);
    text-align: left;
}

th {
    background-color: var(--light-accent);
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: var(--light-accent);
}

/* Images */
.content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 4px;
}

/* Footer Styles */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-columns {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--light-text);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-column a:hover {
    opacity: 1;
}

.copyright {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        height: auto;
        margin-bottom: 2rem;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        text-align: center;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 0.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .section-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Language Switcher */
.language-container {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 500px;
}

#language-switcher {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    background-color: var(--secondary-color);
    color: var(--light-text);
    font-size: 0.9rem;
    cursor: pointer;
    width: 120px;
    text-align: center;
    transition: background-color 0.2s;
}

#language-switcher:hover {
    background-color: #5a9743;
}

#language-switcher option {
    background-color: var(--light-bg);
    color: var(--dark-text);
} 