:root {
    /* McCain Foods Brand Colors - Yellow and Black */
    --primary-yellow: #FFC72C; /* McCain Yellow */
    --accent-yellow: #FFD700; /* Golden Yellow */
    --primary-black: #000000; /* McCain Black */
    --dark-black: #1A1A1A;
    --light-yellow: #FFF9E6;
    --medium-yellow: #FFE066;
    --dark-gray: #2C3E50;
    --medium-gray: #7F8C8D;
    --light-gray: #ECF0F1;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-light: #7F8C8D;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--dark-black) 100%);
    color: var(--white);
    padding: 40px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/potato-harvest-header.webp') center/cover;
    opacity: 0.15;
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.logo-container img {
    max-height: 125px;
    width: auto;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
}

.logo-container img:hover {
    transform: scale(1.05);
}

header h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

header p {
    text-align: center;
    font-size: 1.3em;
    opacity: 0.95;
    font-weight: 300;
}

.author-info {
    font-size: 0.9em;
    line-height: 1.3;
    margin: 8px 0;
    opacity: 0.9;
}

.author-info p {
    margin: 2px 0;
    font-size: inherit;
}

/* Animation for content transitions */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Prompt Builder / Content Sections */
.prompt-builder {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 199, 44, 0.2);
}

.prompt-builder h2 {
    color: var(--primary-black);
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 3px solid var(--primary-yellow);
    padding-bottom: 10px;
}

.prompt-builder h3 {
    color: var(--primary-black);
    margin-bottom: 15px;
    font-size: 1.4em;
}

.prompt-builder h4 {
    color: var(--primary-black);
    margin-bottom: 10px;
    font-size: 1.2em;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 2px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background: var(--primary-black);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: var(--primary-yellow);
    color: var(--primary-black);
}

.btn-secondary:hover {
    background: var(--accent-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 199, 44, 0.4);
}

/* Resource List */
.resource-list {
    list-style: none;
}

.resource-list li {
    background: var(--white);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid rgba(255, 199, 44, 0.2);
    border-left: 4px solid var(--primary-yellow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 199, 44, 0.3);
}

.resource-list a {
    color: var(--primary-black);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
}

.resource-list a:hover {
    text-decoration: underline;
}

.resource-list p {
    color: var(--text-light);
    margin-top: 5px;
    font-size: 0.9em;
}

/* Resources page: minimal list style (no per-item boxes) */
.prompt-builder.resources-page .resource-list li {
    background: transparent;
    padding: 10px 0 14px;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--light-gray);
    border-left: none;
}
.prompt-builder.resources-page .resource-list li:last-child {
    border-bottom: none;
}
.prompt-builder.resources-page .resource-list li:hover {
    transform: none;
    box-shadow: none;
}
.prompt-builder.resources-page .resource-list a {
    font-size: 1em;
}
.prompt-builder.resources-page h3 {
    border-bottom: 1px solid var(--light-yellow);
    padding-bottom: 6px;
    margin-top: 32px;
    margin-bottom: 12px;
}
.prompt-builder.resources-page h3:first-of-type {
    margin-top: 0;
}
.prompt-builder.resources-page ol.resource-list {
    list-style: decimal;
    padding-left: 1.5em;
}
.prompt-builder.resources-page .resource-url {
    font-size: 0.8em;
    color: var(--text-light);
    margin-top: 4px;
    margin-bottom: 0;
    word-break: break-all;
}
.prompt-builder.resources-page .resource-url code {
    font-family: ui-monospace, monospace;
    font-size: 0.95em;
}

/* Image Background Callout Boxes */
.callout-box {
    position: relative;
    padding: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 30px;
}

.callout-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

.callout-box > * {
    position: relative;
    z-index: 1;
}

.callout-box.potato-field {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--dark-black) 100%);
    color: var(--white);
}

.callout-box.potato-field::before {
    background-image: url('images/potato-field.png');
}

.callout-box.potato-harvest {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--dark-black) 100%);
    color: var(--white);
}

.callout-box.potato-harvest::before {
    background-image: url('images/potato-harvest.png');
}

.callout-box.ai-analysis {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--dark-black) 100%);
    color: var(--white);
}

.callout-box.ai-analysis::before {
    background-image: url('images/ai-field-analysis.png');
}

.callout-box.potato-farmer {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--dark-black) 100%);
    color: var(--white);
}

.callout-box.potato-farmer::before {
    background-image: url('images/potato-farmer.png');
}

.callout-box.family {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--dark-black) 100%);
    color: var(--white);
}

.callout-box.family::before {
    background-image: url('images/family.png');
}

.callout-box-light {
    background: var(--white);
    color: var(--primary-black);
}

.callout-box-light.potato-field::before {
    background-image: url('images/potato-field.png');
    opacity: 0.15;
}

.callout-box-light.potato-harvest::before {
    background-image: url('images/potato-harvest.png');
    opacity: 0.15;
}

.callout-box-light.ai-analysis::before {
    background-image: url('images/ai-field-analysis.png');
    opacity: 0.15;
}

.callout-box-light.potato-farmer::before {
    background-image: url('images/potato-farmer.png');
    opacity: 0.15;
}

.callout-box-light.family::before {
    background-image: url('images/family.png');
    opacity: 0.15;
}

/* Navigation Links */
.nav-links-bar {
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.nav-links-row2 {
    margin-top: 10px;
}

.nav-links-bar .nav-links {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.nav-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--white);
    color: var(--primary-black);
    text-decoration: none;
    border: 2px solid var(--primary-yellow);
    border-radius: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.nav-link:hover {
    background: var(--primary-yellow);
    color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 199, 44, 0.4);
}

.nav-link.active {
    background: var(--primary-yellow);
    color: var(--primary-black);
    box-shadow: 0 4px 12px rgba(255, 199, 44, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    .logo-container img {
        max-height: 75px;
    }

    .prompt-builder {
        padding: 20px;
    }

    section > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    section > div[style*="grid-template-columns: 1fr 300px"] {
        grid-template-columns: 1fr !important;
    }

    .nav-links {
        flex-direction: column;
        padding: 10px;
    }

    .nav-link {
        width: 100%;
        text-align: center;
    }
}

