/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #f8f9fa;
}

/* Container */
.container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Headers */
h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Sections */
.section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 2px solid #dadcde;
    margin-bottom: 1.5rem;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: rgba(99, 99, 99, 0.25) 0px 8px 32px 0px;
}

.section-header {
    background: linear-gradient(135deg, #fafbff, #f8f6fb);
    color: black;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.section-header:hover {
    background: linear-gradient(135deg, #eaedff, #eadffb);
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.section-content.expanded {
    max-height: 2000px;
    padding: 2rem;
}

/* Subsections */
.subsection {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.subsection h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Diagram Placeholders */
.diagram-placeholder {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border: 2px dashed #667eea;
    border-radius: 8px;
    padding: 2rem;
    margin: 1rem 0;
    text-align: center;
    color: #667eea;
    font-weight: 600;
    transition: all 0.3s ease;
}

.diagram-placeholder:hover {
    background: linear-gradient(45deg, #e9ecef, #dee2e6);
    transform: scale(1.02);
}

/* How-To Sections */
.how-to {
    background: rgba(118, 75, 162, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid #764ba2;
}

.how-to h4 {
    color: #764ba2;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.how-to ol {
    margin-left: 1.5rem;
}

.how-to li {
    margin-bottom: 0.5rem;
}

/* Notes */
.note {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    position: relative;
    padding-left: 3rem;
}

.note::before {
    content: "💡";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.note strong {
    color: #856404;
}

/* Feature Grid and Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-card h4 {
    color: #667eea;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

/* Keyboard Shortcuts */
.keyboard-shortcut {
    background: #2c3e50;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Consolas', 'Lucida Console', monospace;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Code Blocks */
.code-example {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'Consolas', 'Lucida Console', monospace;
    overflow-x: auto;
}

/* SVG Diagram Container */
.diagram-placeholder svg {
    max-width: 100%;
    height: auto;
}
        
.footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    color: #7f8c8d;
    font-size: 0.9rem;
}