/* styles.css - Main stylesheet for AI Expert Guide website */

/* Base styles and reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
    color: #1a365d;
}

h1 {
    font-size: 2.5rem;
    margin-top: 2rem;
}

h2 {
    font-size: 2rem;
    margin-top: 1.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

h4 {
    font-size: 1.25rem;
    margin-top: 1.2rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: #3182ce;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2c5282;
    text-decoration: underline;
}

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

li {
    margin-bottom: 0.5rem;
}

code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #edf2f7;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9rem;
}

blockquote {
    border-left: 4px solid #3182ce;
    padding-left: 1rem;
    margin-left: 0;
    margin-bottom: 1.5rem;
    color: #4a5568;
}

/* Header */
header {
    background-color: #1a365d;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
    color: white;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    margin: 0 0 0 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

nav a:hover {
    text-decoration: none;
    border-bottom-color: white;
}

/* Main content */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 160px); /* Ensures footer stays at bottom */
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    overflow-x: auto;
    display: block;
}

table, th, td {
    border: 1px solid #e2e8f0;
}

th, td {
    padding: 0.75rem;
    text-align: left;
}

th {
    background-color: #edf2f7;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Checklist styling */
input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Footer */
footer {
    background-color: #2d3748;
    color: white;
    padding: 1.5rem 0;
    text-align: center;
}

footer p {
    margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav ul {
        flex-direction: column;
        margin-top: 1rem;
    }
    
    nav li {
        margin: 0.5rem 0 0 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* Special styling for specific pages */
/* Home page */
.home-intro {
    background-color: #ebf8ff;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* Roadmap page */
.phase {
    background-color: #f0fff4;
    border-left: 4px solid #38a169;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 8px 8px 0;
}

/* Resources page */
.resource-card {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Tools page */
.tool-comparison th {
    background-color: #1a365d;
    color: white;
}

/* Terminology page */
.term {
    margin-bottom: 1.5rem;
}

.term-name {
    font-weight: 600;
    color: #1a365d;
}

/* Project template page */
.template-section {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: white;
}
