/* PFP Generator Styles */

.pfp-output .image-container {
    border: none;
    margin: 0;
    padding: 0;
}

/* Headshot upload section */
#headshot-upload-section {
    background: rgba(72, 101, 139, 0.15);
    border: 1px solid rgba(72, 101, 139, 0.4);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.pfp-upload-header h3 {
    margin: 0 0 8px 0;
    color: #6afcff;
    font-size: 1.1em;
}

.pfp-upload-header .reference-hint {
    font-size: 0.9em;
    margin: 0 0 15px 0;
}

.headshot-tips {
    margin-top: 15px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 0.85em;
}

.headshot-tips p {
    margin: 0 0 8px 0;
}

.headshot-tips ul {
    margin: 0;
    padding-left: 18px;
}

.headshot-tips li {
    margin: 4px 0;
    list-style-type: none;
}

/* Style chips */
.style-chips-section {
    margin-bottom: 20px;
}

.chips-label {
    display: block;
    margin-bottom: 10px;
    color: #b8c7db;
    font-size: 0.9em;
}

.style-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    float:left;
    margin: 5px 0 25px;
}

.style-chip {
    background: rgba(72, 101, 139, 0.3);
    border: 1px solid rgba(106, 252, 255, 0.2);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85em;
    color: #c1d9ff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.style-chip:hover {
    background: rgba(106, 252, 255, 0.15);
    border-color: rgba(106, 252, 255, 0.4);
    color: #6afcff;
}

.style-chip.active {
    background: rgba(106, 252, 255, 0.2);
    border-color: #6afcff;
    color: #6afcff;
}

/* Prompt influence slider */
.prompt-influence-wrap {
    display: flex;
    align-items: center;
    gap: 12px;

    float: left;
    width: 100%;
}

#pfp-prompt-influence {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(72, 101, 139, 0.4);
    border-radius: 3px;
    outline: none;
}

#pfp-prompt-influence::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #6afcff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease;
}

#pfp-prompt-influence::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

#pfp-prompt-influence::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #6afcff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#prompt-influence-value {
    min-width: 45px;
    text-align: right;
    color: #6afcff;
    font-weight: 600;
    font-size: 0.95em;
}

#prompt-influence-section {
    margin-bottom: 15px;
}

#prompt-influence-section .input-hint {
    margin-top: 8px;
    font-size: 0.85em;
    color: #88aacc;
}

/* PFP preview styling */
.pfp-preview {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.pfp-preview img.pfp-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Single view - larger preview with circular option */
.pfp-item.single-view .pfp-preview img.pfp-image {
    max-width: 400px;
    margin: 0 auto;
}

/* Browse view - grid friendly */
.pfp-item:not(.single-view) .pfp-preview {
    aspect-ratio: 1 / 1;
}

.pfp-item:not(.single-view) .pfp-preview img.pfp-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Remix reference section */
.remix-reference-section {
    background: rgba(72, 101, 139, 0.2);
    border: 1px solid #304f78;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.remix-reference-section h3 {
    margin-top: 0;
    color: #88aacc;
}

.remix-reference-section p {
    font-size: 0.95em;
    color: #c1d9ff;
    margin-bottom: 10px;
}

.remix-reference-section img {
    max-width: 200px;
    border-radius: 8px;
    border: 2px solid #48658b;
}

/* Variations gallery */
.variations-gallery .variation-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.variations-gallery .variation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.variations-gallery .variation-card img {
    transition: transform 0.2s ease;
}

.variations-gallery .variation-card:hover img {
    transform: scale(1.02);
}

/* Uploads selector grid */
.uploads-selector {
    margin-bottom: 10px;
}

.uploads-selector > label {
    display: block;
    margin-bottom: 10px;
    color: #b8c7db;
    font-size: 0.9em;
}

.uploads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding: 4px;
    margin-bottom: 8px;
}

.upload-thumb-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: rgba(0, 0, 0, 0.3);
}

.upload-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.upload-thumb-item:hover {
    border-color: rgba(106, 252, 255, 0.4);
}

.upload-thumb-item:hover img {
    transform: scale(1.05);
}

.upload-thumb-item.selected {
    border-color: #6afcff;
    box-shadow: 0 0 12px rgba(106, 252, 255, 0.4);
}

.upload-select-check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: #6afcff;
    color: #0a1628;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.upload-thumb-item.selected .upload-select-check {
    display: flex;
}

.uploads-hint {
    font-size: 0.8em;
    color: #667799;
    margin: 0;
}

.uploads-hint a {
    color: #88aacc;
}

.uploads-hint a:hover {
    color: #6afcff;
}

/* Scrollbar for uploads grid */
.uploads-grid::-webkit-scrollbar {
    width: 6px;
}

.uploads-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.uploads-grid::-webkit-scrollbar-thumb {
    background: rgba(106, 252, 255, 0.3);
    border-radius: 3px;
}

.uploads-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(106, 252, 255, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .style-chips {
        gap: 6px;
    }
    
    .style-chip {
        padding: 5px 10px;
        font-size: 0.8em;
    }
    
    #headshot-upload-section {
        padding: 15px;
    }
    
    .pfp-item.single-view .pfp-preview img.pfp-image {
        max-width: 100%;
    }
    
    .uploads-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 8px;
    }
}

