/*
 * Copyright 2023 Beulah Valley Pottery LLC
 * Jack J. Woehr
 * jwoehr@softwoehr.com
 * PO Box 82 Beulah, Colorado 81023-8282
 * All Rights Reserved
 */

@import "herwheel.css";

html {
    height: 100%;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        'Fira Sans',
        'Droid Sans',
        'Helvetica Neue',
        sans-serif;
    font-size: 15px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    background-attachment: fixed;
    padding: 20px;
    margin: 0;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: 600;
}

.green {
    color: hsla(160, 100%, 37%, 1);
}

/* Instructions Section */
.instructions {
    background: white;
    padding: 15px 25px;
    margin: 0 auto 20px;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-left: 4px solid hsla(160, 100%, 37%, 1);
}

.instructions h3 {
    margin: 0 0 12px 0;
    color: hsla(160, 100%, 32%, 1);
    font-size: 1.2rem;
    font-weight: 600;
}

.instruction-section {
    display: inline-block;
    vertical-align: top;
    width: 48%;
    margin-bottom: 10px;
    padding-right: 15px;
}

@media (max-width: 768px) {
    .instruction-section {
        display: block;
        width: 100%;
    }
}

.instruction-section strong {
    display: block;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.instruction-section ul {
    margin: 5px 0 0 20px;
    padding: 0;
}

.instruction-section li {
    margin-bottom: 4px;
    color: #555;
    line-height: 1.4;
    font-size: 0.9rem;
}

.instruction-tip {
    background: linear-gradient(135deg, hsla(160, 100%, 97%, 1) 0%, hsla(160, 100%, 95%, 1) 100%);
    padding: 8px 15px;
    border-radius: 6px;
    border-left: 3px solid hsla(160, 100%, 37%, 1);
    margin-top: 8px;
    font-size: 0.9rem;
}

.instruction-tip strong {
    color: hsla(160, 100%, 32%, 1);
}

/* Legacy support for old ul-based instructions */
body > ul {
    background: white;
    padding: 25px 40px;
    margin: 0 auto 30px;
    max-width: 1200px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid hsla(160, 100%, 37%, 1);
}

body > ul > li {
    margin-bottom: 15px;
    color: #333;
}

body > ul ul {
    margin-top: 10px;
}

body > ul ul li {
    color: #666;
    margin-bottom: 8px;
}

/* Form Container */
#potchoosing_form {
    max-width: 1200px;
    margin: 0 auto 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Buttons Section */
#potchoosing_form > div:first-child {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8ecf1;
}

.button,
input[type="submit"],
button {
    background: linear-gradient(135deg, hsla(160, 100%, 37%, 1) 0%, hsla(160, 100%, 32%, 1) 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 164, 108, 0.3);
}

.button:hover,
input[type="submit"]:hover,
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 164, 108, 0.4);
    background: linear-gradient(135deg, hsla(160, 100%, 42%, 1) 0%, hsla(160, 100%, 37%, 1) 100%);
}

.button:active,
input[type="submit"]:active,
button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 164, 108, 0.3);
}

/* Grid Layout for Categories and Tags */
.choose_grid {
    display: grid;
    grid-template-areas: "categories tags";
    grid-template-columns: 250px 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .choose_grid {
        grid-template-areas:
            "categories"
            "tags";
        grid-template-columns: 1fr;
    }
}

/* Categories Section */
.choose_categories {
    grid-area: categories;
    background: #f8fafb;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #e0e4e8;
}

.choose_categories label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.category_select {
    width: 100%;
    font-size: 0.9rem;
    padding: 8px 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.category_select:hover,
.category_select:focus {
    border-color: hsla(160, 100%, 37%, 1);
    outline: none;
}

/* Tags Section */
.choose_tags {
    grid-area: tags;
    background: #f8fafb;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #e0e4e8;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
}

.choose_tags label {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    margin: 0;
    background: white;
    border: 2px solid #e0e4e8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    color: #555;
    user-select: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.choose_tags label:hover {
    border-color: hsla(160, 100%, 37%, 1);
    background: hsla(160, 100%, 97%, 1);
    transform: translateY(-1px);
}

.choose_tags input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.choose_tags input[type="checkbox"]:checked + label,
.choose_tags label:has(input[type="checkbox"]:checked) {
    background: hsla(160, 100%, 37%, 1);
    border-color: hsla(160, 100%, 37%, 1);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 164, 108, 0.4);
}

.choose_tags input[type="checkbox"]:checked + label:hover,
.choose_tags label:has(input[type="checkbox"]:checked):hover {
    background: hsla(160, 100%, 42%, 1);
}

/* Thumbnails Gallery */
.chooser.thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 30px;
    max-width: 1200px;
    margin: 30px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chooser.thumbnails:empty {
    display: none;
}

.chooser.thumbnails a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
    min-height: 180px;
}

.chooser.thumbnails a:hover {
    transform: scale(1.05);
    z-index: 10;
}

.chooser.thumbnails img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border: 2px solid #e0e4e8;
    border-radius: 8px;
    padding: 8px;
    background: white;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.chooser.thumbnails a:hover img {
    border-color: hsla(160, 100%, 37%, 1);
    box-shadow: 0 8px 20px rgba(0, 164, 108, 0.3);
}

/* Menu Styles */
#menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#menu li {
    display: inline;
    margin: 0 10px;
}
