/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #107c10;
    --primary-dark: #0d5d0d;
    --accent-color: #ffc107;
    --bg-color: #f5f5f5;
    --text-color: #333;
    --light-text: #666;
    --border-color: #ddd;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

header h2 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

/* Navigation */
nav {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    font-weight: 500;
}

nav a:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Footer Styles */
footer {
    background-color: #222;
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

footer h4,
footer h5 {
    font-weight: 400;
    margin-bottom: 0.5rem;
}

footer h4 {
    font-size: 1rem;
}

footer h5 {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Main Body Content */
body > h2,
body > h3,
body > h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Search Form Styles */
.search-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 2rem auto;
}

form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

input[type="text"],
input[type="search"] {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="search"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

input[type="submit"],
button {
    padding: 0.75rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="submit"]:hover,
button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 124, 16, 0.3);
}

/* Guide List Styles */
.guides-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.guide-info {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #fff3cd;
    border-radius: 4px;
    border-left: 4px solid var(--accent-color);
}

.guide-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.guide-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateX(4px);
}

.guide-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.guide-item p {
    color: var(--light-text);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.guide-item .difficulty {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.difficulty.easy {
    background-color: #d4edda;
    color: #155724;
}

.difficulty.medium {
    background-color: #fff3cd;
    color: #856404;
}

.difficulty.hard {
    background-color: #f8d7da;
    color: #721c24;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--light-text);
}

.no-results h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Parts Page Styles */
.parts-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.part-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.part-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.part-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.part-card a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.part-card a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 124, 16, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    nav {
        gap: 1rem;
    }

    nav a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    form {
        flex-direction: column;
    }

    input[type="text"],
    input[type="search"] {
        min-width: auto;
    }

    .parts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.5rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    nav a {
        padding: 0.5rem 1rem;
    }

    .search-container {
        padding: 1.5rem;
    }

    .guide-item {
        padding: 1rem;
    }

    .guide-item h3 {
        font-size: 1.1rem;
    }
}
