﻿/* Global styles */
body {
    margin: 0;
    padding: 0;
}

@media (min-width: 1000px) {
    body {
        background-image: url('/assets/images/camperbackground.png');
        background-repeat: repeat;
        background-attachment: scroll;
    }
}

main {
    width: 100%;
    max-width: var(--max-width);
    background-color: var(--bg-color);
    border-radius: 8px; /* Optional: for rounded corners */
}

/* Camper options */
.camper-options {
    max-width: 900px;
    margin: 40px auto;
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 20px;
}

.option {
    background-color: white;
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 16px 32px;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.06);
    text-align: center;
}

    .option:hover {
        background-color: #e9f5ff;
        border-color: #007acc;
    }

    .option.active {
        background-color: #007acc;
        color: white;
        border-color: #005f99;
    }

.option-content {
    background: white;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
}

    .option-content p {
        font-size: 15px;
    }

/* Checklist dropdown */
#checklistDropdown {
    padding: 10px 14px;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #ccc;
    margin-top: 10px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: border-color 0.3s;
}

    #checklistDropdown:focus {
        border-color: #007acc;
        outline: none;
    }

/* Checklist content */
.checklist-content {
    background-color: #f9f9f9;
    padding: 20px;
    margin-top: 10px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

/* Checkbox list */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

    .checkbox-list label {
        display: flex;
        align-items: center; /* ✅ Aligns checkbox and text vertically */
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 12px 16px;
        cursor: pointer;
        font-size: 16px;
        transition: background-color 0.2s ease;
        line-height: 1.4;
        text-align: left; /* Left align label text */
        margin-bottom: 6px;
    }

        .checkbox-list label:hover {
            background-color: #f0f8ff;
        }

    .checkbox-list input[type="checkbox"] {
        margin-right: 12px;
        margin-top: 3px;
        transform: scale(1.2);
        cursor: pointer;
    }

    .checkbox-list ul {
        margin-top: 4px;
        margin-bottom: 12px;
        padding-left: 1rem; /* indent nested list */
        list-style-position: inside; /* bullets inside the text block */
        font-size: 0.9em;
        color: #666;
        text-align: left;
    }

        .checkbox-list ul li {
            margin-left: 0.2em; /* slight left offset for bullets */
        }

/* Header with video */
.header-with-video {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

    .header-with-video h3 {
        margin: 0;
        font-weight: 700;
        font-size: 1.5rem;
        text-align: left;
        flex-grow: 1; /* push button to the right */
    }

/* YouTube link button */
.youtube-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.5em 1.2em;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    background-color: #FF0000; /* solid YouTube red */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    box-shadow: 0 0 6px #FF0000AA;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .youtube-link:hover,
    .youtube-link:focus {
        transform: scale(1.08);
        box-shadow: 0 0 12px 4px #FF0000DD;
        outline: none;
    }

/* Playlist wrapper */
.playlistWrap {
    margin-top: 1rem;
}

/* Amazon section */
.amazon-section {
    font-family: sans-serif;
    margin: 2rem auto;
    max-width: 900px;
    padding: 1rem;
}

.amazon-category {
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.amazon-category-header {
    background: #008080;
    color: #fff;
    padding: 1rem;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.amazon-category-content {
    display: none;
    padding: 1rem;
    background: #f9f9f9;
}

.product-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .product-card h4 {
        margin-top: 0;
        font-size: 1rem;
    }

.amazon-link {
    margin-top: auto;
    background-color: #ff9900;
    color: #fff;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    transition: transform 0.2s ease;
}

    .amazon-link:hover {
        background-color: #e08800;
        transform: scale(1.05);
    }

/* Responsive */
@media (max-width: 600px) {
    .amazon-category-header {
        font-size: 1rem;
    }

    .amazon-link {
        font-size: 0.9rem;
    }
}
