/* Pizza Delivery Educational Hub - Main Stylesheet */

:root {
    --bg-color: #f5f5f5;
    --sidebar-bg: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --accent-color: #e74c3c;
    --accent-light: #ecf0f1;
    --border-color: #ddd;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Layout Structure */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    padding: 20px;
}

.sidebar h1 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 10px;
}

.nav-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: var(--accent-light);
    color: var(--text-primary);
}

.nav-links a.active {
    background-color: var(--accent-color);
    color: white;
}

.nav-links .sub-section {
    padding-left: 20px;
    margin-top: 5px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
    max-width: 1200px;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--text-primary);
}

p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Image Styles */
.image-container {
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.image-wrapper {
    flex: 0 0 calc(50% - 10px);
    max-width: 550px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background-color: #fff;
    padding: 10px;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.image-wrapper.full-width {
    flex: 0 0 100%;
    max-width: 100%;
}

.image-caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
}

/* Diagram Styles */
.diagram-container {
    background-color: white;
    padding: 30px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.flow-diagram {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.flow-step {
    background-color: var(--accent-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    min-width: 150px;
    position: relative;
}

.flow-step::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent-color);
}

.flow-step:last-child::after {
    display: none;
}

.flow-step h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.flow-step p {
    font-size: 0.9rem;
}

/* Section Styles */
.section {
    margin-bottom: 50px;
}

.section-intro {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Glossary Styles */
.glossary-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.glossary-term {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.glossary-term h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.glossary-term p {
    font-size: 0.95rem;
    margin: 0;
}

/* Contact Form */
.contact-info {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 600px;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item h4 {
    color: var(--accent-color);
    margin-bottom: 5px;
}

/* Footer */
.footer {
    background-color: var(--sidebar-bg);
    border-top: 1px solid var(--border-color);
    padding: 20px;
    margin-top: 40px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }
    
    .main-content {
        margin-left: 250px;
        padding: 30px;
    }
    
    .image-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .flow-diagram {
        flex-direction: column;
    }
    
    .flow-step::after {
        right: 50%;
        bottom: -25px;
        top: auto;
        transform: translateX(50%);
        content: '↓';
    }
}

/* Print Styles */
@media print {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    body {
        background-color: white;
    }
}