/* Avatar Editor Styles */

.avatar-editor-container {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    flex-direction: column;
}

/* Preview Section */
.avatar-preview-section {
    flex-shrink: 0;
}

.avatar-preview-box {
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 30px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-direction: column;
}

.avatar-preview-box .ascii-avatar {
    font-size: 16px;
}

.avatar-preview-loading {
    text-align: center;
    margin-top: 10px;
    color: var(--color-text-secondary, #666);
    font-style: italic;
}

/* Editor Controls */
.avatar-editor-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Cycle Buttons */
.avatar-cycle-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.avatar-cycle-btn {
    width: 60px;
    height: 60px;
    border: 2px solid #ddd;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.avatar-cycle-btn:hover {
    border-color: var(--color-primary, #0066cc);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.avatar-cycle-btn:active {
    transform: scale(0.95);
}

.avatar-cycle-btn .avatar-btn-icon {
    display: block;
    line-height: 1;
}

/* Randomize button special styling */
.avatar-randomize {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
}

.avatar-randomize:hover {
    border-color: #ff4545;
    background: linear-gradient(135deg, #ff4545, #ff6b6b);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.avatar-randomize .avatar-btn-icon {
    filter: grayscale(0);
}

/* Form Actions */
.avatar-editor-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.avatar-editor-actions .sth-button {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .avatar-editor-container {
        flex-direction: column;
        gap: 30px;
    }

    .avatar-cycle-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .avatar-cycle-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .avatar-editor-actions {
        width: 100%;
    }
}

/* ASCII Avatar Display */
.ascii-avatar {
    font-family: 'AvatarMono', 'Courier New', Courier, monospace;
    white-space: pre;
    font-weight: bold;
    line-height: 1.2;
    display: inline-block;
    padding: 1rem;
    text-align: left;
    border-radius: 8px;
    font-synthesis: none;
}

/* Header user link - remove underline from avatar */
.header-user-link {
    text-decoration: none;
}

.header-user-link:hover {
    text-decoration: none;
}

/* Small avatar in header */
.ascii-avatar-small {
    font-family: 'AvatarMono', 'Courier New', Courier, monospace;
    white-space: pre-wrap;
    line-height: 1.0;
    display: inline-block;
    vertical-align: middle;
    border-radius: 3px;
    padding: 0.2rem;
    font-weight: bold;
    margin-right: 0.3rem;
}
