/* Main Styles for Agentic AI Systems Architect Course Website */

:root {
    --primary-color: #2D3E50;
    --secondary-color: #E74C3C;
    --accent-color: #3498DB;
    --light-color: #ECF0F1;
    --dark-color: #2C3E50;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Custom Bootstrap Overrides */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: #2980B9;
    border-color: #2980B9;
}

.btn-outline-primary {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Header Styles */
header {
    background: linear-gradient(rgba(45, 62, 80, 0.9), rgba(45, 62, 80, 0.9)), url('images/header-bg.jpg');
    background-size: cover;
    background-position: center;
}

/* Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

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

.card-title {
    color: var(--primary-color);
}

.card-subtitle {
    font-size: 0.9rem;
}

/* Module Content Styles */
.module-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.module-content h3 {
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.module-content p {
    margin-bottom: 1.2rem;
}

.module-content ul, .module-content ol {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

.module-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
}

.module-content code {
    font-family: 'Fira Code', monospace;
    color: var(--secondary-color);
}

/* Table Styles */
.table-responsive {
    margin-bottom: 1.5rem;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Navigation Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
}

.nav-link {
    font-weight: 600;
}

/* Sidebar Navigation for Module Pages */
.sidebar {
    position: sticky;
    top: 80px;
}

.sidebar .nav-link {
    color: var(--dark-color);
    padding: 0.5rem 0;
}

.sidebar .nav-link:hover {
    color: var(--accent-color);
}

.sidebar .nav-link.active {
    color: var(--accent-color);
    font-weight: 700;
}

/* Footer Styles */
footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header {
        padding: 3rem 0;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}

/* Exercise Page Styles */
.exercise-card {
    margin-bottom: 2rem;
}

.exercise-card .card-header {
    background-color: var(--primary-color);
    color: white;
}

/* Resources Page Styles */
.resource-category {
    margin-bottom: 3rem;
}

.resource-list {
    list-style-type: none;
    padding-left: 0;
}

.resource-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.resource-list li:last-child {
    border-bottom: none;
}

/* Code Highlighting */
.highlight {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

/* Breadcrumb Styles */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
}

/* Progress Tracking */
.progress {
    height: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Print Styles */
@media print {
    .navbar, .sidebar, footer {
        display: none;
    }
    
    .module-content {
        max-width: 100%;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}
